描述:
我用encoder sdk做一个二次开发,使用到这个函数创建设备属性页
部分代码如下:
CSettingDlg* pDlg = new CSettingDlg();
pDlg->Create(CSettingDlg::IDD);
hr = OleCreatePropertyFrame(
pDlg->m_hWnd, // You must create the parent window.
200, // Horizontal position for the dialog box.
200, // Vertical position for the dialog box.
CComBSTR("name"), // String used for the dialog box caption.
1, // Number of pointers passed in pPlugin.
&pPlugin, // Pointer to the plug-in.
uuid.cElems, // Number of property pages.
uuid.pElems, // Array of property page CLSIDs.
LOCALE_USER_DEFAULT, // Locale ID for the dialog box.
0, // Reserved.
NULL // Reserved.
);
其中pPlugin、uuid等变量也没有问题,pDlg->m_hWnd也不为空,但是运行的时候提示:
“0x064d97d7”指令引用的“0x72636951”内存,改内存不能为“written”
请高手帮帮我,atl我不太熟悉,谢谢!
解决方案1:
我是来倒分的,NND,没有人回复,版主不能说我倒分--不过我自己可以说,哈哈!