Hi every body,
I created C dll (Dynamic-link library) using .Net to use C function in C# application , I used DLL Export in the C project (when creating the dll) in order to export its function, then I used DLL Import In C# project to use the C function..
To make the C# project see the dll’s functions I just put it in the Debug folder of the C# project, and it works properly. Now after finishing making the C# application, you know that I have to make the setup of the application to install it in the client PC, and here is the problem! how to make the application see the dll in the client PC, When I installed the application in the client PC and tried to run it, it made an error showing that the application couldn’t see the dll functions at all!!
You know that in his PC there will not be a debug folder, on the other hand C dll can’t be added to the C# project as a reference!!
Also C dll can’t be registered in the operating system with the instruction:
regsvr32
I tried the following:
- Put the dll file in the installation folder of the client PC (it didn’t work)
- Put the dll file in the system32 folder of windows (it didn’t work)
- Put the dll in the setup ad a content file to be set in the installation folder (it didn’t work)
So anybody can help me please ! How to make the program see the dll to use its functions in the Client PC?