Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPublishing an Visual C++ Exe Pin
Tazzu18-Dec-05 4:12
Tazzu18-Dec-05 4:12 
QuestionDetecting 3rd party firewall Pin
vinoth355618-Dec-05 1:08
vinoth355618-Dec-05 1:08 
QuestionIterators, NULL and Visual Studio 2005 Pin
Franz Klein17-Dec-05 23:06
Franz Klein17-Dec-05 23:06 
AnswerRe: Iterators, NULL and Visual Studio 2005 Pin
Kevin McFarlane18-Dec-05 0:49
Kevin McFarlane18-Dec-05 0:49 
GeneralRe: Iterators, NULL and Visual Studio 2005 Pin
Bob Stanneveld18-Dec-05 2:49
Bob Stanneveld18-Dec-05 2:49 
GeneralRe: Iterators, NULL and Visual Studio 2005 Pin
Kevin McFarlane18-Dec-05 3:20
Kevin McFarlane18-Dec-05 3:20 
AnswerRe: Iterators, NULL and Visual Studio 2005 Pin
Bob Stanneveld18-Dec-05 2:51
Bob Stanneveld18-Dec-05 2:51 
QuestionCFileDialog::GetFolderPath giving out an access violation! Pin
Lord Kixdemp17-Dec-05 13:55
Lord Kixdemp17-Dec-05 13:55 
Hello everyone! Big Grin | :-D
OK, look:

<br />
	CFileDialog openFile(TRUE, NULL, NULL, OFN_OVERWRITEPROMPT|OFN_EXPLORER,<br />
	"Mazzee map groups (*.lmg)|*.lmg|Mazzee maps (*.lmm)|*.lmm|All files (*.*)|*.*||", NULL);<br />
<br />
... ~45 lines later...<br />
<br />
AfxMessageBox((LPCTSTR)openFile.GetFolderPath()); // For debugging<br />
<br />
				curMap = (LPCTSTR)openFile.GetFolderPath() + mapsDir + curMap;


Anyone know why it gives me an access violation? I looked at GetFolderPath()'s code, and it's returning a released buffer when this is less than zero:

GetParent()->SendMessage(CDM_GETFOLDERPATH, (WPARAM)MAX_PATH, (LPARAM)strResult.GetBuffer(MAX_PATH))

Anyone know why it's giving me that? Thanks! Wink | ;-)

Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
QuestionAfxBeginThread confusion with CALLBACK Pin
Vaclav17-Dec-05 13:42
Vaclav17-Dec-05 13:42 
AnswerRe: AfxBeginThread confusion with CALLBACK Pin
Graham Bradshaw18-Dec-05 6:46
Graham Bradshaw18-Dec-05 6:46 
Questionemulator framework Pin
John Simon17-Dec-05 8:05
John Simon17-Dec-05 8:05 
AnswerRe: emulator framework Pin
Neville Franks17-Dec-05 9:38
Neville Franks17-Dec-05 9:38 
GeneralRe: emulator framework Pin
Lord Kixdemp17-Dec-05 13:50
Lord Kixdemp17-Dec-05 13:50 
GeneralRe: emulator framework Pin
Neville Franks17-Dec-05 13:59
Neville Franks17-Dec-05 13:59 
GeneralRe: emulator framework Pin
John Simon17-Dec-05 16:27
John Simon17-Dec-05 16:27 
GeneralRe: emulator framework Pin
Lord Kixdemp17-Dec-05 16:36
Lord Kixdemp17-Dec-05 16:36 
QuestionCoCreateInstance Pin
hmaturana17-Dec-05 7:35
hmaturana17-Dec-05 7:35 
AnswerRe: CoCreateInstance Pin
Dudi Avramov18-Dec-05 2:38
Dudi Avramov18-Dec-05 2:38 
GeneralRe: CoCreateInstance Pin
hmaturana18-Dec-05 7:26
hmaturana18-Dec-05 7:26 
GeneralRe: CoCreateInstance Pin
Dudi Avramov18-Dec-05 19:58
Dudi Avramov18-Dec-05 19:58 
AnswerRe: CoCreateInstance Pin
Blake Miller19-Dec-05 8:16
Blake Miller19-Dec-05 8:16 
QuestionMFC File IO to non-binary text file Pin
dodopendek17-Dec-05 4:29
dodopendek17-Dec-05 4:29 
AnswerRe: MFC File IO to non-binary text file Pin
T1TAN17-Dec-05 13:20
T1TAN17-Dec-05 13:20 
AnswerRe: MFC File IO to non-binary text file Pin
dodopendek17-Dec-05 15:39
dodopendek17-Dec-05 15:39 
QuestionProblem with CAsynchsoket in mfc Pin
selecta17-Dec-05 3:16
selecta17-Dec-05 3:16 

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.