I am trying to capture the frames from a video stream and I am trying to use AForge library for that purpose. But when i try to call any of the API's of the library from my project it gives me the above error.
My research shows that it could be due to using 32 bit windows dll on x64 or vice-versa.But i have not been able to find out any AForge library package for 64 bit windows. I am using x64 windows7. Any links or suggestions that can help me to resolve this error will be really appreciated.
I have changed platform target to x86 and my program Successfully run on x86 and x64 systems. Thank you all for help. More details. I have 5 project in the solution. Two project using framework 2.0 it is a base classes and other project and exe project using framework 4.0. Something change in the base project and solution good build but not running. Last release the project was two years old. I made new release but it is run. I was happy do fast fix with change project target on x86. But we are not found the cause this trouble