atl写的程序,客户调用的时候出现一个联结错误
babam 2004-06-30 11:36:51 atl程序编译成功后
Performing registration
Server registration done!
客户是个mfc程序
头文件加进来了
调用时
HRESULT hr;
ISimpleInterface * pIntf = NULL;
hr = CoCreateInstance
(CLSID_SimpleInterface, NULL, CLSCTX_SERVER ,
IID_ISimpleInterface, (void **)& pIntf);
if(SUCCEEDED(hr))
{
pIntf->Welcome();
pIntf->Release();
}
结果是联结错误!
UsingAtlDlg.obj : error LNK2001: unresolved external symbol _CLSID_SimpleInterface
UsingAtlDlg.obj : error LNK2001: unresolved external symbol _IID_ISimpleInterface
还有什么没有做???