Hi,
we are having the same problems on trying to use 64 bit OCx Controls.
Because, of customer demand we wanted to move the app to a 64 bit app.
For more information:
For example we are currently testing the OCX Controls from www.exontrol.com.
We are in the process to renew some old controls witch are EOL by their vendors and substitute them with newer controls.
One requirement is for the new controls to have same controls in 32 and 64 bit.
In 32 bit everything works fine with the controls.
In 64 bit the controls are not rendered at Runtime.
You can download trial for the product as 32 and 64 bit com components suite.
we tested a little bit more to see what works and what not.
no 64 bit ocx control ( ole custom control) can be used in a 64 it b app.
If you create a 64 bit application with powerbuilder you can see that the 64 bit control exists and would work if Pb would add the correct binary data into her source file ( hidden data for ocx's).
To see this special data just export the source file and not just use show source code in the pb ide!
If you call insertobject() at runtime for the 64 bit application ( on a ole control) you will see the ole dialog with all 64 bit controls! As you se the 32 bit control in the pb ide!
there you can see all the 64 bit controls and go to the third tabpage to insert a ole custom control ( ocx) from the shown list of 64 bit controls installed on the pc.
If we select here the 64 bit control everyting works and the 64 control is rendered correct.
BUT there is no way to do this in Design time.
The PB 32 bit IDE can only work with the 32 bit controls as it is 32 bit!
If you insertobjects at runtime on a 64 bit app it works but this is not a solution because you are not able to write your code in the custom events at design time :-(
Today 64bit OCX Controls can not be used with pb and all 32bit pb apps using OCX Control can not be compiled as 64 bit apps. :-(
Appeon should correct this bug asap.
We had to stop our try to create a 64 bit app because of this Powerbuilder bug!
We didn't find any workaround!
Today we have the correct 64 bit controls (ocx) but ar not able to use them in a 64 bit pb app :-(
That is really bad!
It is really simple to check and test this forexamle by using the exontrol controls.
But you can test this by using any other 64 bit ocx control!
Please fix the bug!