Solution
I found the solution to my problem:
Checking the "ActiveX Controls" support checkbox does a few things:
1) Adds #include <afxdisp.h> to StdAfx.h
2) Adds a call to AfxEnableControlContainer(); in the application's InitInstance function.
Once I added those two things to my larger, more complex application it ran fine.
Ian
|