DLL - Newbie - String passing - C DLL
Posted on 1997-10-14
Trying to use a third party dll... Here is the relevant information... Supposed to pass it a DLL handle (I'm doing that ok...) and a pointer to a structure... (I've only shown part of the structure...) The structure is simply a list of char's which I've converted as you can see... The function is supposed to return dummy data in the structure, but the ShowMessage always shows 'Jason'...
Can anyone give me a pointer to getting this going?
ptrAddrRec = ^AddressRecord;
AddressRecord = Record
Company: Array[0..50] of Char;
Address: Array[0..75] of Char;
Suite: Array[0..16] of Char;
City: Array[0..28] of Char;
procedure TForm1.Button1Click(Sender: TObject);
AddrRec.Company := 'Jason';