Board index » cppbuilder » extern guids

extern guids


2005-03-12 06:28:26 AM
cppbuilder45
I'm trying to use the Windows Media SDK in BCB4. I've made a .lib from
the wmvcore.dll, and linked into my app. The lib removed linker errors
related to the actual functions in that dll, but the linker can't find
the GUID's.
Here is a excerpt of the errors :
[Linker Error] Unresolved external '_IID_IWMStatusCallback' referenced
from C:\PROGRAM
FILES\BORLAND\CBUILDER4\PROJECTS\WMPUSHSERVER\JWMASYNCREADER.OBJ.
The GUID's are declared in wmsdkidl.h like this :
EXTERN_GUID( IID_IWMStatusCallback,
0x6d7cdc70,0x9888,0x11d3,0x8e,0xdc,0x00,0xc0,0x4f,0x61,0x09,0xcf );
Can anyone tell me how to remove this error ?
--
Jonathan
 
 

Re:extern guids

"Jonathan Benedicto" < XXXX@XXXXX.COM >wrote in message
Quote
Can anyone tell me how to remove this error ?
You will have to declare the offending GUIDs in your actual code somewhere,
ie:
GUID IID_IWMStatusCallback = {0x6d7cdc70, 0x9888, 0x11d3,
{0x8e,0xdc,0x00,0xc0,0x4f,0x61,0x09,0xcf}};
Gambit
 

Re:extern guids

Quote
You will have to declare the offending GUIDs in your actual code
somewhere,
ie:

GUID IID_IWMStatusCallback = {0x6d7cdc70, 0x9888, 0x11d3,
{0x8e,0xdc,0x00,0xc0,0x4f,0x61,0x09,0xcf}};
Thank you very much. I'll do that.
 

{smallsort}