DLL and LIB
Hello friends
I have a problem.
I am doing some coding in OpenGL and i include opengl32.lib.
I want to use the lib-file for my 3d-card. I dont have a lib file for it but could i convert mygrafcard.dll to
mygrafcard.lib ????
Cowboy
Happy Hacking. Don''t forget to eat and sleep
link.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Don''t u know the answer Fruny :-)
Thank u for all links
Cowboy
Happy Hacking. Don''t forget to eat and sleep
Thank u for all links
Cowboy
Happy Hacking. Don''t forget to eat and sleep
You may have to declare the functions extern "C" though (hint: that''s the ''_'' prefix thingy ).
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
I am not sure what u mean ?
What i want to do is to use the opengl drivers for my old voodoo 2 card instead of opengl32.lib.
But i dont have the lib-file for it and i want to know if i could convert the *.dll to a *.lib and use it instead of opengl32.lib.
Cowboy
Happy Hacking. Don''t forget to eat and sleep
What i want to do is to use the opengl drivers for my old voodoo 2 card instead of opengl32.lib.
But i dont have the lib-file for it and i want to know if i could convert the *.dll to a *.lib and use it instead of opengl32.lib.
Cowboy
Happy Hacking. Don''t forget to eat and sleep
Well, you could load them runtime if you knew how the functions were declared:
Use dumpbin to dump all of the exported functions out of the dll.
Look up the functions at the site where the driver was developed (may actually have an SDK to avoid all this).
use typedef to prototype the exported functions, and load them runtime:
typedef void(*MyProc)(void);
HMODULE handle;
handle = LoadLibrary("blabla.dll";
//Dumpbin gives you names of exported functions
MyProc proc = (myproc)GetProcaddress("HelloWorld";
FreeLibrary(handle);
proc();
Use dumpbin to dump all of the exported functions out of the dll.
Look up the functions at the site where the driver was developed (may actually have an SDK to avoid all this).
use typedef to prototype the exported functions, and load them runtime:
typedef void(*MyProc)(void);
HMODULE handle;
handle = LoadLibrary("blabla.dll";
//Dumpbin gives you names of exported functions
MyProc proc = (myproc)GetProcaddress("HelloWorld";
FreeLibrary(handle);
proc();
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement