Home > database >  PB to VC DLL incoming parameters errors
PB to VC DLL incoming parameters errors

Time:09-28

As long as it is needs to have a function of parameter input, will be a problem, that is to say, can't input parameters,

If there are no parameters to can return to normal value.
Don't know why?

CodePudding user response:

I don't know speak too!
DLL is how to define!
PB in how to define, how to do!

CodePudding user response:

I use VC to write a DLL, it includes many function

Some function is not to need to incoming parameters, and the function in the call, can return to normal value
Statement of PB is
The function of integer CheckPrint () LIBRARY "SNDLL. DLL
"
And some of the Function is need to value, the Function is to call with prompt "invalid stack pointer on the return form the Function call" error.
Statement of PB is
The function of integer ReturnInt (integer ReturnChar_i) LIBRARY "SNDLL. DLL
"

CodePudding user response:

Function declarations seems to be no mistake, should see you VC DLL is how to write, then there is the DLL function mode of export,

DLL debugged, for you to write a log, or to see what is is your PB incoming number,

CodePudding user response:

Pay attention to the matching data type,
Vc in the int corresponding pb in long, and so on

CodePudding user response:

Estimation is c way of calling DLL statement is wrong, I remember I was wrote stdcall before use

CodePudding user response:

Note that variable type,,,
Use char, byte in pb?
  • Related