Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have created .dll file in cpp using visual studio 10 it works good on my pc but on other pc in my application in which i use that dll gives dll missing error please give me solution. On my pc when i use dll in my application it gives no error and works fine. But on other pc it gives error.

What I have tried:

i changed properties while building error but not works.
Posted
Updated 27-Jul-20 2:26am
Comments
Richard MacCutchan 27-Jul-20 8:06am    
Make sure the dll is placed in the correct directory in the other PC, so that the loader can find it.
Sandeep Mewara 27-Jul-20 8:11am    
What error you get exactly?
Member 13298308 27-Jul-20 9:11am    
cannot find a dll or other file that it needs
is error

My best guess: if you want to use your dll within the other application (via interop)... Then you need to register your dll in GAC on other machine. Please, read this:
Global Assembly Cache | Microsoft Docs[^]
How to: Install an assembly into the global assembly cache | Microsoft Docs[^]
 
Share this answer
 
Comments
Member 13298308 27-Jul-20 8:56am    
my application is same. there are other 2 dlls in that both works. Now I have added some new functionality to my project and created 3rd dll for that functionality. old 2 dlls works on any pc but 3rd dll created works on some pc and not works on some pc. is 3 rd dll created with some fault because 1st 2 dlls are working. Give me solution so that my 3 rd dll also work on any pc.
It's either in the wrong folder (check the EXE folder), or the DLL relies on other DLL files which aren't present.

If you use a "proper" installer, then it should both put the files in the right place, and check subdependancies for you.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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