使用VC6環境開發。
CRect rc2;
rc2.left = 50;
rc2.top = 50;
rc2.right = 1000;
rc2.bottom = 500;
if(m_Flexgrid.Create(_T("test"), WS_CHILD|WS_VISIBLE, rc2, this, 11071)==FALSE)
{
int nf = GetLastError();//win10下回傳值為0
AfxMessageBox("create failure!");
return;
}
在win10系統上,m_Flexgrid.Create這句動態創建出錯,如果是靜態創建則正常運行。
在win7/xp系統上動態靜態均正常。
uj5u.com熱心網友回復:
在64位Windows下:64位exe和dll在目錄c:\windows\system32目錄下;
32位exe和dll在目錄c:\windows\syswow64目錄下;
所以要注意:
在win64位系統下注冊32位ocx或dll需要將32位ocx或dll拷貝到c:\windows\syswow64\目錄下。
且注冊要用c:\windows\syswow64\regsvr32 xxxxxxx.ocx或dll
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/118185.html
標籤:基礎類
