![]() |
Re: Read Error bei dll
Zitat:
|
Re: Read Error bei dll
die dll hat eine Hostanwendung, mIRC.
Diese wird wie folgt aufgerufen.. //dll meine.dll ShowMSG MeineParameter Hoffe du hast es verstanden ;-) |
Re: Read Error bei dll
Nein. Wo wird die so aufgerufen? Kommandozeile?
|
Re: Read Error bei dll
joa .. Kommandozeile
|
Re: Read Error bei dll
Und was bedeutet:
Code:
..//dll
|
Re: Read Error bei dll
aus der Hilfe ...
Zitat:
|
Re: Read Error bei dll
Probier mal das:
Delphi-Quellcode:
function ShowMSG( mWnd: hWnd; aWnd: hWnd; Data: PChar; Parms: PChar;
Show: Boolean; NoPause: Boolean ): Integer; export; stdcall; var i: Integer; s: string; slist : TStringList; begin s := Trim(StrPas(Data)); slist := TStringList.Create; try while (Pos('-', s) = 1) do begin slist.Add(Copy(s, 1, Pos(' ', s)-1)); Delete(s, 1, Pos(' ', s)); s := Trim(s); If (s[1] = '"') then begin Delete(s, 1, 1); slist.Add(Copy(s, 1, Pos('"', s) - 1)); Delete(s, 1, Pos('"', s)); end else If (Pos(' ', s) > 0) then begin slist.Add(Copy(s, 1, Pos(' ', s)-1)); Delete(s, 1, Pos(' ', s)); end else begin slist.Add(s); s := ''; end; s := Trim(s); end; for i := 0 to (slist.Count-1) do begin if (slist[i] = '-FPath') then FPath := PChar(slist[i+1]); if (slist[i] = '-Source') then Source := PChar(slist[i+1]); if (slist[i] = '-SPath') then SPath := PChar(slist[i+1]); if (slist[i] = '-Target') then Target := PChar(slist[i+1]); if (slist[i] = '-TPath') then TPath := PChar(slist[i+1]); if (slist[i] = '-Release') then Release := PChar(slist[i+1]); if (slist[i] = '-FQF') then FQF := PChar(slist[i+1]); if (slist[i] = '-IFQF') then IFQF := PChar(slist[i+1]); end; finally slist.Free; end; ShowMessage('FQF ' + ' ' + FQF + #10'Source ' + Source + ' ' + #10'SPath ' + SPath + ' ' + #10'Target ' + Target + ' ' + #10'TPath ' + TPath + ' ' + #10'Release ' + Release + ' ' + #10'IFQF ' + IFQF + ' ' + #10'FPath ' + FPath); Result := 0; end; |
Re: Read Error bei dll
gleicher fehler, bzw die variablen bleiben leer.
ich hab auch meinen dll aufruf von verschiednene IRC Scripter überprüfen lassen. Der stimmt 100%. |
Re: Read Error bei dll
Sorry, habs nochmal von "parms" in "data" geändert.
In der Hilfe steht: Zitat:
|
Re: Read Error bei dll
Jap .. danke .. so funktioniert es :))
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:33 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