VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 06:23:19 07/11/01 Wed
Author: Michel
Subject: Re: Pascal to C++ Translation Questions
In reply to: Lewis Aslan 's message, "Pascal to C++ Translation Questions" on 15:53:56 07/09/01 Mon

Hi Lewis,

I am not very experienced with CBBuilder but here is some help.

> OpenDialog->Filter = GraphicFilter(?????)

Try,

OpenDialog->Filter = GraphicFilter(__classid(Graphics::TGraphic));

<
(2)
I see in TMainForm.FormCreate() where the BMP, ICO, and WMF files are registered, but how do the other file formats get registered? At some point I will need
to read TIF files using the OpenPictureDialog control. What are the steps I need to take to make my demo program "TIF aware?"
>

To register the formats supported by Envision, you need to include the appropriate unit in your project. For example, to include tiff support, add the EnTifGr.Pas to your project, with the "Add to Project" operation. Also, the EnReg.Pas file may be included, and the formats registered are defined in the Envision.Inc. See the sample project, EzViewC5.Bpr.

<
I get compile errors because when this procedure is called, as in Rotate90MenuClick(), the Pascal version uses:
Transform.OnProgress = Self.OnProgress; and C++ is expecting the call to look more like: Transform->OnProgress = OnProgress(Sender,???); and I'm totally
confused by this.
>

I'm not sure about this one. This means that the progress method must have two parameters, the sender and the PercentProgress. You must manually add a method with this signature on you main form, and then assign it to the OnProgress event handler property.

Best regards,

Michel

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.