Page 1 of 1

app.isActiveXIdRegistered

Posted: Fri Aug 07, 2009 11:59 am
by ConvertFromOldNGs
by Peter Gallagher >> Mon, 29 Jan 2001 4:02:11 GMT

the method call "app.isActiveXIdRegistered(guid:String)" asks for a string parameter. Jade Help file names the parameter "guid" as if this means something to the computers registry.

Can anyone help me with what string I might actually put in this method call??

many thanks

Peter (yet another easterly wind in Chch, and I think I'm getting a cold)

Re: app.isActiveXIdRegistered

Posted: Fri Aug 07, 2009 11:59 am
by ConvertFromOldNGs
by Hido Hasimbegovic >> Mon, 29 Jan 2001 4:04:59 GMT

It's probably asking you for the ClassID from the registry, although I'm guessing it's Jade 5.1 you are using, as I don't recognise that method from 5.016.
Registry stores all ActiveX GUIDs under "CLSID" key. For example, mscal.ocx (calendar control) registry key is {8E27C92B-1264-101C-8A2F-040224009C02}. To get the key of an ActiveX control have a look at
RegQueryValueEx and a few other related functions in "advapi32.dll". In Jade terms, external function declaration looks roughly something like this:

regQueryValueEx(hKey :Integer;
lpValueName :String;
lpReserved :Integer;
lpType :Integer io;
lpData :Integer io;
lpcbData :Integer io):Integer is RegQueryValueEx in "advapi32.dll";

I have an example of all the other registry fiddling functions if you need them. I hope this helps.


Cheers,

Hido

Re: app.isActiveXIdRegistered

Posted: Fri Aug 07, 2009 11:59 am
by ConvertFromOldNGs
by Peter Gallagher >> Mon, 29 Jan 2001 8:06:33 GMT

Well hello to Hido,

Your help was just perfect. The method does exist in earlier versions back as far as 5.0.15 as best as I can recall.

The activeX that I was testing for had a GUID of "{B801CA65-A1FC-11D0-85AD-444553540000}" interesting, this is Acrobats PDF Readers OCX

Many thanks from Peter