Home > database >  Call DLL in PB prompt error calling external object function
Call DLL in PB prompt error calling external object function

Time:09-19

Application you need to call a DLL interface, but when the call inside function is always an Error, programs run to r_v=myole. The init (trim (sle_1. Text)) when they quote "Error calling external object function init at line.. "Is how to return a responsibility, how to solve, thank you for your code is as follows:
Oleobject myole
Myole=create oleobject
Int a
A=myole. Connecttonewobject (" PB90. N_clinic_4 ")
If a & lt;> 0 then
Messagebox (" ERROR!" , "connect to newobject error!" )
Return
End the if
Int r_v
R_v=myole. Init (trim (sle_1. Text))
If r_v & lt;> 0 then
Messagebox (" information ", "INIT error!" )
Return
End the if

CodePudding user response:

Myole. Object. The init (trim (sle_1. Text))
So if we can, if not yet have a look at the list of resources the function list of objects

CodePudding user response:

I'm new. Could you tell me how to see the list of resources this object function list, where?
  • Related