Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrouble with Radio Buttons Pin
Anonymous22-Jul-02 4:56
Anonymous22-Jul-02 4:56 
GeneralRe: Trouble with Radio Buttons Pin
Navin22-Jul-02 5:36
Navin22-Jul-02 5:36 
GeneralRe: Trouble with Radio Buttons Pin
Renjith Ramachandran22-Jul-02 6:35
Renjith Ramachandran22-Jul-02 6:35 
Generalimitating mouse clicks Pin
NickOne22-Jul-02 4:34
NickOne22-Jul-02 4:34 
Questiontreeview check box color ? Pin
insanely42022-Jul-02 4:25
insanely42022-Jul-02 4:25 
AnswerRe: treeview check box color ? Pin
Shog922-Jul-02 12:58
sitebuilderShog922-Jul-02 12:58 
QuestionDestroyWindow and MDI view...??? Pin
ns22-Jul-02 3:52
ns22-Jul-02 3:52 
GeneralGetOpenFileName unhandled exception. Pin
redeemer22-Jul-02 3:08
redeemer22-Jul-02 3:08 
here's the code, when i get to the GetOpenFileName line it gives me an unhandled exception, i can't figure out what's wrong, here's the code:

void OnBrowse()
{
	OPENFILENAME ofn;
	char szFileName[MAX_PATH+1];
	const char szFilter[] = "All Files (*.*)\0" "*.*\0";

	szFileName[0] = '\0';
	ofn.lStructSize = sizeof(OPENFILENAME);
	
	ofn.hwndOwner = ghWnd;
	ofn.lpstrFilter = szFilter;
	ofn.lpstrCustomFilter = (LPSTR)NULL;
	ofn.nFilterIndex = 1;
	ofn.lpstrFile = szFileName;
	ofn.nMaxFile = sizeof(szFileName);
	ofn.lpstrFileTitle = NULL;
	ofn.lpstrTitle = (LPSTR)NULL;
	ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_EXPLORER;
	ofn.nFileOffset = 0;
	ofn.nFileExtension = 0;
	ofn.lpstrDefExt = "txt";
 
	
	if (GetOpenFileName(&ofn))
		SetDlgItemText(ghWnd, IDC_LIST, szFileName);
}


Thanks in advance.

-Rune Svendsen
GeneralRe: GetOpenFileName unhandled exception. Pin
Mike Upton22-Jul-02 4:08
Mike Upton22-Jul-02 4:08 
GeneralRe: GetOpenFileName unhandled exception. Pin
redeemer22-Jul-02 5:01
redeemer22-Jul-02 5:01 
QuestionGDI?? Pin
Anonymous22-Jul-02 2:04
Anonymous22-Jul-02 2:04 
AnswerRe: GDI?? Pin
Christian Graus22-Jul-02 2:05
protectorChristian Graus22-Jul-02 2:05 
GeneralEvent Sinking Interfaces Pin
QAU22-Jul-02 2:02
QAU22-Jul-02 2:02 
Generaladd button to CToolBar, help ! Pin
includeh1022-Jul-02 1:33
includeh1022-Jul-02 1:33 
GeneralCDC::DrawText and DT_CALCRECT Pin
-Dy22-Jul-02 0:25
-Dy22-Jul-02 0:25 
GeneralRe: CDC::DrawText and DT_CALCRECT Pin
Paul M Watt22-Jul-02 9:31
mentorPaul M Watt22-Jul-02 9:31 
GeneralCListCtrl sorting problem Pin
RuiSantiago21-Jul-02 23:36
RuiSantiago21-Jul-02 23:36 
GeneralRe: CListCtrl sorting problem Pin
RuiSantiago21-Jul-02 23:44
RuiSantiago21-Jul-02 23:44 
GeneralMemory error Pin
suresh_sathya21-Jul-02 23:23
suresh_sathya21-Jul-02 23:23 
GeneralRe: Memory error Pin
567890123421-Jul-02 23:24
567890123421-Jul-02 23:24 
GeneralRe: Memory error Pin
Alexandru Savescu21-Jul-02 23:33
Alexandru Savescu21-Jul-02 23:33 
GeneralActivex Programing Pin
Asghar Teimoori21-Jul-02 21:50
Asghar Teimoori21-Jul-02 21:50 
GeneralRe: Activex Programing Pin
super21-Jul-02 22:58
professionalsuper21-Jul-02 22:58 
Generalgdi+ with 3d line Pin
realfly21-Jul-02 21:20
realfly21-Jul-02 21:20 
GeneralRe: gdi+ with 3d line Pin
NormDroid21-Jul-02 21:46
professionalNormDroid21-Jul-02 21:46 

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.