17. Mai 200223 j hallo, ich habe folgenden Code OPENFILENAME ofn; char szFile[MAX_PATH]; ZeroMemory(&ofn, sizeof(OPENFILENAME)); ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = hWndParent; ofn.lpstrFile = szFile; ofn.nMaxFile = sizeof(szFile); ofn.lpstrFilter = "Alle Dateien\0*.*\0" "Joint Photographic Experts Group (JPEG)\0*.JPG;*.JPEG\0" "Graphics Interchange Format (GIF)\0*.GIF;*.GIFF\0" "Portable Network Graphics (PNG)\0*.PNG\0" "Tag Image File Format (TIFF)\0*.TIFF;*.TIF\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_EXPLORER; if (GetOpenFileName(&ofn) == TRUE) SendMessage(hWndParent, WM_OPENFILE, 0, (long)ofn.lpstrFile); [/PHP] Problem ist, das der Dialog nicht angezeigt wird. Frage: WARUM ??? Habe ich was vergessen ???
17. Mai 200223 j Also ich wuerd sagen das funktioniert doch scho fast Du solltests mal mit char szFile[MAX_PATH] = {'\0'}; versuchen Goos
18. Mai 200223 j gemein das der ganze ****** wegen so einer kleinen kleinigkeit nicht läuft. jetzt klappt es aber. besten dank.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.