Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan do that??? Pin
don7cry10-Feb-04 21:04
don7cry10-Feb-04 21:04 
AnswerRe: Can do that??? Pin
Antti Keskinen10-Feb-04 22:02
Antti Keskinen10-Feb-04 22:02 
GeneralInsert ActiveX wizard trouble Pin
El'Cachubrey10-Feb-04 20:58
El'Cachubrey10-Feb-04 20:58 
GeneralAutomating Outlook Pin
ctbmei10-Feb-04 20:13
ctbmei10-Feb-04 20:13 
GeneralRe: Automating Outlook Pin
jmkhael11-Feb-04 0:37
jmkhael11-Feb-04 0:37 
GeneralDynamic display of MSChart Pin
vidyaby10-Feb-04 19:55
vidyaby10-Feb-04 19:55 
GeneralMemory usage for SetWindowText Pin
Coremn10-Feb-04 19:38
Coremn10-Feb-04 19:38 
GeneralArray of Objects of a class Pin
Member 38437310-Feb-04 18:16
Member 38437310-Feb-04 18:16 
Hi All,

Suppose I have class ABC which has two constructor as follows:

class ABC
{
ABC(); //DEFAULT CONSTRUCTOR
ABC(int xx); //Overrided CONSTRUCTOR
}

Now I want to make a Array of objects of the above class but I donot want to call the default constructor rather I want to call the OVERRIDED CONSTRUCTOR such that for each element of the array i pass a different integer value.
If I do the following:
ABC * arrABC;
arrABC = new ABC[10]; //then default constructor is called 10 times --how
// can I call Overrided CONSTRUCTOR passing either different integer
//values for each elememnt or by passing the same VALUE for each element
//of the array.

Any help with this regards will be appreciated.

TIA.

Sincerely,
Amol
GeneralRe: Array of Objects of a class Pin
Maxwell Chen10-Feb-04 19:39
Maxwell Chen10-Feb-04 19:39 
GeneralRe: Array of Objects of a class Pin
Member 38437310-Feb-04 21:54
Member 38437310-Feb-04 21:54 
GeneralRe: Array of Objects of a class Pin
Antti Keskinen10-Feb-04 23:37
Antti Keskinen10-Feb-04 23:37 
GeneralRe: Array of Objects of a class Pin
Member 38437311-Feb-04 20:10
Member 38437311-Feb-04 20:10 
GeneralObject ID's dont appear in Class Wizard Pin
SJS_OZ10-Feb-04 18:09
SJS_OZ10-Feb-04 18:09 
Generalweb browser customization Pin
Abhi Lahare10-Feb-04 18:05
Abhi Lahare10-Feb-04 18:05 
GeneralRunning VBscript Pin
pranavamhari10-Feb-04 17:21
pranavamhari10-Feb-04 17:21 
GeneralRe: Running VBscript Pin
Ryan Binns10-Feb-04 17:56
Ryan Binns10-Feb-04 17:56 
GeneralVERSIONINFO in program Pin
shultas10-Feb-04 16:09
shultas10-Feb-04 16:09 
GeneralRe: VERSIONINFO in program Pin
pranavamhari10-Feb-04 17:26
pranavamhari10-Feb-04 17:26 
Generalmax controls on a dialog using vc++ Pin
burnafatty10-Feb-04 14:17
burnafatty10-Feb-04 14:17 
GeneralRe: max controls on a dialog using vc++ Pin
John R. Shaw10-Feb-04 14:48
John R. Shaw10-Feb-04 14:48 
GeneralRe: max controls on a dialog using vc++ Pin
Christian Graus10-Feb-04 15:49
protectorChristian Graus10-Feb-04 15:49 
GeneralRe: max controls on a dialog using vc++ Pin
Tim Smith10-Feb-04 18:18
Tim Smith10-Feb-04 18:18 
GeneralRe: max controls on a dialog using vc++ Pin
burnafatty11-Feb-04 7:35
burnafatty11-Feb-04 7:35 
GeneralRe: max controls on a dialog using vc++ Pin
Christian Graus11-Feb-04 9:46
protectorChristian Graus11-Feb-04 9:46 
GeneralRe: max controls on a dialog using vc++ Pin
Ryan Binns10-Feb-04 17:59
Ryan Binns10-Feb-04 17:59 

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.