Can not display GUI after add ADO Data Control

error message:

>>> If this dialog has OLE controls:
>>> AfxEnableControlContainer has not been called yet.
>>> You should call it in your app's InitInstance function.
Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application.

So I add "AfxEnableControlContainer(NULL) " in

" CMyApp::InitInstance()"

But it says that errorC3861: " AfxEnableControlContainer " can't find this identifier

Sorry for my poor English.

THX
[557 byte] By [wilbur2006] at [2007-11-19 22:03:54]