why is it not possible to integrate a newer ocx-file?
i will join a zip-file with cfile.ocx and ctxfile.ocx.
i was able to integrate ctfile.ocx that is a older development, but not ctxfile.ocx
The first message is:
OLE returned error: H'800401F3'
Reason: ungültige Klassenzeichenfolge (in german) unavalaible class string?
The second error by integrating:
Failed to create object.
OLE2 return code 20
This is on all Windows OS (Win7 32 bit, Win10 64bit, also Win11 64 bit)community.microfocus.com/.../ctfile.rar
Thanks for help.
Can you please provide me with the test program that you are using to try to invoke the OCX?
Does it work under Visual COBOL?
why is it not possible to integrate a newer ocx-file?
i will join a zip-file with cfile.ocx and ctxfile.ocx.
i was able to integrate ctfile.ocx that is a older development, but not ctxfile.ocx
The first message is:
OLE returned error: H'800401F3'
Reason: ungültige Klassenzeichenfolge (in german) unavalaible class string?
The second error by integrating:
Failed to create object.
OLE2 return code 20
This is on all Windows OS (Win7 32 bit, Win10 64bit, also Win11 64 bit)community.microfocus.com/.../ctfile.rar
Thanks for help.
I can create a new instance of the class with the following code. A dialog box for the control is displayed.
$set OOCTRL(+P)
id division.
program-id. testocx.
class-control.
ctxFile is class "$OLE$CTXFILE.ctxFileCtrl.2".
working-storage section.
01 myobject object reference.
procedure division.
invoke ctxfile "New" returning myobject
goback.
I can create a new instance of the class with the following code. A dialog box for the control is displayed.
$set OOCTRL(+P)
id division.
program-id. testocx.
class-control.
ctxFile is class "$OLE$CTXFILE.ctxFileCtrl.2".
working-storage section.
01 myobject object reference.
procedure division.
invoke ctxfile "New" returning myobject
goback.
Chris, yes your program works. But my question was integration in Dialog System and then using the activeX Assistant to see all possibilities.
This is my real problem! And this is not solved with your little demonstration program.
How know you to use the class control "OLE$CTXFILE.ctxFileCtrl.2"?
In your example the "About Box" is displayed on a single screen, i need a integration in dialog system with all components "ShowOpen", "ShowSave", etc...
Chris, yes your program works. But my question was integration in Dialog System and then using the activeX Assistant to see all possibilities.
This is my real problem! And this is not solved with your little demonstration program.
How know you to use the class control "OLE$CTXFILE.ctxFileCtrl.2"?
In your example the "About Box" is displayed on a single screen, i need a integration in dialog system with all components "ShowOpen", "ShowSave", etc...
After registering these OCX controls uding regsvr32 I can import them both into Dialog System and can drag them onto a window and use the property assistant and the ActiveX assistant.to generate control programs for them.
I used the Type Library Assistant under Tools to generate copyfiles for the control and that is where I found the name "OLE$CTXFILE.ctxFileCtrl.2" to use with the OO syntax. This is different then embedding a control winin a screenset window.
Embedding these controls into a DS window involves using OO COBOL to modify the control programs in order to handle the events and methods that the control supports.
There are a couple examples in the Examples\\Dialog System\\ActiveX folder but I am not sure if the controls are actually distributed with the product anymore.
After registering these OCX controls uding regsvr32 I can import them both into Dialog System and can drag them onto a window and use the property assistant and the ActiveX assistant.to generate control programs for them.
I used the Type Library Assistant under Tools to generate copyfiles for the control and that is where I found the name "OLE$CTXFILE.ctxFileCtrl.2" to use with the OO syntax. This is different then embedding a control winin a screenset window.
Embedding these controls into a DS window involves using OO COBOL to modify the control programs in order to handle the events and methods that the control supports.
There are a couple examples in the Examples\\Dialog System\\ActiveX folder but I am not sure if the controls are actually distributed with the product anymore.
Hi Chris, i am not able to do this, integrated the activex-control ctxfile.ocx, only the old version ctfile.ocx can be integrated.
But with the old ctfile.ocx it is not possible to access network shares, so that i need the new file.
Can you send me your screenset or can i see your deployment remotely
i have generate a typelib.cpy where i can see "OLE$CTXFILE.ctxFileCtrl.2",
How can you help me?
Can you program "OpenShow", this open a explorer windows!
Thanks for help!
Hi Chris, i am not able to do this, integrated the activex-control ctxfile.ocx, only the old version ctfile.ocx can be integrated.
But with the old ctfile.ocx it is not possible to access network shares, so that i need the new file.
Can you send me your screenset or can i see your deployment remotely
i have generate a typelib.cpy where i can see "OLE$CTXFILE.ctxFileCtrl.2",
How can you help me?
Can you program "OpenShow", this open a explorer windows!
Thanks for help!
community.microfocus.com/.../gregor2.zip
After registering these OCX controls uding regsvr32 I can import them both into Dialog System and can drag them onto a window and use the property assistant and the ActiveX assistant.to generate control programs for them.
I used the Type Library Assistant under Tools to generate copyfiles for the control and that is where I found the name "OLE$CTXFILE.ctxFileCtrl.2" to use with the OO syntax. This is different then embedding a control winin a screenset window.
Embedding these controls into a DS window involves using OO COBOL to modify the control programs in order to handle the events and methods that the control supports.
There are a couple examples in the Examples\\Dialog System\\ActiveX folder but I am not sure if the controls are actually distributed with the product anymore.
Chris, can you send me the file dialogtest.gs with the control for ctxfile.ocx included.
That will not work on my workstation (no win7 and no win10)
I have posted the complete project as zip/rar yesterday
This are tools from dbi-tech.com with many possibilities to enjoy cobol programming and programmers!
Thanks for your help!