INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

(OP)
Hello All,

I am getting an error message 'PowerBuilder Application Execution Error (R0015)' when I attempt to call an external function
from arsole.ocx (Thrid party tool - IBM OnDemand32 Windows client ). I am calling following function name Logon from PB but it's giving error "Error calling external function Logon at line 14 in function uf_loginerm of uo_ondemand".

Function definition -
private function Int Logon(ref string pServerName,ref string pUserId,ref string pPassword) library "arsole.ocx"

Code - function call
uf_loginerm -
String pServerName
String pUserId
String pPassword

pServerName ="BSCAP"
pUserId ="JYNMM"
pPassword="FGFHF"

li_rc = Logon(pServerName, pUserId, pPassword)

Could you please kindly help me out to get rid of this issue.

Thanks,
Jude



RE: Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

Try preallocating the memory for the string parameters prior to assigning them values.

Matt

"Nature forges everything on the anvil of time"
www.anvil-of-time.com

RE: Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

(OP)
Hello,

I am getting same error after pre-allocating the memory for the string parameters prior assigning them values.

public function int Logon(ref string pServerName, ref string pUserId, ref string pPassword) library "arsole.ocx" Alias For "DllRegisterServer;Ansi"

After using above declaration i am not getting previous error ("Error no. R0015) instead of that i am getting error no. R0042 (Error: Specified argument type differs from required argument type at runtime in DLL function Logon. (invalid stack pointer on return from function call) at line 37 in function uf_loginerm of object uo_erm). I tried all the combination of argument passing but still i am getting same error.

Could you please assist me in resolving this issue.

Thanks,
Jude




RE: Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

I found the documentation for this control online.

The VB example uses an integer for the return value. This translates to a long in PB.

Matt

"Nature forges everything on the anvil of time"
www.anvil-of-time.com

RE: Urgent - Having issue in accessing third party tool IBM Ondemand Windows client in PowerBuilder

(OP)
Hello,

Thanks for replying so quickly.

I tried using long data type for return value. It's not giving error for the functions/methods which are not having any parameters. It's giving error R0042 when i pass any arguments as a parameter. I don't know what is wrong with arguments passing.

Is there any way to findout the third party function naming convention (__stdcall or Cdecl).

It would be great help if you sort it out this error..

Thanks & Regards,
Jude



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close