[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
In your Form-Bef-Create try this:
CALL "C$SYSTEM" USING "REGSVR32 /S MSCAL.OCX"
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
In your Form-Bef-Create try this:
CALL "C$SYSTEM" USING "REGSVR32 /S MSCAL.OCX"
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
Can I check with a system?s command if the control is installed and registred before I use "REGSVR32. Can I check the errors when I am creating the activeX and then if an error occurs use the program for registration??
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
Here is example code to check if a control is already registered and if it is not then register it...
call "REG_OPEN_KEY" using HKEY_CLASSES_ROOT,
"CLSID\\{35053A22-8589-11D1-B16A-00C0F0283628}",
subkey-handle, GIVING RegOpenStat.
if RegOpenStat > 0
call "c$system" using "regsvr32 /s mscomctl.ocx".
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
Here is example code to check if a control is already registered and if it is not then register it...
call "REG_OPEN_KEY" using HKEY_CLASSES_ROOT,
"CLSID\\{35053A22-8589-11D1-B16A-00C0F0283628}",
subkey-handle, GIVING RegOpenStat.
if RegOpenStat > 0
call "c$system" using "regsvr32 /s mscomctl.ocx".
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
Edith400,
if you use the exception handler I showed you in another thread here, you can use that one to determine that an object is not installed, just the way you would deal with a non present file when you are trying to open it. look at the thread "Calendar again" in which I posted an example using an exception handler in the DECLARATIVES section.
[Migrated content. Thread originally posted on 05 February 2003]
In my application I have ActiveX control. Now I want to distrubute my application. I have the ActiveX control in the directory where my appication will be installed on the user?s hard disk and I want to call regsvr32 automatically when I use the application and the control is not installed and registrated in the user?s hard disk.
When I try to call the control in my application this message is displaying ?Error creating AcviteX control COBOL error att 00F3C9 in programx.cbl?, because the control is not registred. How I can register the control automatically when I call this in my program?
Edith400,
if you use the exception handler I showed you in another thread here, you can use that one to determine that an object is not installed, just the way you would deal with a non present file when you are trying to open it. look at the thread "Calendar again" in which I posted an example using an exception handler in the DECLARATIVES section.