Click here to Skip to main content
15,117,318 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello friends,
I have developed a program ( exe ) - which uses my own dll file - I build those using visual studio VC++ 2005

In My own machine it is working fine..

But when I copy both exe and dll in same folder in different pc ..I am getting following error --
I installed redistributable package for VS 2005 in the second machine ...but still getting the error
[[ The application failed to initialize properly (0xc0150002). Click on OK to terminate the application. ]]

I found that following dll (s) used by my programs

user32.dll
MSPDB80.DLL
ADVAPI32.DLL
KERNEL32.dll
WS2_32.dll
MSVCP80D.dll

And these are present in 2nd system also ....still getting error. Please focus some light on it.

Thank You - Pada
Posted
Comments
Piccadilly Yum Yum 23-Mar-11 12:14pm
   
Try first to temporary put your dll in windows/system directory. if ok rebuild your project giving it appropriate defs to find dll. You can find it in Project/Properties
pada123 23-Mar-11 12:30pm
   
Yum - Thanks for your reply. I have kept all DLL in system/windows folder . But no luck..Is it possible to give me details how to create def/manifest file and put my dll (s)name there So that I can try your 2 nd suggestion. Thanks Pada
Piccadilly Yum Yum 23-Mar-11 12:47pm
   
it seems a dependency problem, each dll you import themself import other dlls that you dont know. Your two system have different dll. Try with a dependency walker to see which are lost dll

1 solution

Take a look here[^] for some suggested possibilities.
   

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