Click here to Skip to main content
15,920,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mixing bold text and normal text in a Rich Edit box Pin
Kayembi21-Aug-03 9:26
Kayembi21-Aug-03 9:26 
GeneralCStatusBar problem Pin
karkulka21-Aug-03 8:19
karkulka21-Aug-03 8:19 
GeneralRe: CStatusBar problem Pin
zeki yugnak21-Aug-03 13:01
zeki yugnak21-Aug-03 13:01 
GeneralRe: CStatusBar problem Pin
karkulka22-Aug-03 2:54
karkulka22-Aug-03 2:54 
Questionhow do I set lpstrFile of OPENFILENAME Pin
michael thomas21-Aug-03 8:00
michael thomas21-Aug-03 8:00 
AnswerRe: how do I set lpstrFile of OPENFILENAME Pin
David Crow21-Aug-03 8:21
David Crow21-Aug-03 8:21 
GeneralRe: how do I set lpstrFile of OPENFILENAME Pin
michael thomas21-Aug-03 9:49
michael thomas21-Aug-03 9:49 
AnswerRe: how do I set lpstrFile of OPENFILENAME Pin
PJ Arends21-Aug-03 10:00
professionalPJ Arends21-Aug-03 10:00 
lpstrFile is also used to return your user's selected file(s). The reason your app is crashing is because the buffer you are supplying is too small. Also, you have to set the nMaxFile member to the same size as your buffer. According to MSDN, the buffer should be at least 256 characters.
TCHAR buffer[256] = {0};
_tcscpy(buffer, _T("MyFile.txt"));
my_file_dlg.m_ofn.lpstrFile = buffer;
my_file_dlg.m_ofn.nMaxFile = 256;








Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralAttaching an existing view to a new ChildWnd Pin
Qbus21-Aug-03 7:59
Qbus21-Aug-03 7:59 
QuestionHow to call another project's exe file Pin
mr200321-Aug-03 7:47
mr200321-Aug-03 7:47 
AnswerRe: How to call another project's exe file Pin
David Crow21-Aug-03 8:00
David Crow21-Aug-03 8:00 
GeneralRe: How to call another project's exe file Pin
mr200321-Aug-03 8:48
mr200321-Aug-03 8:48 
GeneralRe: How to call another project's exe file Pin
David Crow21-Aug-03 8:56
David Crow21-Aug-03 8:56 
AnswerRe: How to call another project's exe file Pin
Cambalindo21-Aug-03 8:26
Cambalindo21-Aug-03 8:26 
GeneralClearing/Deleting MFC screen Pin
Anonymous21-Aug-03 7:44
Anonymous21-Aug-03 7:44 
GeneralRe: Clearing/Deleting MFC screen Pin
Larry J. Siddens21-Aug-03 7:53
Larry J. Siddens21-Aug-03 7:53 
GeneralRe: Clearing/Deleting MFC screen Pin
David Crow21-Aug-03 8:09
David Crow21-Aug-03 8:09 
GeneralRe: Clearing/Deleting MFC screen Pin
John R. Shaw21-Aug-03 8:49
John R. Shaw21-Aug-03 8:49 
GeneralCDataGrid with modeless dialog box Pin
sdfdsfa21-Aug-03 6:18
sdfdsfa21-Aug-03 6:18 
GeneralProblems creating dialog with custom control Pin
bt-ascona21-Aug-03 5:22
bt-ascona21-Aug-03 5:22 
GeneralRe: Problems creating dialog with custom control Pin
David Crow21-Aug-03 6:04
David Crow21-Aug-03 6:04 
GeneralRe: Problems creating dialog with custom control Pin
bt-ascona21-Aug-03 9:46
bt-ascona21-Aug-03 9:46 
GeneralRe: Problems creating dialog with custom control Pin
David Crow21-Aug-03 9:53
David Crow21-Aug-03 9:53 
GeneralRe: Problems creating dialog with custom control Pin
bt-ascona21-Aug-03 17:14
bt-ascona21-Aug-03 17:14 
GeneralHelp with Communicating with additional PC's Pin
21-Aug-03 5:14
suss21-Aug-03 5:14 

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.