Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Problem importing OCX into C++Builder (Delphi)

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Problem importing OCX into C++Builder (Delphi)

Postby bitberry » Tue Jul 06, 2010 12:17 pm

Hi,

I'm trying to evaludate GdViewer Pro, but I am having problems importing the OCX into C++Builder. It doesn't generate the wrapper packages properly, presumably because the OCX objects are missing a "CanCreate" flag. This is what the generated header file says:

Code: Select all
namespace Gdviewerpro4_tlb
{

// *********************************************************************//
// HelpString: GdViewer Pro 4 - Image Viewer ActiveX
// Version:    1.13
// *********************************************************************//

// SKIPPING COCLASS: dummy                - Lacks 'CanCreate' flag
// SKIPPING COCLASS: GdViewer             - Lacks 'CanCreate' flag
// SKIPPING COCLASS: GdViewerCnt          - Lacks 'CanCreate' flag
}; 


The GdViewerpro4.ocx has version number 4.12.0.11, dated May 27, 2010.

Please help!
bitberry
 
Posts: 3
Joined: Tue Jul 06, 2010 12:06 pm

Re: Problem importing OCX into C++Builder (Delphi)

Postby bitberry » Tue Jul 06, 2010 1:52 pm

Found a workaround.

Tools -> Options -> C++ Options -> Type Library. Under "Ignore special CoClass Flags when importing", enable "Can Create".
bitberry
 
Posts: 3
Joined: Tue Jul 06, 2010 12:06 pm

Re: Problem importing OCX into C++Builder (Delphi)

Postby Loïc » Tue Jul 06, 2010 2:29 pm

Thank you for the tip !

Another workaround consists to import Type Library shipped with the SDK ;)

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4230
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron