补充一下, 我在VC中直接将控件放在对话框上,也不用加入什么license string,程序在别的电脑上也是可以运行的.
我用的wxWidgets,似乎找不到在哪添加license string.(license string正在联系销售提供).
代码如下,您能帮忙看下在哪添加license string吗?谢谢!
CLSID clsId = {0xDE52502E, 0xF837, 0x492B, { 0xAE, 0x14, 0xA1, 0x82, 0x53, 0x1A, 0xFA, 0xF4}};
IDispatch* pDispatch;
if (SUCCEEDED(CoCreateInstance(clsId, NULL, CLSCTX_SERVER, IID_IDispatch,(void**)&pDispatch)))
{
wxAutomationObject *grid = new wxAutomationObject;
grid->SetDispatchPtr(pDispatch);
wxActiveXContainer* containter = new wxActiveXContainer(this,IID_IDispatch,pDispatch);
} |