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

C / C++ / MFC

 
QuestionHow to create a project template? Pin
junli5-Oct-03 22:32
junli5-Oct-03 22:32 
GeneralScrollbar sizes Pin
Stlan5-Oct-03 22:00
Stlan5-Oct-03 22:00 
GeneralGetSystemMetrics Pin
Stlan5-Oct-03 22:48
Stlan5-Oct-03 22:48 
GeneralCommunication betwwen classes Pin
BlackRider5-Oct-03 21:36
BlackRider5-Oct-03 21:36 
GeneralRe: Communication betwwen classes Pin
jhwurmbach5-Oct-03 22:01
jhwurmbach5-Oct-03 22:01 
GeneralRe: Communication betwwen classes Pin
BlackRider5-Oct-03 23:12
BlackRider5-Oct-03 23:12 
GeneralRe: Communication betwwen classes Pin
jhwurmbach5-Oct-03 23:17
jhwurmbach5-Oct-03 23:17 
GeneralRe: Communication betwwen classes Pin
spiritualfields6-Oct-03 4:45
spiritualfields6-Oct-03 4:45 
Assuming that you know ahead of time which classes need access to each other, you can hardwire it in. Write a function in each class to receive a pointer to the other class (the one it has to communicate with), and in that other class write a function that will send a pointer to itself to the first class. Do this as often as you need to, depending on the number of the classes that need to interact and the required directions of the interaction (i.e, one-way or two-way).

Ed
QuestionShowing page of pdf file? Pin
Brian van der Beek5-Oct-03 20:47
Brian van der Beek5-Oct-03 20:47 
AnswerRe: Showing page of pdf file? Pin
J. Dunlap5-Oct-03 20:49
J. Dunlap5-Oct-03 20:49 
GeneralRe: Showing page of pdf file? Pin
Brian van der Beek5-Oct-03 21:17
Brian van der Beek5-Oct-03 21:17 
GeneralRe: Showing page of pdf file? Pin
J. Dunlap5-Oct-03 21:24
J. Dunlap5-Oct-03 21:24 
AnswerRe: Showing page of pdf file? Pin
Bernhard6-Oct-03 4:29
Bernhard6-Oct-03 4:29 
GeneralRe: Showing page of pdf file? Pin
Brian van der Beek6-Oct-03 4:37
Brian van der Beek6-Oct-03 4:37 
GeneralRe: Showing page of pdf file? Pin
Bernhard6-Oct-03 4:42
Bernhard6-Oct-03 4:42 
GeneralAccessing a file's properties from a VC++ application Pin
jopett5-Oct-03 20:43
jopett5-Oct-03 20:43 
GeneralRe: Accessing a file's properties from a VC++ application Pin
David Crow6-Oct-03 3:13
David Crow6-Oct-03 3:13 
GeneralAbstract Factory in C++ Pin
Saurabh_Delhi5-Oct-03 19:46
Saurabh_Delhi5-Oct-03 19:46 
GeneralProgrammers needed Pin
LOSTTWARE.com5-Oct-03 18:29
LOSTTWARE.com5-Oct-03 18:29 
GeneralRe: Programmers needed Pin
KaЯl6-Oct-03 3:13
KaЯl6-Oct-03 3:13 
GeneralC++ Question. Pin
WREY5-Oct-03 17:44
WREY5-Oct-03 17:44 
GeneralRe: C++ Question. Pin
Anonymous5-Oct-03 20:47
Anonymous5-Oct-03 20:47 
GeneralRe: C++ Question. Pin
WREY5-Oct-03 21:19
WREY5-Oct-03 21:19 
GeneralRe: C++ Question. Pin
Johnny ²6-Oct-03 1:05
Johnny ²6-Oct-03 1:05 
GeneralRe: C++ Question. Pin
WREY6-Oct-03 20:35
WREY6-Oct-03 20:35 

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.