I have put the Ultimate Grid into an MFC extension .DLL and it does not work properly or blows up on me in certain places. What gives?
If you use the AFX_EXT_CLASS macro to export the classes you need from the Ultimate Grid, everything should work fine. One thing that should be noted, the Ultimate Grid souce code will conditionally compile in code if OLE has been enabled (you have included afxole.h in your project). When an MFC extension .DLL is created, the standard stdafx.h has afxole.h included so all of the code (drag and drop stuff) that needs OLE present will be compiled into the .DLL. When you go and create a project that uses the MFC extension .DLL you will also have to include afxole.h in your stdafx.h header or the code will not match up and you will encounter serious problems.
Related Questions
- A certain cemetery isn’t being maintained properly. Can you help me make the cemetery water or mow the grass, cut the brush, pick up trash, etc.?
- Since the body requires a certain level of copper to function properly, what is the result if too much copper is removed through chelation?
- Tell me, what is the ultimate and certain reality ?