titoGonzales
07-15-2005, 08:03 AM
Basically, I need to create an api that can be called from another program. The only way to do this is to use a dll due to the way our application is setup.
As I have some experience using the GLUT libraries, I want to know if it was possible to use GLUT from a dll. I am using MSVC 6 to code the api. Reading the documentation on setting up the GLUT libraries for MSVC, it says that I need to use a Win32 Console Application project. However, in order to create a .dll, I need to use a Win32 Dynamic Link Library project.
I tried using the calls to the GLUT library within the Win32 DLL project. It compiles ok, but when I try to use the function in our application, I get an error message stating the requested library could not be loaded.
Does anyone know if it is possible to use the GLUT libraries with a dll, or do I have to use the standard Windows api libraries? Thanks.
As I have some experience using the GLUT libraries, I want to know if it was possible to use GLUT from a dll. I am using MSVC 6 to code the api. Reading the documentation on setting up the GLUT libraries for MSVC, it says that I need to use a Win32 Console Application project. However, in order to create a .dll, I need to use a Win32 Dynamic Link Library project.
I tried using the calls to the GLUT library within the Win32 DLL project. It compiles ok, but when I try to use the function in our application, I get an error message stating the requested library could not be loaded.
Does anyone know if it is possible to use the GLUT libraries with a dll, or do I have to use the standard Windows api libraries? Thanks.