Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDifference between debug and release builds Pin
bhogavalli suresh12-Sep-07 2:10
bhogavalli suresh12-Sep-07 2:10 
AnswerRe: Difference between debug and release builds Pin
chandu00412-Sep-07 2:19
chandu00412-Sep-07 2:19 
AnswerRe: Difference between debug and release builds Pin
Nelek12-Sep-07 2:39
protectorNelek12-Sep-07 2:39 
AnswerRe: Difference between debug and release builds Pin
Jonathan [Darka]12-Sep-07 2:52
professionalJonathan [Darka]12-Sep-07 2:52 
GeneralRe: Difference between debug and release builds Pin
Chris Losinger12-Sep-07 7:10
professionalChris Losinger12-Sep-07 7:10 
AnswerRe: Difference between debug and release builds Pin
carrivick12-Sep-07 5:36
carrivick12-Sep-07 5:36 
AnswerRe: Difference between debug and release builds Pin
Hamid_RT12-Sep-07 6:59
Hamid_RT12-Sep-07 6:59 
QuestionError when dumping PE file Pin
sawerr12-Sep-07 2:06
sawerr12-Sep-07 2:06 
Hi In my program i want to use
<br />
BOOL MapAndLoad(<br />
  PSTR ImageName,<br />
  PSTR DllPath,<br />
  PLOADED_IMAGE LoadedImage,<br />
  BOOL DotDll,<br />
  BOOL ReadOnly<br />
);<br />

function in Imagehlp.h .
<br />
CPE::CPE(CString fileName, CString filePath):fileName(fileName),filePath(filePath)<br />
{       LOADED_IMAGE loi;<br />
	::MapAndLoad((LPSTR)(LPCTSTR)fileName, (LPSTR)(LPCTSTR)filePath, &loi,FALSE, TRUE);<br />
	int i = loi.NumberOfSections;<br />
        char q[50];<br />
	sprintf(q,"%d",i);<br />
	MessageBox(NULL, q,NULL,0);<br />
}<br />

When i compiled and execute it. It gives error Messagebox with value -858993460 . I changed my projects setting use multibyte character set. wchar_t to char.

But can not find solution. What is wrong with this code?
How can i fix it?

Thanks.
AnswerRe: Error when dumping PE file Pin
David Crow12-Sep-07 2:56
David Crow12-Sep-07 2:56 
GeneralRe: Error when dumping PE file Pin
sawerr12-Sep-07 3:47
sawerr12-Sep-07 3:47 
GeneralRe: Error when dumping PE file Pin
David Crow12-Sep-07 4:05
David Crow12-Sep-07 4:05 
GeneralRe: Error when dumping PE file Pin
sawerr12-Sep-07 5:03
sawerr12-Sep-07 5:03 
QuestionHow to set bitmap as a My desktop wallpaper [modified] Pin
padpras12-Sep-07 1:34
padpras12-Sep-07 1:34 
AnswerRe: How to set bitmap as a My desktop wallpaper Pin
David Crow12-Sep-07 3:00
David Crow12-Sep-07 3:00 
AnswerRe: How to set bitmap as a My desktop wallpaper Pin
Hamid_RT12-Sep-07 6:51
Hamid_RT12-Sep-07 6:51 
Questionhow to delete a file permanently from hard disk? Pin
AnayKulkarni12-Sep-07 1:18
AnayKulkarni12-Sep-07 1:18 
AnswerRe: how to delete a file permanently from hard disk? Pin
Karismatic12-Sep-07 1:31
Karismatic12-Sep-07 1:31 
AnswerRe: how to delete a file permanently from hard disk? Pin
krmed12-Sep-07 1:52
krmed12-Sep-07 1:52 
AnswerRe: how to delete a file permanently from hard disk? Pin
David Crow12-Sep-07 3:02
David Crow12-Sep-07 3:02 
QuestionWant to check this check box programmatically Pin
Mushtaque Nizamani12-Sep-07 1:01
Mushtaque Nizamani12-Sep-07 1:01 
QuestionRe: Want to check this check box programmatically Pin
David Crow12-Sep-07 3:08
David Crow12-Sep-07 3:08 
AnswerRe: Want to check this check box programmatically Pin
Mushtaque Nizamani12-Sep-07 3:18
Mushtaque Nizamani12-Sep-07 3:18 
GeneralRe: Want to check this check box programmatically Pin
David Crow12-Sep-07 3:34
David Crow12-Sep-07 3:34 
AnswerRe: Want to check this check box programmatically Pin
nbugalia12-Sep-07 3:15
nbugalia12-Sep-07 3:15 
QuestionSemi automatic forground video segmentation Pin
ptr_Electron12-Sep-07 0:44
ptr_Electron12-Sep-07 0:44 

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.