Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I'm new to c#. I've a C dll. I want to call the methods of this C dll inside my C# app. But while loading dll the application is crashing, giving the error
"Additional information: Unable to load DLL 'win32Cdll.dll': The specified module could not be found.". 

Can any one tell me what is the problem in this code?
Thank you all.
Posted
Updated 4-Feb-12 1:53am
v2

The problem is that it can't load win32cdll.dll. The dll cannot be found. Is the name correct ? Is it meant to have dll in the name twice ? Is this dll visible to your application ?
 
Share this answer
 
 
Share this answer
 
This might help you.
The Specified Module could not be found[^]

or this
unable to load unmanaged dll [^]

It is likely that your DLL depends on one or more DLLs that are not present.
 
Share this answer
 
v3
Try coping your dll either in windows or windows\system32 folder. See if it works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900