Home > database >  PB calls PB DLL written in an error, I don't know what's the problem
PB calls PB DLL written in an error, I don't know what's the problem

Time:09-19

My steps is new - & gt; Com/MTS/com + component wizard - & gt; Next, all the way to generate p_clinic4_commts, double-click the toolbar above the deploy, generate DLL files and idl files, and use it every time you first register the DLL, and then call function, but failed, don't know is what reason, is I build interfaces in the right way?

CodePudding user response:

PB can't write DLL, only know that there are written by c + +

CodePudding user response:

I PB9.0 COM can be used to generate DLL and idl interface, but can't use

CodePudding user response:

Can call, stick your calling code, the error is coming

CodePudding user response:

Invoked prompts the wrong myole=create oleobject
Int a
A=myole. Connecttonewobject (" PB90. N_clinic4 ")
Messagebox (" connect ", a)
If a & lt;> 0 then
Messagebox (" ERROR!" , "connect to newobject error!" )
Return
End the if

Int r_v
R_v=myole. The init ()
Messagebox (" r_v r_v)
If r_v & lt;> 0 then
Messagebox (" information ", "INIT error!" )
Return
end if

CodePudding user response:

The declaration in the external functions provides the called function?

CodePudding user response:

There is a written in global external functions provides the Function of integer init (ref int r_v) library 'clinic4. DLL'

CodePudding user response:

CodePudding user response:

Nobody???????

CodePudding user response:

The path to the DLL?

CodePudding user response:

What path? Path is generated by default with PBL in a directory, when used under the application directory, registration is successful, also is the specific call DLL function, the inside tip call external function error
  • Related