Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to drag a bitmap?? Pin
Mark Salsbery2-Apr-07 13:24
Mark Salsbery2-Apr-07 13:24 
GeneralRe: How to drag a bitmap?? Pin
hcygxr20084-Apr-07 19:15
hcygxr20084-Apr-07 19:15 
QuestionIn Line If Statement Pin
ScotDolan2-Apr-07 12:17
ScotDolan2-Apr-07 12:17 
AnswerRe: In Line If Statement Pin
PJ Arends2-Apr-07 13:24
professionalPJ Arends2-Apr-07 13:24 
QuestionDynamically linked dll, default parameter possible? Pin
CodeHead2-Apr-07 8:00
CodeHead2-Apr-07 8:00 
AnswerRe: Dynamically linked dll, default parameter possible? Pin
AWSC2-Apr-07 15:38
AWSC2-Apr-07 15:38 
GeneralRe: Dynamically linked dll, default parameter possible? Pin
CodeHead4-Apr-07 2:40
CodeHead4-Apr-07 2:40 
Questionhow to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 6:45
MohammadAmiry2-Apr-07 6:45 
Hi I have a class named CClipSaver and I want to create an array of this class. I do this as follows:

<code>CClipSaver* Clips[10];
.
int i=0;
Clips[i]=new CClipSaver;
Clips[i]->Save();
.
</code>



But it crashes!
Note:
When I do not use array (i.e.
CClipSaver * Clip;<br />
Clip=new ClipSaver();<br />
Clip->Save();

) everything works fine.

How should I declare and use the array?
AnswerRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:04
Mark Salsbery2-Apr-07 7:04 
GeneralRe: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 7:18
MohammadAmiry2-Apr-07 7:18 
AnswerRe: how to use an Array of a class? (modified) Pin
David Crow2-Apr-07 7:16
David Crow2-Apr-07 7:16 
GeneralRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:26
Mark Salsbery2-Apr-07 7:26 
GeneralRe: how to use an Array of a class? (modified) Pin
David Crow2-Apr-07 7:44
David Crow2-Apr-07 7:44 
GeneralRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:48
Mark Salsbery2-Apr-07 7:48 
GeneralRe: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 7:26
MohammadAmiry2-Apr-07 7:26 
GeneralRe: how to use an Array of a class? (modified) Pin
Mark Salsbery2-Apr-07 7:31
Mark Salsbery2-Apr-07 7:31 
AnswerRe: how to use an Array of a class? (modified) Pin
Cedric Moonen2-Apr-07 7:41
Cedric Moonen2-Apr-07 7:41 
GeneralRe: how to use an Array of a class? (modified) Pin
led mike2-Apr-07 8:00
led mike2-Apr-07 8:00 
NewsRe: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 7:54
MohammadAmiry2-Apr-07 7:54 
AnswerSOLVED: how to use an Array of a class? (modified) Pin
MohammadAmiry2-Apr-07 8:11
MohammadAmiry2-Apr-07 8:11 
Questionerror C2440 help please Pin
bward842-Apr-07 6:40
bward842-Apr-07 6:40 
AnswerRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 7:08
Mark Salsbery2-Apr-07 7:08 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 7:38
bward842-Apr-07 7:38 
GeneralRe: error C2440 help please Pin
Mark Salsbery2-Apr-07 7:44
Mark Salsbery2-Apr-07 7:44 
GeneralRe: error C2440 help please Pin
bward842-Apr-07 7:49
bward842-Apr-07 7:49 

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.