Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File manage problem. Pin
Michael Dunn14-Feb-07 20:17
sitebuilderMichael Dunn14-Feb-07 20:17 
GeneralRe: File manage problem. Pin
david bagaturia14-Feb-07 20:31
david bagaturia14-Feb-07 20:31 
QuestionRe: File manage problem. Pin
Nibu babu thomas14-Feb-07 21:21
Nibu babu thomas14-Feb-07 21:21 
AnswerRe: File manage problem. Pin
david bagaturia14-Feb-07 21:51
david bagaturia14-Feb-07 21:51 
QuestionAppending & inseting Text in RichEdit Pin
Swapnil G14-Feb-07 18:52
Swapnil G14-Feb-07 18:52 
AnswerRe: Appending & inseting Text in RichEdit Pin
Hamid_RT14-Feb-07 20:57
Hamid_RT14-Feb-07 20:57 
AnswerRe: Appending & inseting Text in RichEdit Pin
Mark Salsbery15-Feb-07 7:04
Mark Salsbery15-Feb-07 7:04 
QuestionReference class from global Pin
Oliver12314-Feb-07 18:18
Oliver12314-Feb-07 18:18 
I have a fragment of code as an example, and I'm trying to figure out what it does and how.

void WINAPI CLeft::Abc(LinkPtr pData)<br />
{<br />
   g_Spec().Xyz(pData);<br />
}


I know CLeft::CLeft is a global outside of any class. It receives callbacks from a server.
I know Xyz is in a class.
I know the pointer pData is being passed.
I think both Abc and Xyz are defined in the same file.
I'm not sure what g_Spec().Xyz()really is.

I'm trying to figure out how and where one defines g_Spec().Xyz(pData)so it can
1)be referenced by Xyz
2)be a class or within a class

Anything look familiar? I really don't know if there is enough here to provide sufficient information.

I am currently using the following and don't like it. It seems too complex, but that's how I got it to work.
Abc is outside any class.
Xyz is a function in CNewDlg.

void WINAPI Abc(LinkPtr pData)<br />
{<br />
((CNewDlg*)AfxGetApp()->m_pMainWnd)->Xyz(pData); 
<---I don't like this
}

Thanks
AnswerRe: Reference class from global Pin
jhwurmbach14-Feb-07 21:59
jhwurmbach14-Feb-07 21:59 
Questionc programming Pin
deeps_cute14-Feb-07 17:05
deeps_cute14-Feb-07 17:05 
AnswerRe: c programming Pin
Waldermort14-Feb-07 20:22
Waldermort14-Feb-07 20:22 
QuestionHow to creat a new folder and a new file Pin
zhangguoliming14-Feb-07 9:20
zhangguoliming14-Feb-07 9:20 
QuestionRe: How to creat a new folder and a new file Pin
David Crow14-Feb-07 9:54
David Crow14-Feb-07 9:54 
AnswerRe: How to creat a new folder and a new file Pin
#realJSOP14-Feb-07 10:01
professional#realJSOP14-Feb-07 10:01 
AnswerRe: How to creat a new folder and a new file Pin
Sceptic Mole14-Feb-07 10:19
Sceptic Mole14-Feb-07 10:19 
AnswerRe: How to creat a new folder and a new file Pin
Hamid_RT14-Feb-07 17:48
Hamid_RT14-Feb-07 17:48 
QuestionApplication name depending on code #define? Pin
suggam14-Feb-07 8:10
suggam14-Feb-07 8:10 
AnswerRe: Application name depending on code #define? Pin
Mark Salsbery14-Feb-07 8:39
Mark Salsbery14-Feb-07 8:39 
AnswerRe: Application name depending on code #define? [modified] Pin
#realJSOP14-Feb-07 9:49
professional#realJSOP14-Feb-07 9:49 
GeneralRe: Application name depending on code #define? Pin
jhwurmbach14-Feb-07 22:03
jhwurmbach14-Feb-07 22:03 
GeneralRe: Application name depending on code #define? Pin
suggam15-Feb-07 3:45
suggam15-Feb-07 3:45 
GeneralRe: Application name depending on code #define? Pin
#realJSOP15-Feb-07 8:51
professional#realJSOP15-Feb-07 8:51 
GeneralRe: Application name depending on code #define? Pin
suggam15-Feb-07 12:01
suggam15-Feb-07 12:01 
QuestionPassing pointers from VB Pin
Renato Carvalho14-Feb-07 7:52
Renato Carvalho14-Feb-07 7:52 
GeneralRe: Passing pointers from VB Pin
Renato Carvalho14-Feb-07 8:16
Renato Carvalho14-Feb-07 8: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.