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:
IMJCurPlaylistAutomationPtr MJCurPlaylist = MJ->GetCurPlaylist();
Which generates a linker error:
[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:
DWORD dwCurrentPosition = MJCurPlaylist->GetPosition();
Which generates another linker error:
[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!