Borland C++ Builder and the CVB Movie Control

 
  Question
 

I get compilation errors when inserting the CVB Movie Control (cvAVIRecOCX ActiveX Control) in Borland C++ Builder and building the application. Why?

  Answer
 

The C++ Builder generates a duplicate definition in the file cvAVIRecOCXLib_TLB.h if you insert the cvAVIRec Control via the menu item "Import ActiveX". The error refers to the line

ERROR_ALREADY_INITIALIZED = 300

The expression ERROR_ALREADY_INITIALIZED defined therein is already used by the C++ Builder. To overcome the problem change this expression to CVBERROR_ALREADY_INITIALIZED.
Info

Home|FAQ|

Frequently Asked Questions