Linker error using DirectPlay and BCB6

Started by
5 comments, last by smcelroy 19 years, 5 months ago
Hi, I get the following linker error using DirectPlay and BCB6. I'm hoping some of you might have the solution to this. Thanks. Code - if(SUCCEEDED(m_pCaptureGraphBuilder->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video,m_pCap, NULL, NULL))) Linker error [Linker Error] Unresolved external '_PIN_CATEGORY_PREVIEW' referenced from C:\EXAMPLE\VIDEOCAM.OBJ'
Advertisement
Make sure you are linking in Quartz.lib and Strmiids.lib.
Dave,

I have included both Quartz.lib and Strmiids.lib. I had to convert these files using coff2omf would this cause a problem?

Thanks.
That may be it, although I don't know why. The PIN_CATEGORY* values are definitely in strmiids.lib.

Maybe there's a command-line option for coff2omf that you need.
Dave,

I have just discovered that coff2omf does not work (properly) with Visual C++ static libraries. There's pretty good explanation at http://www.bcbdev.com/faqs/faq92.htm

So... VC++ it is then

Thanks for you help.
Quote:Original post by smcelroy
I have just discovered that coff2omf does not work (properly) with Visual C++ static libraries. There's pretty good explanation at http://www.bcbdev.com/faqs/faq92.htm

So... VC++ it is then


You can get Borland compatible DirectX libraries from:
http://clootie.narod.ru/cbuilder/index.html

Scroll down to "DirectX libraries for C++Builder"

There are two versions available. One compatible with the DirectX 9.0 SDK Update (Summer 2004), the other is compatible with the DirectX 9.0 SDK Update (Summer 2003).

Some of the DirectX static libraries have been "wrapped" in dlls, so they can be used by BCB.

***warning*** can be very slow downloading from this site.

HTH,
Cambo_frog
For the love of god, please tell me that you've just omitted your error checking code for brevity, and you don't really assume that all those functions succeed.
Thanks. That did it.

This topic is closed to new replies.

Advertisement