Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCommand Line of a call to CreateProcess catchable? Pin
Stone Free14-Aug-06 5:05
Stone Free14-Aug-06 5:05 
AnswerRe: Command Line of a call to CreateProcess catchable? Pin
David Crow14-Aug-06 5:32
David Crow14-Aug-06 5:32 
AnswerRe: Command Line of a call to CreateProcess catchable? Pin
bolivar12314-Aug-06 6:17
bolivar12314-Aug-06 6:17 
AnswerRe: Command Line of a call to CreateProcess catchable? Pin
Mike Dimmick14-Aug-06 14:28
Mike Dimmick14-Aug-06 14:28 
QuestionQuestion about "optimal" set up of VC++ 6 environment Pin
ldsdbomber14-Aug-06 4:25
ldsdbomber14-Aug-06 4:25 
AnswerRe: Question about "optimal" set up of VC++ 6 environment Pin
David Crow14-Aug-06 4:59
David Crow14-Aug-06 4:59 
QuestionProblem with using Image object in GDI+ (VC++) Pin
Dhananjayak0214-Aug-06 4:19
Dhananjayak0214-Aug-06 4:19 
AnswerRe: Problem with using Image object in GDI+ (VC++) Pin
Mike_V14-Aug-06 4:28
Mike_V14-Aug-06 4:28 
Just a shot-in-the-dark:

Based on your code line alone:
BYTE *pb = reinterpret_cast<???>(m_pProcess) + m_pProcess->MaxSize();

Is MaxSize by any chance the fourth virtual method in m_pProcess? Do you have a memset(m_pProcess, 0, sizeof(...)) or equivalent somewhere? If so I think you are zeroing out the vtable. You can't use memset on a class with virtual methods.

Based on the code above that is the only thing I can think of that would make it crash.

---

Dhananjayak02 wrote:
The program Built & compiled successfully in VC++ 6.0.But didn't run.It gaves a error.


What error?

Mike
GeneralRe: Problem with using Image object in GDI+ (VC++) Pin
Dhananjayak0214-Aug-06 4:44
Dhananjayak0214-Aug-06 4:44 
GeneralRe: Problem with using Image object in GDI+ (VC++) Pin
Mike_V14-Aug-06 4:57
Mike_V14-Aug-06 4:57 
AnswerRe: Problem with using Image object in GDI+ (VC++) Pin
Hamid_RT15-Aug-06 8:13
Hamid_RT15-Aug-06 8:13 
QuestionTo change the tray icon dynamically Pin
johnalek14-Aug-06 2:27
johnalek14-Aug-06 2:27 
AnswerRe: To change the tray icon dynamically Pin
Dave Calkins14-Aug-06 2:51
Dave Calkins14-Aug-06 2:51 
QuestionAnit Copy Pin
Waldermort14-Aug-06 2:24
Waldermort14-Aug-06 2:24 
AnswerRe: Anit Copy Pin
David Crow14-Aug-06 3:37
David Crow14-Aug-06 3:37 
AnswerRe: Anit Copy Pin
Joe Q14-Aug-06 4:56
Joe Q14-Aug-06 4:56 
AnswerRe: Anit Copy Pin
Max Santos14-Aug-06 10:51
Max Santos14-Aug-06 10:51 
GeneralRe: Anit Copy Pin
Waldermort14-Aug-06 15:17
Waldermort14-Aug-06 15:17 
QuestionProblem in MSMQEvent. Pin
uday kiran janaswamy14-Aug-06 1:00
uday kiran janaswamy14-Aug-06 1:00 
Questionhow to set the menu bar??? Pin
mimimimilaw13-Aug-06 23:33
mimimimilaw13-Aug-06 23:33 
AnswerRe: how to set the menu bar??? Pin
prasad_som13-Aug-06 23:41
prasad_som13-Aug-06 23:41 
GeneralRe: how to set the menu bar??? Pin
mimimimilaw13-Aug-06 23:50
mimimimilaw13-Aug-06 23:50 
GeneralRe: how to set the menu bar??? Pin
prasad_som13-Aug-06 23:58
prasad_som13-Aug-06 23:58 
GeneralRe: how to set the menu bar??? Pin
mimimimilaw14-Aug-06 0:41
mimimimilaw14-Aug-06 0:41 
AnswerRe: how to set the menu bar??? Pin
Hamid_RT14-Aug-06 1:16
Hamid_RT14-Aug-06 1: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.