- John Raghanti
- PowerBuilder
- Friday, 9 August 2019 05:29 PM UTC
Hello. We are migrating a client/server desktop application from PB 12.5 to PB 19. Some of our OLEObject functionality appears to have broken, and I'm looking for some help. It's a homegrown DLL wrapper to C#.
Here is a snippet of the code in question:
oleobject inv_ole
inv_ole = CREATE OLEObject
result = inv_ole.ConnectToNewObject("Our.HomeGrown.PBWrapper.DoIt")
if result 0 then
DESTROY inv_ole
SetNull(inv_ole)
return
end if
inv_ole.MessageWindowHandle = handle(this)
In PB 12.5, everything works as expected. In PB 19, I get the following error:
(Error: 39) Error accessing external object property messagewindowhandle at line 113 in ue_ourevent event of object w_our_window line 113 in ue_ourevent event of w_our_window
Any thoughts? Thanks!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.