Home > database >  Pb how to call c # write a DLL
Pb how to call c # write a DLL

Time:09-23

Pb how to call c # write a DLL?
C # write a simple test with no parameters. The DLL return 1

Private static int (a)
{
return 1;
}

In pb global external function
Defines the function int (a) liabrary "test. DLL
"
Directly in a program called (a)
Bad error runtime function!
Where is wrong?

CodePudding user response:

Written in c # is not a standard DLL, can't use standard DLL call, two kinds of method calls, one will be released the DLL as a com components, according to the com component calls, another is for pb program. The.net application rather than classic, can be called directly

CodePudding user response:

reference 1st floor response:
written in c # is not a standard DLL, can't use the standard call DLL, two kinds of method calls, one will be released the DLL as a com components, according to the com component calls, another is for pb program. The.net application rather than classic, can be directly call


How that will be released the DLL for com component, after the release of pb how to call! ? thank you

CodePudding user response:

Here is the sample, can consult
http://download.csdn.net/detail/xiyang1011/1181546

CodePudding user response:

Call external programs written in PB DLL is requirements for program writing
  • Related