Hello,
I'm working via email with a Delphi/Pascal programmer on a project.
His Delphi program will be calling my PowerBasic DLL, but we're having
a heck of a time getting a simple function to work! (We're both ignorant,
I guess
) As a test, he'd like to call my DLL to perform a division
on two LONGS (32 bit LONGS are called "integers" in Delphi) and return
a SINGLE.
His Delphi version of the DLL call is:
function TestIntDiv(a,b: integer): single; stdcall; external 'DLLTEST.DLL';
I'll show more of his DLL source if it would help, but it doesn't look
like much of it has to do with this function (I could easily be wrong again
though, of course.)
Here's my PB DLL:
I've tried this with INTEGER as well as LONG here, with the same
error message:
"The TESTDIVONLY.EXE file is linked to missing export DLLTEST.DLL
-TestIntDiv."
AARGH!! Anyone happen to know what may be wrong, or what this fellow
and I should be looking for? I saw this same error message in a search
through the forum, but it was for a PB EXE calling a Delphi DLL, rather
than the other way around.
Thanks a ton, I'd be lost without the help here on the PowerBasic forum!
Todd Wasson
------------------
I'm working via email with a Delphi/Pascal programmer on a project.
His Delphi program will be calling my PowerBasic DLL, but we're having
a heck of a time getting a simple function to work! (We're both ignorant,
I guess

on two LONGS (32 bit LONGS are called "integers" in Delphi) and return
a SINGLE.
His Delphi version of the DLL call is:
function TestIntDiv(a,b: integer): single; stdcall; external 'DLLTEST.DLL';
I'll show more of his DLL source if it would help, but it doesn't look
like much of it has to do with this function (I could easily be wrong again
though, of course.)
Here's my PB DLL:
Code:
#COMPILE DLL FUNCTION TestIntDiv (a AS LONG,b AS LONG) EXPORT AS SINGLE MSGBOX "PowerBasic DLL Message: Input values are " + STR$(a)+" and " +STR$(b) FUNCTION=a/b END FUNCTION
error message:
"The TESTDIVONLY.EXE file is linked to missing export DLLTEST.DLL
-TestIntDiv."
AARGH!! Anyone happen to know what may be wrong, or what this fellow
and I should be looking for? I saw this same error message in a search
through the forum, but it was for a PB EXE calling a Delphi DLL, rather
than the other way around.
Thanks a ton, I'd be lost without the help here on the PowerBasic forum!
Todd Wasson
------------------
Comment