How to use a class in DLL?
问题 Can I put a class inside a DLL? The class i wrote is this: class SDLConsole { public: SDLConsole(); ~SDLConsole(){}; void getInfo(int,int); void initConsole(char*, char*, SDL_Surface*, int, int, int); void sendMsg(char*,int, SDL_Surface*); void cls(SDL_Surface*); private: TTF_Font *font; SDL_Surface *consoleImg; int width, pos, height, line, size, ctLine; SDL_Surface* render(char*,int); }; I know how to load a DLL and use the function inside a DLL, but how can I put a class inside a DLL?