   Using __declspec(dllexport) to Export a Class
  When I try to type this in one of my DLL headers:__declspec(dllexport) class FWMesh;I get the following warning:(dll folder location)\fwmesh.h(18) : warning C4091: ''__declspec(dllexport ) '' : ignored on left of ''class FWMesh'' when no variable is declaredThe library still compiles, but it seems that the class isn''t being exported, and I''m curious as to my bad syntax. This is probably a stupid mistake on my part, so please don''t ignore this thread...Thanks,Joshua Merchant 
  __declspec(dllexport) has no effect on a class forward declaration. You need to apply it to the actual class definition. ;  Hmm... I tried that before I posted, but it still gave the original error. That was actually my first attempt, after which I tried the forward definition (or whatever it''s called). ;  Just looked it up on MSDN.class __declspec(dllexport) CExampleExport : public CObject{ ... class definition ... };Did you put __declspec... before "class" in your code?  That may be the problem.;  That''s awkward... I looked on MSDN just a while ago.... Well thanks Slickfty2! 