![]() |
Übersetzung Funktionsdeklaration mit Pointer nach VB
Hallo,
ich würde gern aus einer externen DLL eine Funktion in mein VB-Programm übernehmen, habe dazu aber nur die Deklaration in Delphi die ich selbst nicht nach VB6 portiert bekomme. Kann mir da jemand helfen? FUNCTION IPS7GetPLCName(Ref : LongInt; Str : PAnsiChar) : LongInt; stdcall; external 'IPS7LNK.DLL'; speziell geht es um "Str : PAnsiChar" Vielen Dank für eure Tips. |
AW: Übersetzung Funktionsdeklaration mit Pointer nach VB
Code:
Alternativ gibt es für Leute die keine Suchengine kennen hier den link zur SDK dieser DLL mit entsprechender Lösung.
Public Declare Function IPS7GetPLCName Lib "IPS7LNK.dll" (ByVal Ref As Long, ByVal Str As Long) As Long
![]() Dort steht in der IPS7LNK.BAS..
Code:
wobei die Rückgabe "&" Long entspricht.
Declare Function IPS7GetPLCName& Lib "IPS7LNK.dll" (ByVal Ref&, ByVal Str As String)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:39 Uhr. |
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