Click here to Skip to main content
15,913,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i adjust dialog initial position? Pin
Jon Hulatt18-Feb-03 21:54
Jon Hulatt18-Feb-03 21:54 
AnswerRe: how can i adjust dialog initial position? Pin
Iain Clarke, Warrior Programmer18-Feb-03 22:13
Iain Clarke, Warrior Programmer18-Feb-03 22:13 
GeneralAsk about EnableWindow(TRUE) and EnableWindow(FALSE) Pin
ooosawaddee318-Feb-03 21:06
ooosawaddee318-Feb-03 21:06 
GeneralRe: Ask about EnableWindow(TRUE) and EnableWindow(FALSE) Pin
HENDRIK R18-Feb-03 21:18
HENDRIK R18-Feb-03 21:18 
GeneralRe: Ask about EnableWindow(TRUE) and EnableWindow(FALSE) Pin
AlexO19-Feb-03 2:16
AlexO19-Feb-03 2:16 
GeneralHelp me clean up my code , please . Pin
Vaclav18-Feb-03 20:52
Vaclav18-Feb-03 20:52 
GeneralRe: Help me clean up my code , please . Pin
Brian Shifrin19-Feb-03 0:19
Brian Shifrin19-Feb-03 0:19 
QuestionWhen combining a console project with MFC, malloc causing problems in release mode??? Pin
Deepak Gupta18-Feb-03 19:52
Deepak Gupta18-Feb-03 19:52 
Hi All,

I wanted to make GUI windows for a console project written that is in C. So I created a simple MFC Dialog Box Application and included all the console project's source files, header files and the library files in to the workspace and called the main(...) function of the console project on the click of a button by passing the command line arguments with it.

The actual C console project, when run in Microsoft Development Editor in both debug as well as release mode, runs perfectly.

If I run the MFC project by pressing F5 in debug mode, it runs well but causes problem when i run the debug EXE from windows explorer. It also crashes when i run it in release mode either by pressing F5, Ctrl F5 or directly run the release EXE from windows explorer.

The problem when i debugged the release mode was that at a certain point, one malloc was returning NULL despite the fact that I have enough memory (256MB) with me.

The malloc is being called from the well running C project file. The same malloc call returns good values for 6 times but returns NULL for the seventh call when i try to allocate just 13 bytes. The problem is not the memory shortage but as i think may be the linking of the C project in MFC environment.

Any help is welcomed...
Deepak Gupta.


Have a Good Day!!!
GeneralAutomation server Pin
Shah Shehpori18-Feb-03 17:54
sussShah Shehpori18-Feb-03 17:54 
Generalnetworking and password protection, please help! Pin
moraalg18-Feb-03 17:24
moraalg18-Feb-03 17:24 
GeneralRe: networking and password protection, please help! Pin
Kannan Kalyanaraman18-Feb-03 17:55
Kannan Kalyanaraman18-Feb-03 17:55 
GeneralRe: networking and password protection, please help! Pin
Abbas_Riazi18-Feb-03 21:44
professionalAbbas_Riazi18-Feb-03 21:44 
Questionthread question? Pin
afender18-Feb-03 16:42
afender18-Feb-03 16:42 
AnswerRe: thread question? Pin
Chintan18-Feb-03 18:30
Chintan18-Feb-03 18:30 
AnswerRe: thread question? Pin
Chintan18-Feb-03 18:34
Chintan18-Feb-03 18:34 
GeneralRe: thread question? Pin
Anonymous18-Feb-03 19:33
Anonymous18-Feb-03 19:33 
GeneralRe: thread question? Pin
Hans Ruck19-Feb-03 3:54
Hans Ruck19-Feb-03 3:54 
GeneralRe: thread question? Pin
Chintan19-Feb-03 22:10
Chintan19-Feb-03 22:10 
GeneralRe: thread question? Pin
afender18-Feb-03 19:55
afender18-Feb-03 19:55 
GeneralRe: thread question? Pin
Chintan19-Feb-03 22:00
Chintan19-Feb-03 22:00 
GeneralRe: thread question? Pin
afender18-Feb-03 19:57
afender18-Feb-03 19:57 
GeneralRe: thread question? Pin
HENDRIK R18-Feb-03 22:04
HENDRIK R18-Feb-03 22:04 
GeneralRe: thread question? Pin
afender9919-Feb-03 4:08
afender9919-Feb-03 4:08 
GeneralRe: thread question? Pin
Joe Woodbury19-Feb-03 9:50
professionalJoe Woodbury19-Feb-03 9:50 
GeneralRe: thread question? Pin
afender19-Feb-03 15:41
afender19-Feb-03 15:41 

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.