Link to home
Create AccountLog in
Avatar of Jonesey007
Jonesey007

asked on

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?

 User generated image
Thanks
Avatar of mohammed_mabs
mohammed_mabs

I think you can do that
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.
Avatar of Jonesey007

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of meispisces
meispisces
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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
@Jonesey007: Thanks for the appreciation.!!