Displaying 1 result from an estimated 1 matches for "dllclass".
Did you mean:
allclass
2004 Nov 09
0
How to : C++ DLLs
I remember seeing a message somewhere about C++ DLLs and wanting to
implement them in Winelib. Well here is an idea that I use in Windows that
works great:
Define your class in a common header (let's call it dll.hpp):
class DllClass {
public:
int somedata;
virtual void member(int arg);
};
Define the DLL source with two exports:
#include <dll.hpp>
extern "C" __declspec(dllexport) DllClass *new_DllClass() {
return new DllClass;
}
extern "C" __declspec(dllexport) void delete_DllClass(DllClas...