Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#5

AW: OpenDialog nonvcl

  Alt 6. Apr 2011, 18:49
Hallo,

Es wäre ganz nützlich wenn du mal durchsteppen würdest (Breakpoint setzen und mit F7/F8 weitersteppen) und sagen könntest in welcher Zeile genau die Zugriffsverletzung auftaucht.

Ansonsten habe ich maximal rausgefunden, dass diese Zeile:

ofn.hInstance := hInstance;
laut MSDN nicht nötig ist:

Zitat:
If the OFN_ENABLETEMPLATEHANDLE flag is set in the Flags member, hInstance is a handle to a memory object containing a dialog box template. If the OFN_ENABLETEMPLATE flag is set, hInstance is a handle to a module that contains a dialog box template named by the lpTemplateName member.
If neither flag is set, this member is ignored
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat