le 05-03-2011 08:37 AM
Hi everybody,
My question is simple : how can I get a string parameter from a delphi dll, there are a lot of posts about it but no clear answers... too bad
Here is an example ok a function which works in Delphi but not in LV
procedure test_chaine(apchar : Pchar);stdcall;
begin
MessageDlg(string(apchar), mtWarning, [mbOK], 0);
end;
Call Library Function parameters :
calling convention : stdcall
arg1 string format C string Pointer
Thanks you
Fabrice
le 05-05-2011 07:37 AM
Hi Fabrice91,
Thank you for posting your answer on National Instruments forum.
It would be great if you could provide us the dll or a similar delphi dll sending a string.
Here is an interesting article about delphi dll.
Cheers Romain
(la prochaine fois n'hésitez pas à répondre en français 🙂
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France