Hi, Im new to this message board. I have a problem. In VC++ Im trying to add an OCX to a dialog box, but everytime I do, the dialog box won't come up, but it does without the OCX. Help please!
Hi, Im new to this message board. I have a problem. In VC++ Im trying to add an OCX to a dialog box, but everytime I do, the dialog box won't come up, but it does without the OCX. Help please!
If it's an MFC application then make sure you're calling AfxEnableControlContainer(). This is typically done in the InitInstance() of your app object.
More Information Here
gg
I included STDAFX just like it says, and added AfxEnableControlContainer(), but I get this error.
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
I figured it out thanks! I just used the wizard =D