Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Funktionsaufruf aus C-dll mit Access Violation (https://www.delphipraxis.net/156668-funktionsaufruf-aus-c-dll-mit-access-violation.html)

DeddyH 10. Dez 2010 12:39

AW: Funktionsaufruf aus C-dll mit Access Violation
 
Und mit explizitem Cast?
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
VAR
  RetCode : LONGINT;
  User : STRING = 'user';
  PWD : STRING = 'password';
  ToolName : STRING = 'M1ComTest';
begin
  // Target Connect
  RetCode := TARGET_Connect ( MyTarget, PChar(User), PChar(PWD), PChar(ToolName) );
  Label3.Caption := 'ReturnCode : ' + IntToStr ( RetCode );
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:53 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz