- Praveen Rajarao
- PowerBuilder
- Monday, 13 August 2018 07:06 PM UTC
We have couple of existing PB applications in version PB12.5.2 which are of .NET win forms target.
We noticed that this target is no longer available in PowerBuilder 2017 R3.
What is the workaround to migrate these applications to the new version. We need this application as a .NET target since we are referencing a COM Visible .NET DLL to call the methods inside the DLL.
We also tried to use the appeon_workaround.pbl but it is not returning back the result from the DLL method. The code looks like below. We also deployed the application and tried to run from the EXE. It didn’t work either. The return argument – iResult is NULL. There is no error however when we call the function.
Appreciate if you could address this and let us know how we can migrate this application to the new version.
long lRet
string iResult
string strError
string ls_cipher_string = ‘TEST’
appeondotnetcomponent comcaller
any paramlist[]
comcaller = create appeondotnetcomponent
comcaller.componenttype = '1'
comcaller.typelib = 'HelloWorld.dll'
comcaller.classdescript = 'Program'
// invoke component method
paramlist[1] = ls_cipher_string
lRet = comcaller.of_execinterface( "SayHello", paramlist)
if lRet = 0 then
iResult = string(comcaller.ReturnValue)
messagebox('Hi', iResult)
else
strError = comcaller.ErrorText
end if
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.