INTERACT FORUM

Windows => Plug-in Development => Topic started by: NikeJustDoItOk? on November 09, 2003, 04:46:26 pm

Title: Media Center.tlb errors?
Post by: NikeJustDoItOk? on November 09, 2003, 04:46:26 pm
Im making a plugin for MSN Plus in Borland C++ Builder 5 to let you do various things with MC.  The plugin compiles and works fine until I add this line:

Code: [Select]
IMJCurPlaylistAutomationPtr MJCurPlaylist = MJ->GetCurPlaylist();
Which generates a linker error:

Code: [Select]
[Linker Error] Unresolved external '__stdcall _com_issue_error(long)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\MSNPLUGIN\MSNPLUGIN.OBJ
[Linker Error] Unresolved external '_com_dispatch_method(IDispatch *, long, unsigned short, unsigned short, void *, const wchar_t *, ...)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\MSNPLUGIN\MSNPLUGIN.OBJ

And also this line:

Code: [Select]
DWORD dwCurrentPosition = MJCurPlaylist->GetPosition();
Which generates another linker error:

Code: [Select]
[Linker Error] Unresolved external '__stdcall _com_dispatch_propget(IDispatch *, long, unsigned short, void *)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\MSNPLUGIN\MSNPLUGIN.OBJ

Im using the newest Media Center.tlb on the site and Im running MC 9.1.291.  This is my first time using Media Center's Automation or OLE or COM stuff, so any help would be appreciated.  Thanks!
Title: Re:Media Center.tlb errors?
Post by: KingSparta on November 09, 2003, 05:00:04 pm
Sorry I Can't Help, I Only Play With VB6, And Have No Problems With Current Version And A New Project I Am Working With.