Click here to Skip to main content
15,891,993 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi. Everybody.
I'm created a my dll file in the VS2008
When I'm using this dll for design soft in VC6.0 It OK
But when I coppy all file in the debug folder to other computer
It not work.
There throw a error:
http://imagizer.imageshack.us/v2/800x600q90/39/l2ad.png


I tried register my dll with regsvr32 “c:\windows\system32\xpsSmarCardPrinter.dll” but it alway error
http://pad2.whstatic.com/images/thumb/9/98/Register-a-DLL-Step-3.jpg/670px-Register-a-DLL-Step-3.jpg
Thank !
Posted

Hello,
Pls try the following again


Step 1
If necessary, log in using your administrator account.
Step 2
Click Start and type command or cmd at the search box. It will depend on what Windows version you have.
Step 3
Type regsvr32 "path and FileName.dll" at the command prompt. Hit the Enter key. Make sure that you enter the correct name and file path. An example is "C:\Windows\System32\example.dll". This will register the file.
Step 4
After registration, a message will appear telling you registration was successful. The message will inform you that the file has been placed in the Windows Registry.
Command Line
If you want to manually register/unregister DLL files via the Regsvr32 Command Line, you can do so. Windows PCs with Internet Explorer 3.0 or later have Regsvr32.exe. If you are running 64 bit versions of the Windows OS, there are two variants.
The 32-bit version is at: %systemroot%\SysWoW64\regsvr32.exe
The 64-bit version is at: %systemroot%\System32\regsvr32.exe
To use any version of the utility, type the following:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname
The /u command will unregister the file. The /I can be used with /u to call dll uninstall. The /n parameter will not call DllRegisterServer. It is used with /i. If you use /s, no message boxes will be displayed. This is for Windows XP and later versions.
When you first launch Regsvr32.exe, the program will try loading the component it identifies. The DLLSelfRegister function will be invoked.

After this if you get the same error Message,try the following

http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-specified-module-could-not-be-foundq[^]
 
Share this answer
 
Comments
Mạnh Lê 24-Jan-14 0:40am    
I have tried this way
regsvr32 “c:\windows\system32\xpsSmarCardPrinter.dll”
in the command Prompt with admin.
but the it throw error:

http://imagizer.imageshack.us/v2/800x600q90/34/qcir.png
karthik Udhayakumar 24-Jan-14 6:10am    
Is it the same "specified module could not be found"message or something else
Iam unable to view the link you have shared ,Can you explain the detail of the error msg to help you out.
Mạnh Lê 25-Jan-14 20:15pm    
There message is:
LoadLibrary("C:\Windows\System32\file.dll") failed - this application has failed to start because the application configuration is incorrect
When copying the dll to the 'other' system, make sure that all of the dlls that it links to are there as well. If your dll has dependencies on a product or library, that needs to be installed. If your dll links to a specific runtime system, that needs to be installed there.

If your dll is built 'debug' you will need the compiler installed on the other machine. Debug runtime libraries are only supposed to be used on your developer machine(s) and are not available for export/deployment...
 
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