Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I got allocated a old c project to recompile it . I am just beginner in c programming,so i need your help guys, I opened workspace in visual c++6.0 the workspace consists of three projects. Two of them will create .lib once they build successfully. These two .libs are used in another project once i build this project its creating .exe file. while i am trying to run that exe in desired machine it pop ups w32xpgml.dll missing error. In the main project i found a w32xpgml.lib file inculded in the project. It seems that i need that w32xpgml.dll file to drop that in windows\system32 folder. I been through few forums and came to know that we can build dll from .h,.lib,.c files . i downloaded libview.exe file from online to view whats in that w32xpgml.lib file it shows just constants names . i created .h file from that .lib file using libview.exe file. I struck there now how can i create .c files and it seems that there is any methods in that w32xpgml.lib file .Is the process i am doing is right??? could someone suggest me please . sorry for my bad english and thanks in advance guys..
Posted
Comments
Richard MacCutchan 22-May-13 9:40am    
Are you saying that you do not have the source files for the library that you are trying to create?
Member 9544583 23-May-13 6:57am    
hi richard , yeap

1 solution

For DLLs, .lib files are simply a stub to allow your code to link against.

At run time, the DLL is loaded and a fixup of function addresses is done so that your program can make calls into the code that is implemented in the DLL.

So in other words, the lib doesn't contain the code, but is simply an address book that tells the program how to access it at run time.

You need either the source code to build the DLL, or a copy of the DLL from a machine running this app.
 
Share this answer
 
Comments
Member 9544583 23-May-13 6:58am    
thanks for your good explanation. I found a dll from one of the machine. thank you very much for your response

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