ActiveX controls - Converting from 1.5 to 3.1

forum.advanced.programming (1998-2005)
jeff

ActiveX controls - Converting from 1.5 to 3.1

Post by jeff » 08 Feb 2005, 08:17

 Posted by:  jeff 

Hi gurus!

I have a ctd1.5 app that I am converting to ctd3.1. This app successfully
uses a VB created ActiveX control currently in the ctd1.5 version.

What I have done is re-generated the activeX APL (using ctd3.1) using the
activex wizard and selected ALL and Generated Full.

The APL is included in the app.

I have a variable declared:
FunctionalVar: Crypto
Class: FileEncryption_clsFileEncryptor

Where used I have changed the INIT() to CREATE() eg

Call Crypto.Create()
Call Crypto.PropSetCipherKey( sCypherKey )
Call Crypto.PropSetEncryptedFile( sTempFile )

However the message on the Create() is "Invalid Dispatch" and of course
nothing works from hereon in.

As I said, no problems under ctd1.5 (using Crypto.INIT()) but not working
under CTD3.1?????

Can anyone help please???
Cheers and heres hoping!

Jeff

jeff

ActiveX controls - Converting from 1.5 to 3.1

Post by jeff » 09 Feb 2005, 03:47

 Posted by:  jeff 

ahhhhh stupido me!!
fixed and firing on all cylinders

Krister Henningsson

ActiveX controls - Converting from 1.5 to 3.1

Post by Krister Henningsson » 09 Feb 2005, 08:16

 Posted by:  Krister Henningsson 

Hello Jeff,
how did you fix it?

Regards,
Kriss

--

OS:W ND WS XP S
4GL:TD3. P F3
DB:O acle 8
Li e
Is fu l f surp i e
It adv rt s s
N t I g

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests