一个低级错误啊~~

真机debug,初始化对话框时,跳出错误:

If this dialog has OLE controls:
 AfxEnableControlContainer has not been called yet.
You should call it in your app's InitInstance function.

原因是把对话框的style设置为child了,改回popup正常。

Posted on 2011-12-02 11:13  我不是牛人  阅读(737)  评论(0编辑  收藏  举报