Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic C++ question. Pin
Joaquín M López Muñoz17-Oct-02 8:17
Joaquín M López Muñoz17-Oct-02 8:17 
GeneralRe: Basic C++ question. Pin
Maximilien17-Oct-02 8:23
Maximilien17-Oct-02 8:23 
GeneralRe: Basic C++ question. Pin
Chris Richardson17-Oct-02 8:26
Chris Richardson17-Oct-02 8:26 
GeneralRe: Basic C++ question. Pin
Anonymous17-Oct-02 9:14
Anonymous17-Oct-02 9:14 
GeneralRe: Basic C++ question. Pin
Chris Richardson17-Oct-02 9:18
Chris Richardson17-Oct-02 9:18 
QuestionUnsupported operation ? Pin
ssirisha17-Oct-02 8:09
ssirisha17-Oct-02 8:09 
GeneralAnother CView question Pin
ns17-Oct-02 8:01
ns17-Oct-02 8:01 
GeneralGetOpenFileName returns invalid parameter... Pin
Anonymous17-Oct-02 7:58
Anonymous17-Oct-02 7:58 
here's my OPENFILENAME struct:

char szFileNames[(MAX_PATH+1)*1000+1];

ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = ghWnd;
ofn.hInstance = ghInstance;
ofn.lpstrFilter = "All Files (*.*)\0*.*\0";;
ofn.lpstrCustomFilter = NULL;
ofn.nMaxCustFilter = NULL;
ofn.nFilterIndex = 1;
ofn.lpstrFile = szFileNames;
ofn.nMaxFile = (MAX_PATH+1)*1000+1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = NULL;
ofn.lpstrInitialDir = "C:\\";
ofn.lpstrTitle = "Open File(s)";
ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_EXPLORER | OFN_NODEREFERENCELINKS | OFN_NONETWORKBUTTON;
ofn.nFileOffset = NULL;
ofn.nFileExtension = NULL;
ofn.lpstrDefExt = "*.*";
ofn.lCustData = NULL;
ofn.lpfnHook = NULL;
ofn.lpTemplateName = NULL;


ghWnd is a valid handle to my main window and ghInstance is also a valid handle to my apps memory block

When i run the GetOpenFileName function it returns false, and a call to GetLastError returns "invalid parameter", what am i doing wrong?

Thanks
GeneralButton::SetIcon() Pin
Ruca17-Oct-02 7:53
Ruca17-Oct-02 7:53 
GeneralRe: Button::SetIcon() Pin
alannx21-Aug-12 15:48
alannx21-Aug-12 15:48 
GeneralCView* pView Pin
ns17-Oct-02 7:49
ns17-Oct-02 7:49 
GeneralRe: CView* pView Pin
Joaquín M López Muñoz17-Oct-02 7:56
Joaquín M López Muñoz17-Oct-02 7:56 
Generalthank you! Pin
ns17-Oct-02 8:13
ns17-Oct-02 8:13 
GeneralRe: CView* pView Pin
jmkhael17-Oct-02 7:55
jmkhael17-Oct-02 7:55 
GeneralImage Pin
Anonymous17-Oct-02 7:26
Anonymous17-Oct-02 7:26 
GeneralRe: Image Pin
jmkhael17-Oct-02 7:53
jmkhael17-Oct-02 7:53 
Generalproperty page data Pin
Kash17-Oct-02 6:56
Kash17-Oct-02 6:56 
GeneralRe: property page data Pin
Pavel Klocek17-Oct-02 7:59
Pavel Klocek17-Oct-02 7:59 
Generalsearching for a string in ram and altering Pin
Kuniva17-Oct-02 6:32
Kuniva17-Oct-02 6:32 
GeneralRe: searching for a string in ram and altering Pin
Maximilien17-Oct-02 7:25
Maximilien17-Oct-02 7:25 
GeneralRe: searching for a string in ram and altering Pin
nidis23-Oct-02 2:06
nidis23-Oct-02 2:06 
GeneralDamn CSocket Pin
Anonymous17-Oct-02 6:23
Anonymous17-Oct-02 6:23 
GeneralRe: Damn CSocket Pin
Stephane Rodriguez.17-Oct-02 6:35
Stephane Rodriguez.17-Oct-02 6:35 
GeneralRe: Damn CSocket Pin
Anonymous17-Oct-02 6:51
Anonymous17-Oct-02 6:51 
GeneralCListCtrl's rows colors Pin
RuiSantiago17-Oct-02 6:23
RuiSantiago17-Oct-02 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.