Print Page | Close Window

type library import

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=11997
Printed Date: 21 November 2024 at 8:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: type library import
Posted By: SergeyTitov
Subject: type library import
Date Posted: 27 August 2008 at 2:01pm
Dear Codejock Team,

When I try to import the type library in VS2005/2008 using the following line

#import "C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v12.0.2 (30 Day Trial)\bin\Codejock.Controls.v12.0.2.Demo.ocx"

I am getting the error

...\codejock.controls.v12.0.2.demo.tlh(729) : error C2146: syntax error : missing ';' before identifier 'Font'

Please advise

Thanks,
Sergey



Replies:
Posted By: Oleg
Date Posted: 27 August 2008 at 3:56pm

Hi,

Import stdole also:

#import "C:\WINDOWS\system32\stdole2.tlb" exclude("OLE_HANDLE", "OLE_COLOR", "OLE_XPOS_PIXELS", "OLE_YPOS_PIXELS", "DISPPARAMS", "EXCEPINFO", "GUID", "IUnknown", "IDispatch", "IEnumVARIANT", "IFont", "IPicture")
using namespace stdole;



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SergeyTitov
Date Posted: 28 August 2008 at 8:29am
Oleg,

It helped!

Many thanks!

Spasibo,
Sergey



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net