Trying to use a simple DLL function (written in C) that returns the DLL version number, more-or-less.
The text from the documentation file reads:
Description: fills the array with the current DLL version number.
for ALL beta version this will be fixed as V1.0.b
As son as production starts this version will become
V1.0.0 and will be maintained from then.
Entry Parameters: Pointer to a 5 byte array
void DLL_Version ( LPSTR )
Example: DLL_Version ( array );
Upon return the array contains the function as a string.
I've put the following into an application:
DLLVersionNumber : array[0..4] of char;
Function DLL_Version(LPSTR : array of char):pointer; stdcall; external 'THE.dll';
procedure TForm1.DLLVersion1Click(Sender: TObject);
label1.caption := DLLVersionNumber;
Whenever I use it, it causes an invalid page fault. Setting a breakpoint and looking at the value of "DLLVersionNumber" shows the correct string. So what am I doing wrong?
Thanks in advance...