|
[linker Error]Unresolved external "Cddcontrolib_tlb::IID_ICDDBControl"referenced from D:\PROJECT\CDDB\CDDB.OBJ"
[linker Error]Unresolved external "Cddcontrolib_tlb::CLSID_CDDBControl"referenced from D:\PROJECT\CDDB\CDDB.OBJ"
이렇게 2가지가 나오는데요
어떤분이 만드신 MFC 프로그램에 Dll 위에 컴포넌트 텝에 등록해서요..
하는데요..
이런 에러가..ㅡㅡ
HRESULT hr;
BSTR bstrClientID = OLESTR("8882432");
BSTR bstrClientTag = OLESTR("70E27967B73FB6F309F16CBA24E1EC07");
BSTR bstrClientVersion = OLESTR("2");
BSTR bstrReg = OLESTR("regstring");
if ( IControl )
return ;
// Create an instance of CDDBControl using the COM interface
hr = CoCreateInstance(CLSID_CDDBControl, NULL, CLSCTX_ALL, IID_ICDDBControl, (void **)&IControl);
if (!SUCCEEDED(hr))
return ;
// The first call should set the client information within the control
IControl->SetClientInfo(bstrClientID, bstrClientTag, bstrClientVersion, bstrReg);
// If the user is not already registered, bring up the default registration dialog.
if (!IControl->IsRegistered(FALSE))
IControl->IsRegistered(TRUE);
제가 이렇게 했어요..
왜 그런지 말씀해주세요..??
|