Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link problem with DirectShow in an ActiveX Control...

Status
Not open for further replies.

lawseb

Programmer
Apr 25, 2003
1
FR
Hi,

I am developing an ActiveX control in VC++ 6.0 using DirectShow. But when i compile my control it gives the following linker error.

And the error occurs only when its an ActiveX control and not simple dialog based application or SDI application.

strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates"
(?g_Templates@@3PAVCFactoryTemplate@@A)
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol "int g_cTemplates" (?g_cTemplates@@3HA)


The project settings contain following entry

C:\DXSDK\samples\Multimedia\DirectShow\BaseClasses\Debug\strmbasd.lib
winmm.lib

Library are in good version.... I think i just forget an include or a link (difference between ActiveX and Application????)

Please help me out !!


Thanks and Regards,


Lawseb

 
I had this problem recently too. It appears that the problem is that since the ActiveX control is a form of DLL, the strmbasd.lib expects those symbols to be defined somewhere. In my version of the DirectX SDK, these declarations can be seen in the sysclock.cpp file. Instead of including the strmbasd.lib, I instead included the C:\DXSDK\lib\strmiids.lib and my ActiveX control linked without a problem. The control itself isn't working yet, but the needed functionality seems to be there.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top