![]() |
|
#1
|
|||
|
|||
Need help creating dll in VC++I was trying to create a dll in VC++ so that the dll wll be accessed from delphi later on. I was able to call some of the functions, which the function definitions come with .cpp file and the .cpp files were included when I created Dll project.
Now, I am stuck with one problem. Some of the function definitions, which I need badly, are in a library file with extention .lib . Since it is not a C++ header file and .cpp file, I could not add it in the Dll project in the same as I did to .h or .cpp files. So what I did was when I was creating my Dll in VC, I was trying to include it in the Dll project by add "filename_lib" in Link as following: Project->settings->Link->object/library modules: But, it looks like it was now working. The program still does not know where to find these function definitions when I was trying to use them in delphi. Without these functions, I could not go any further. It will be highly appreciated if any of you has ideas how to include it in Dll. Thank you and happy Chinese New Year to everyone. Maggie |
|||
|
#2
|
||||
|
||||
|
if you hav the '.lib' file and '.h' file,
link the library '.lib' file using Project->settings->Link->object/library modules and include '.h' file in the dll where you want to use it. now you should b able to us your functions in the dll... __________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds |
|
#3
|
|||
|
|||
|
Thanks. got it.
Quote:
|
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| in great need of creating polynomial class | fadedg2 | C++ Forum | 9 | 27-Mar-2006 19:55 |
| Re: Creating my own MP3 Ringtone. | admin | Music Forum | 0 | 04-Mar-2006 18:12 |
| Can I import another Lib while I am creating a static library in C++.Net? How? | george | MS Visual C++ / MFC Forum | 2 | 06-Jan-2005 17:07 |
| Help creating lists of pointers | The_Kingpin | C Programming Language | 0 | 11-Dec-2004 14:49 |
| Problem with the function creating updating a linked list | nkhambal | C Programming Language | 3 | 28-Oct-2004 21:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The