If the function fails because the hWndParent parameter is invalid, the return value is zero. The function returns zero in this case for compatibility with previous versions of Microsoft Windows. If the function fails for any other reason, the return value is –1. To get extended error information, call GetLastError.
看看返回 值
CoInitialize(NULL);记得后面加CoUninitialize();
DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_LOGO),0,(DLGPROC)DlgProc,(IDD_LOGO));
DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_BEGIN),0,(DLGPROC)DlgProc,(IDD_BEGIN));
CoUninitialize();
像这样吗?还是没效果,我初学,还望见谅
CAxWindow m_container;
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_CREATE:
GetClientRect(hWnd, &rc);
rc.top +=40;
m_container.Create(hWnd,rc,LPCTSTR("ShockwaveFlash.ShockwaveFlash.9"),WS_CHILD|WS_VISIBLE);//create a container
可以参考
http://download.csdn.net/detail/schlafenhamster/4888693