Original Post
For a project I am working on, I have a set of home-made DLLs (renderers that export the same class, but use Direct3D, OpenGL, or whatever else depending on the DLL). Up to this point, I have just included whichever LIB file was appropriate to which rendering API I wanted to use. Now I am trying to just load the DLLs using LoadLibrary and GetProcAddress. I have a function in the DLLs that return a pointer to the renderer class. When I execute the code, the first call to a function of the renderer class works fine, after I grab the pointer using the function mentioned above, (creates rendering window and sets up either D3D or OGL), but all other function calls give Debug Assertion Errors. All the functions in the class are defined using "virtual" and there is no diference in how I define the first function and the other functions. Does anyone know what could be causing this? Thanks in advance.