Home > database >  Never use a sentence in the statement calling code into PB can use c # code?
Never use a sentence in the statement calling code into PB can use c # code?

Time:09-29

How can I also put this sentence in the statement calling code into PB can use c # code?
[DllImport (" Vcode. DLL)]
Public static extern IntPtr GetVcode (IntPtr PicName);

CodePudding user response:

.
After checked the MSDN, says IntPtr is a structure, try a guess:

Public IntPtr GetVcode (IntPtr PicName) Library "Vcode. DLL
"

CodePudding user response:

Vcode. DLL this file to be in the environment variable or the current directory

CodePudding user response:

IntPtr defined as a structure

The statement is as follows:

The public function IntPtr GetVcode (IntPtr PicName) Library "Vcode. DLL
"

CodePudding user response:

See a Java calls, seemingly so can
The Function string GetVcode (string PicName) Library "Vcode. DLL"

CodePudding user response:

First three said is right, but lzp_lrp is best, thank you, my words finished,

CodePudding user response:

Oh stay, intptr is pointer type in c #
Public long GetVcode (ref string PicName) Library "Vcode. DLL
"

CodePudding user response:

refer to 6th floor hovoy response:
before three said is right, but lzp_lrp is best, thank you, my words finished,
support
  • Related