N/APosted on - 08/21/2011
I am having trouble in using to my own defined library, I successfully reference my .dll file and used its all classes.
Now the problem starts when i run the program, actually the program failed to load that .DLL file it Popup with the following message.
The Module "mac.dll" failed to load.
Can anybody help me regarding this problem?
How to create Reference file in C#
Since you created your own .dll:
1st: Check for bugs in program.
2nd: Make sure you have no viruses on your machine (use avast boot scan).
If you are sure none of the above is not the problem then do this.
Follow these methods:
Method 1: Register the required Dao360.dll file and the Msado15.dll file.
You may have to register the Dao360.dll file and the Msado15.dll file by using the Regsvr32.exe program. To do this, follow these steps:
Click Start, and then click Run.
In the Run dialog box, type the following commands in the Open box, and then click OK:
The <<Dao360.dll_Path>> placeholder is the absolute path of the Dao360.dll file.
The<<Msado15.dll_Path>> placeholder is the absolute path of the Msado15.dll file.
The following examples show how you may specify an absolute path:
Regsvr32.exe "C:Program FilesCommon FilesMicrosoft SharedDAODao360.dll"
Regsvr32.exe "C:Program FilesCommon FilessystemadoMsado15.dll"
If the Dao360.dll file is successfully registered, you receive a message that is similar to the following message:
DllRegisterServer in C:Program FilesCommon FilesMicrosoft SharedDAODao360.dll succeeded.
If the Msado15.dll file is successfully registered, you receive a message that is similar to the following message:
DllRegisterServer in C:Program FilesCommon FilessystemadoMsado15.dll succeeded.
Method 2: Install the latest version of MDAC.