-
C++ Dll
Hi all,
I have been writing DLL's in C, procedural style - however I am about to start a large project (in MFC) and I would like to do the dll's in an object oriented manner. I have been doing some research and it appears it may not be as simple as I thought. Particularly to do with instantiating classes that have been declared in a dll.
Are there are any gotchas that I should be aware of with writing C++ OOP dll's?
Also - anyone know how to ensure that MSVC++ .net does not create projects added to a workspace in a subdirectory? You used to be able to edit this in MSVC++ 6.0 but the directory is not editable in the new IDE.. ARGH!
Thanks.
FB
-
You can export classes in VC++ with the __declspec(dllexport) directive. MFC uses this and it works pretty well......just be aware that you are tied to compilers with that dll
-