Discussions au sujet des autres produits NI

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

problem with dll Delphi using string

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

 

 

0 Compliments
Message 1 sur 2
2 950 Visites

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

0 Compliments
Message 2 sur 2
2 919 Visites