Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalplease excel automation with mfc Pin
lee kyu sub21-Apr-05 17:19
lee kyu sub21-Apr-05 17:19 
QuestionHow to get CPU usage of a particular process/application Pin
Nam Deok Cho21-Apr-05 16:40
Nam Deok Cho21-Apr-05 16:40 
General4peg tower of hanoi Pin
Anonymous21-Apr-05 13:56
Anonymous21-Apr-05 13:56 
GeneralRe: 4peg tower of hanoi Pin
Christian Graus21-Apr-05 14:24
protectorChristian Graus21-Apr-05 14:24 
GeneralRe: 4peg tower of hanoi Pin
Ravi Bhavnani21-Apr-05 17:57
professionalRavi Bhavnani21-Apr-05 17:57 
GeneralRe: 4peg tower of hanoi Pin
Anonymous23-Apr-05 9:10
Anonymous23-Apr-05 9:10 
GeneralStatic Linking DAO or ADO Pin
HaraldS21-Apr-05 11:15
HaraldS21-Apr-05 11:15 
GeneralA virtual function question Pin
bcemick21-Apr-05 10:36
bcemick21-Apr-05 10:36 
I've looked around trying to find this information, but there's nothing I can find that fits my situation.

I have two separate classes: Print and PropertySheet that are part of a larger program. I didn't write the code for either one and making any radical changes is out.

All I need to do is add a function to the PropertySheet class that will access the Print class and print out certain information obtained from PropertySheet.

Here's the problem: All of the print functions in Print (such as starting a new document, starting a new page, etc) are virtual functions and I can't access them from the PropertySheet class. I've never cared for vf's and haven't worked with them or used them before, so I'm lost on how to do this.

Here's the question: How can I access those virtual functions in Print from PropertySheet without re-writing the program (I just want to add the code to print in the PropertySheet class)?

I apologize if this has been addressed before, but, as I said, I couldn't find anything for this situation.

I appreciate any help and say thank you in advance anyone that responds.
GeneralRe: A virtual function question Pin
Christian Graus21-Apr-05 13:48
protectorChristian Graus21-Apr-05 13:48 
GeneralRe: A virtual function question Pin
bcemick22-Apr-05 0:20
bcemick22-Apr-05 0:20 
GeneralRe: A virtual function question Pin
Stlan22-Apr-05 3:54
Stlan22-Apr-05 3:54 
GeneralRe: A virtual function question Pin
bcemick22-Apr-05 4:03
bcemick22-Apr-05 4:03 
GeneralRe: A virtual function question Pin
liquid_22-Apr-05 7:24
liquid_22-Apr-05 7:24 
GeneralRe: A virtual function question Pin
heman15422-Apr-05 9:24
heman15422-Apr-05 9:24 
GeneralRe: A virtual function question Pin
Christian in a nice hotel in Singapore24-Apr-05 0:21
sussChristian in a nice hotel in Singapore24-Apr-05 0:21 
GeneralApi that shows the status of NIC Pin
brilliant10121-Apr-05 10:19
brilliant10121-Apr-05 10:19 
GeneralRe: Api that shows the status of NIC Pin
David Crow21-Apr-05 17:04
David Crow21-Apr-05 17:04 
GeneralList of applications runned by a user Pin
brilliant10121-Apr-05 10:15
brilliant10121-Apr-05 10:15 
GeneralShellNotifyRegister HELP.. Pin
RoyRose7821-Apr-05 9:27
RoyRose7821-Apr-05 9:27 
GeneralRe: ShellNotifyRegister HELP.. Pin
Michael Dunn21-Apr-05 12:01
sitebuilderMichael Dunn21-Apr-05 12:01 
GeneralRe: ShellNotifyRegister HELP.. Pin
David Crow21-Apr-05 17:12
David Crow21-Apr-05 17:12 
Generalcrossed includes Pin
crystalButterfly21-Apr-05 9:19
crystalButterfly21-Apr-05 9:19 
GeneralRe: crossed includes Pin
John M. Drescher21-Apr-05 9:42
John M. Drescher21-Apr-05 9:42 
GeneralRe: crossed includes Pin
liquid_21-Apr-05 9:47
liquid_21-Apr-05 9:47 
GeneralRe: crossed includes Pin
Ravi Bhavnani21-Apr-05 18:00
professionalRavi Bhavnani21-Apr-05 18: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.