The type or namespace name 'Gma' could not be found

Hi
I am trying to follow the below tutorial
http://www.codeproject.com/KB/cs/globalhook.aspx

I have included the UserActivityMonitor project and am trying to reference it but i keep getting The type or namespace name 'Gma' could not be found error.

Here is a screenshot of my project, does anyone know what i need to do?

 Screenshot
Thanks
Jonesey007Asked:
Who is Participating?
 
meispiscesConnect With a Mentor Commented:
you could either post that the .dll has not been included in the code project comments section or could follow the link http://www.codeproject.com/KB/cs/globalhook.aspx?msg=3110732

I guess the author needs to add the .dll

Also refer http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/53816ec2-07e5-433a-b051-0d668625bb8f/

Hope this helps!

thanks much!
0
 
mohammed_mabsCommented:
I think you can do that
0
 
dileepan_kCommented:
Have you set the project dependency in Solution Explorer? If you set the project to be dependent on the UserActivityMonitor, the GMA assembly would be compiled and placed in the reference list.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Jonesey007Author Commented:
Hi
Not quite sure what you mean there mohammed mabs?

@dileepan k
Hi
Thanks for the suggestion, unfortunatly i've already set that
Installation Recorder is already dependant on Gma.UserActivityMonitor ??

I've tried clean and Build, is there anything else i need to do to make sure its in the reference list?

Thanks
0
 
Jonesey007Author Commented:
That worked perfectly, after reading all the comments i saw this one

Download the source.
Open the solution.
Build it in release mode.
The dll will appear in GlobalHook\Gma.UserActivityMonitor\bin\Release
In your project, add a reference to that dll.
In your class, add a "using Gma.UserActivityMonitor;"
Then add the events with "HookManager.WhateverEvent += WhateverEventHandlerMethod;"

Now i am referencing the DLL instead of including the project. The application is working again.
Thanks meispisces
0
 
meispiscesCommented:
@Jonesey007: Thanks for the appreciation.!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.