I'm trying to get the Common Open/Save dialogs to come up but they won't display no matter what I try, I'm using Borland C++ Builder 6.0 and i've tryed just about all the examples with getopenfilename on this forum and msdn site I could find. Nothing works.
Code:case ID_FILE_LOAD: { char FileName[MAX_PATH]; OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = hwnd; ofn.lpstrFile = FileName; ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = sizeof(FileName); ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST; GetOpenFileName(&ofn); } break;