Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:19
FredrickNorge23-Nov-07 10:19 
QuestionRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 10:23
Mark Salsbery23-Nov-07 10:23 
AnswerRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:27
FredrickNorge23-Nov-07 10:27 
GeneralRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 10:32
Mark Salsbery23-Nov-07 10:32 
GeneralRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:46
FredrickNorge23-Nov-07 10:46 
GeneralRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 11:00
Mark Salsbery23-Nov-07 11:00 
GeneralRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 11:41
FredrickNorge23-Nov-07 11:41 
QuestionVTBL Pin
IWannaTalk23-Nov-07 9:43
IWannaTalk23-Nov-07 9:43 
I will try to write question shortly Smile | :)

struct CEvents
{
virtual HRESULT Method1() = 0;
virtual HRESULT Method2() = 0;
virtual HRESULT Method3() = 0;
};

class A : public CEvents
{
// Implementation of VTBL methods
virtual HRESULT Method1();
virtual HRESULT Method2();
virtual HRESULT Method3();
HRESULT Some();
B *m_B;
};

HRESULT Some()
{
m_b->Initialize( (CEvents*)this );
return S_OK;
}

class B
{
CEvents *m_evs;
HRESULT Initialize( CEvents *evs );
}

HRESULT B::Initialize( CEvents *evs )
{
///////////////////// THIS IS MY QUESTION /////////////////
// This i have trouble... access violation and ect....
// But when i use not pointer to class B as member of A ( B *m_B; )
// there is no any problems - PLEASE, TOLD ME, WHY??????????????

m_evs = evs;
return S_OK;
}



ISQ 469907496

AnswerRe: VTBL Pin
DoomedOne23-Nov-07 9:57
DoomedOne23-Nov-07 9:57 
GeneralRe: VTBL Pin
IWannaTalk23-Nov-07 10:08
IWannaTalk23-Nov-07 10:08 
AnswerRe: VTBL Pin
Mark Salsbery23-Nov-07 10:06
Mark Salsbery23-Nov-07 10:06 
GeneralRe: VTBL Pin
IWannaTalk23-Nov-07 10:11
IWannaTalk23-Nov-07 10:11 
QuestionRe: VTBL Pin
Mark Salsbery23-Nov-07 10:15
Mark Salsbery23-Nov-07 10:15 
AnswerRe: VTBL Pin
IWannaTalk23-Nov-07 10:19
IWannaTalk23-Nov-07 10:19 
GeneralRe: VTBL Pin
ThatsAlok23-Nov-07 18:14
ThatsAlok23-Nov-07 18:14 
Questionconvert ascii to csv Pin
japena0323-Nov-07 9:31
japena0323-Nov-07 9:31 
QuestionRe: convert ascii to csv Pin
Maximilien23-Nov-07 9:38
Maximilien23-Nov-07 9:38 
AnswerRe: convert ascii to csv Pin
japena0324-Nov-07 9:14
japena0324-Nov-07 9:14 
AnswerRe: convert ascii to csv Pin
ThatsAlok23-Nov-07 18:15
ThatsAlok23-Nov-07 18:15 
GeneralRe: convert ascii to csv Pin
japena0324-Nov-07 9:15
japena0324-Nov-07 9:15 
Questioncmak Connection Manager Administration Kit Pin
Klive823-Nov-07 5:29
Klive823-Nov-07 5:29 
QuestionCHTMLView->Load from Stream does not work in the 2nd call Pin
sdancer7523-Nov-07 4:26
sdancer7523-Nov-07 4:26 
AnswerRe: CHTMLView->Load from Stream does not work in the 2nd call Pin
Shog924-Nov-07 9:48
sitebuilderShog924-Nov-07 9:48 
GeneralRe: CHTMLView->Load from Stream does not work in the 2nd call Pin
sdancer7526-Nov-07 1:44
sdancer7526-Nov-07 1:44 
QuestionCompile time directive for checking compiler options? Pin
dstaikos23-Nov-07 3:55
dstaikos23-Nov-07 3:55 

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.