Home > database >  PB9 development COM/MTS DLL actually is not a function called, do how?
PB9 development COM/MTS DLL actually is not a function called, do how?

Time:09-21

Used to have done some function, and to provide to the other's interface, and don't want to let others know the content, made a COM/MTS class, which also calls the function in the DLL C platform, under PB DLL can directly invoke the C, packaged into a COM (own function call C functions) of DLL, redo PB application, found themselves is a problem with the function call, to the C functions cannot be executed correctly, I don't know what reason? Please inform each master, thank you.

CodePudding user response:

The errors and post code, we analyze

CodePudding user response:

C to generate a DLL, name for win_self. DLL, there is a function related to the communication F_connect (IP, port, the timeout);
Establish Com, named uf_self_com, define global external function f_connect (string, long, integer) "win_self. DLL" successfully returns 0, establish function uf_init (), call inside f_connect (); Generate the com DLL,
A new PB workspace, call uf_init (), back to 32767,

CodePudding user response:

Should be a statement or there is something wrong with the outer function call
  • Related