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?
Thanks
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?
Thanks
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.
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
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
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.UserActivit yMonitor\b in\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
Download the source.
Open the solution.
Build it in release mode.
The dll will appear in GlobalHook\Gma.UserActivit
In your project, add a reference to that dll.
In your class, add a "using Gma.UserActivityMonitor;"
Then add the events with "HookManager.WhateverEvent
Now i am referencing the DLL instead of including the project. The application is working again.
Thanks meispisces
@Jonesey007: Thanks for the appreciation.!!