Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: va_copy? Pin
David Crow2-Oct-07 8:20
David Crow2-Oct-07 8:20 
GeneralRe: va_copy? Pin
DQNOK2-Oct-07 8:57
professionalDQNOK2-Oct-07 8:57 
QuestionHaving a the processID how to get the application instance (HINSTANCE) ? Pin
carabutnicolae12342-Oct-07 7:22
carabutnicolae12342-Oct-07 7:22 
AnswerRe: Having a the processID how to get the application instance (HINSTANCE) ? Pin
Maxwell Chen3-Oct-07 0:11
Maxwell Chen3-Oct-07 0:11 
QuestionCustom ComboBox Control - Need Advice [modified] Pin
Leslie Sanford2-Oct-07 6:45
Leslie Sanford2-Oct-07 6:45 
QuestionRe: Custom ComboBox Control - Need Advice Pin
Mark Salsbery2-Oct-07 8:21
Mark Salsbery2-Oct-07 8:21 
AnswerRe: Custom ComboBox Control - Need Advice [modified] Pin
Leslie Sanford2-Oct-07 8:25
Leslie Sanford2-Oct-07 8:25 
QuestionUsing Abstract classes Pin
Apstolo2-Oct-07 3:40
Apstolo2-Oct-07 3:40 
Hi, im a newbe in C++,i only worked whit the old C. Im trying to learn Object Oriented technics.

And now i got stuck in a problem. My prupose is to create a software whit a lot of mathematical functions, so i will explain my problem whit a diferent example but simplest:

supose that i have an abstract class named Form and this class has an pure virtual method named area, cause the area depends of the type of the form. So i'm going to create many derivated classes, for example the triangle, square, and circle; So far so good;
but now;
I want to have an other class to manipulate graphics; so in this class will have an container for forms
for example:
std::vector<form*> Forms; because we can't instanciate the abstrac classes we have to work whit references,wrigth?
how can i add a method to the graphics class to add an triangle whitou declaring an array of triangles and the pass the reference to the vector.
If this can't be done, what is the prupose of the abstract classes: confused:
AnswerRe: Using Abstract classes Pin
Cedric Moonen2-Oct-07 4:00
Cedric Moonen2-Oct-07 4:00 
GeneralRe: Using Abstract classes Pin
Apstolo2-Oct-07 4:31
Apstolo2-Oct-07 4:31 
GeneralRe: Using Abstract classes [modified] Pin
Cedric Moonen2-Oct-07 4:37
Cedric Moonen2-Oct-07 4:37 
GeneralRe: Using Abstract classes Pin
Apstolo2-Oct-07 5:47
Apstolo2-Oct-07 5:47 
QuestionDebug break on 64 bit Vista in VC6 hangs debugged app Pin
Paul Vickery2-Oct-07 3:01
professionalPaul Vickery2-Oct-07 3:01 
QuestionMFC property sheet, change tab event Pin
Caliban61001-Oct-07 23:41
Caliban61001-Oct-07 23:41 
AnswerRe: MFC property sheet, change tab event Pin
Nishad S2-Oct-07 0:47
Nishad S2-Oct-07 0:47 
QuestionBoost Test question urgent Pin
monsieur_jj1-Oct-07 22:25
monsieur_jj1-Oct-07 22:25 
QuestionWhat is theUse Of Abstract class Pin
tasumisra1-Oct-07 22:06
tasumisra1-Oct-07 22:06 
AnswerRe: What is theUse Of Abstract class Pin
Cedric Moonen1-Oct-07 22:38
Cedric Moonen1-Oct-07 22:38 
AnswerRe: What is theUse Of Abstract class Pin
Nemanja Trifunovic2-Oct-07 3:49
Nemanja Trifunovic2-Oct-07 3:49 
AnswerRe: What is theUse Of Abstract class Pin
Leslie Sanford2-Oct-07 6:35
Leslie Sanford2-Oct-07 6:35 
Questionthemes & controls Pin
mitok1-Oct-07 21:54
mitok1-Oct-07 21:54 
QuestionFunction Pointer error Pin
Mustafa Ismail Mustafa1-Oct-07 20:59
Mustafa Ismail Mustafa1-Oct-07 20:59 
AnswerRe: Function Pointer error Pin
Cedric Moonen1-Oct-07 21:09
Cedric Moonen1-Oct-07 21:09 
GeneralRe: Function Pointer error Pin
Mustafa Ismail Mustafa1-Oct-07 21:20
Mustafa Ismail Mustafa1-Oct-07 21:20 
GeneralRe: Function Pointer error Pin
Cedric Moonen1-Oct-07 21:26
Cedric Moonen1-Oct-07 21:26 

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.