Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   CreateDialogParamW schlägt fehl (https://www.delphipraxis.net/175436-createdialogparamw-schlaegt-fehl.html)

EWeiss 21. Jun 2013 00:39


CreateDialogParamW schlägt fehl
 
Beim aufruf von CreateDialogParamW erhalte ich bei dem neuen Plugin von Milkdrop einen Fehler und kann nicht
feststellen woran es liegt.

Der komplette Record wird gefüllt also da ist nichts NIL

Delphi-Quellcode:
// WASERVICE_LANGUAGE_CREATEDIALOGPARAMW
const
  WASERVICE_LANGUAGE_CREATEDIALOGPARAMW = 53;

type
  PCreateDialogParamsW = ^TCreateDialogParamsW;
  TCreateDialogParamsW = record
    Handle       : ^DWORD;
    Instance     : ^HINST;
    TemplateName : ^PWideChar;
    WndParent    : ^HWND;
    DialogFunc   : ^TFNDlgProc;
    InitParam    : ^LPARAM;
  end;
Delphi-Quellcode:
    WASERVICE_LANGUAGE_CREATEDIALOGPARAMW:
      if Assigned(AParams) and (AParamCount = CreateDialogParamCountW) then
        with CreateDialogParamsW^ do
        begin
          if Assigned(Instance) and
             Assigned(TemplateName) and
             Assigned(WndParent) and
             Assigned(DialogFunc) and
             Assigned(InitParam) then
          begin
            HWND(AReturn^) := CreateDialogParamW(Instance^, TemplateName^,
              WndParent^, DialogFunc^, InitParam^);
            Result := Ord(True);
          end;
        end;
Dieser Aufruf HWND(AReturn^) := CreateDialogParamW...
produziert einen Fehler den ich nicht nachvollziehen kann bekomme keinerlei Fehlermeldungen.
Da stehe ich jetzt was auf den schlauch ;)

Bei all den anderen Plugins (Vorgängerversionen) gehts.
Was könnten die da geändert haben das der aufruf in leere geht. (Absicht vielleicht?)

Nachtrag:
Jetzt kommt doch ein Fehler siehe shot
Die frage wäre dann ist die DLL fehlerhaft?
Wenn ich CreateDialogParamW überspringe dann wird der Dialog angezeigt allerdings
fehlen dann alle Controls (Labels etc..) in den Tabs des Dialogs.

gruss


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:25 Uhr.

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