Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTransparent ActiveX Pin
johnnyXP3-Oct-03 12:48
johnnyXP3-Oct-03 12:48 
Generalhandle passing problem... Pin
R. Thomas3-Oct-03 10:42
R. Thomas3-Oct-03 10:42 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:07
R. Thomas3-Oct-03 19:07 
GeneralRe: handle passing problem... Pin
J. Dunlap3-Oct-03 19:14
J. Dunlap3-Oct-03 19:14 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:38
R. Thomas3-Oct-03 19:38 
GeneralRe: handle passing problem... Pin
J. Dunlap3-Oct-03 19:46
J. Dunlap3-Oct-03 19:46 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:55
R. Thomas3-Oct-03 19:55 
GeneralRe: handle passing problem... Pin
J. Dunlap3-Oct-03 21:17
J. Dunlap3-Oct-03 21:17 
Suppose the method you wanted to call in the first class was called DoSomething(CDlg dialog), the method you wanted to call in the second class was DoSomething2(CDlg dialog), and the method to be called in the dialog was called CallDialogMethod. The code below would do what you wanted:

//in dialog
class1.DoSomething(this);

//in class 1
class2.DoSomething2(dialog);

//in class 2
dialog.CallDialogMethod();


You might consider buying some books on programming in C++. They'll help you with this type of thing. Smile | :)


""It is impossible to rightly govern the world without God and the Bible." -- George Washington

FLUID UI Toolkit







GeneralRe: handle passing problem... Pin
R. Thomas4-Oct-03 6:45
R. Thomas4-Oct-03 6:45 
GeneralRe: handle passing problem... Pin
J. Dunlap4-Oct-03 16:47
J. Dunlap4-Oct-03 16:47 
GeneralCXImage Printing Pin
radha vijay3-Oct-03 10:34
radha vijay3-Oct-03 10:34 
GeneralPrinting in vc++ Pin
radha vijay3-Oct-03 10:32
radha vijay3-Oct-03 10:32 
QuestionIs it me or is it the compiler? Pin
Ravi Bhavnani3-Oct-03 10:24
professionalRavi Bhavnani3-Oct-03 10:24 
AnswerRe: Is it me or is it the compiler? Pin
Orhun Birsoy3-Oct-03 10:37
Orhun Birsoy3-Oct-03 10:37 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani3-Oct-03 10:42
professionalRavi Bhavnani3-Oct-03 10:42 
GeneralRe: Is it me or is it the compiler? Pin
Peter Weyzen3-Oct-03 11:26
Peter Weyzen3-Oct-03 11:26 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani3-Oct-03 12:18
professionalRavi Bhavnani3-Oct-03 12:18 
AnswerRe: Is it me or is it the compiler? Pin
Michael Dunn3-Oct-03 13:06
sitebuilderMichael Dunn3-Oct-03 13:06 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani3-Oct-03 13:17
professionalRavi Bhavnani3-Oct-03 13:17 
GeneralRe: Is it me or is it the compiler? Pin
Michael Dunn3-Oct-03 14:26
sitebuilderMichael Dunn3-Oct-03 14:26 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani4-Oct-03 6:11
professionalRavi Bhavnani4-Oct-03 6:11 
GeneralRe: Is it me or is it the compiler? Pin
peterchen3-Oct-03 20:32
peterchen3-Oct-03 20:32 
GeneralRe: Is it me or is it the compiler? Pin
Ravi Bhavnani4-Oct-03 6:13
professionalRavi Bhavnani4-Oct-03 6:13 
GeneralWeird VC++ behaviour Pin
DaFrawg3-Oct-03 9:45
DaFrawg3-Oct-03 9:45 
GeneralRe: Weird VC++ behaviour Pin
Michael P Butler3-Oct-03 10:00
Michael P Butler3-Oct-03 10:00 

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.