Asked By
Dan Keli
0 points
N/A
Posted on - 08/21/2011
Hi all,
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.
Failed
The Module "mac.dll" failed to load.
Can anybody help me regarding this problem?
Answered By
edd123
0 points
N/A
#116940
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:
-
Regsvr32.exe "<<Dao360.dll_Path>>"
-
Regsvr32.exe "<<Msado15.dll_Path>>"
-
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.
Â
Click OK.
Â
Method 2: Install the latest version of MDAC.