   Using an object from a DLL, in another
  Hi AllIm trying to go with the quake2 way of exporting stuff. I know quake2 was C, im doing C++ tho and am using classes and declaring the objects (globally) in my dlls.I have a struct which holds a pointer(s) to a object(s) of a certain class(s) like so:   struct RendererExports{  CVBManager *VBManager;  // and so on, and so on...};and my function that exports this:   RendererExports GetRendererAPI( void ){   RenderderExports re;   re.VBManager = &g_VBManager;   // g_VBManager, is global variable   return( re );}Ok now I know how to export the function, call it from another module, thats not a problem.However if I went like so:   RendererExports rimport = GetRendererAPI();rimport.VBManager->Create();I get linker errors, which does make sense. How do I go around this? I do not want to do this by using __declspec( dllexport ) on my classes and class objects.Is there a way to have a pointer to a class objects methods?Thank You :> 
  Why do you not want to export the global function in the DLL via dllexport?What is the design?  Do you want to export the entire class?Kuphryn ;  Hey KuphrynWell, I just wanted to see if it can be done another way. I kinda like having one function to call and id get all the declared class objects from a module. Also I dont want to statically link the modules because, im loading them via LoadLibrary(). And I dont like being able to see the classes and exported variables of a DLL in Dependency Viewer, nor which dll''s the module links to.I dont want to export the class. What I have is header files with the class definitions in them. And wherever I call the import function, this file is included.Basically I want to call the objects methods/attributes in one dll from many other dlls through this one function.Shock 