Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to draw a rounded bitmap? Pin
Paul M Watt5-Dec-02 5:45
mentorPaul M Watt5-Dec-02 5:45 
QuestionHow to translate this (masm32 in VC++) ? Pin
chen4-Dec-02 19:34
chen4-Dec-02 19:34 
GeneralReturn string from vc dll Pin
suresh_sathya4-Dec-02 19:06
suresh_sathya4-Dec-02 19:06 
GeneralRe: Return string from vc dll Pin
Rickard Andersson204-Dec-02 21:05
Rickard Andersson204-Dec-02 21:05 
GeneralRe: Return string from vc dll Pin
suresh_sathya4-Dec-02 21:44
suresh_sathya4-Dec-02 21:44 
GeneralRe: Return string from vc dll Pin
Johann Gerell4-Dec-02 22:47
Johann Gerell4-Dec-02 22:47 
QuestionHow can run my VC program in a computer without VC installed? Pin
Sstar4-Dec-02 18:59
Sstar4-Dec-02 18:59 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Christian Graus4-Dec-02 19:10
protectorChristian Graus4-Dec-02 19:10 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Michael Dunn4-Dec-02 19:12
sitebuilderMichael Dunn4-Dec-02 19:12 
AnswerRe: How can run my VC program in a computer without VC installed? Pin
Dov Sherman5-Dec-02 2:12
Dov Sherman5-Dec-02 2:12 
QuestionCan we search SQL (VC++) combine with Boolean? Pin
Anonymous4-Dec-02 18:27
Anonymous4-Dec-02 18:27 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
Nick Parker4-Dec-02 18:35
protectorNick Parker4-Dec-02 18:35 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:41
Anonymous5-Dec-02 3:41 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
RedZenBird4-Dec-02 18:41
RedZenBird4-Dec-02 18:41 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:41
Anonymous5-Dec-02 3:41 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
RedZenBird4-Dec-02 19:01
RedZenBird4-Dec-02 19:01 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:36
Anonymous5-Dec-02 3:36 
GeneralRe: It works, thanks! Pin
Anonymous5-Dec-02 3:37
Anonymous5-Dec-02 3:37 
AnswerRe: Can we search SQL (VC++) combine with Boolean? Pin
RChin4-Dec-02 23:52
RChin4-Dec-02 23:52 
GeneralRe: Can we search SQL (VC++) combine with Boolean? Pin
Anonymous5-Dec-02 3:42
Anonymous5-Dec-02 3:42 
GeneralAn easy one for you pro's... Pin
Brent Lamborn4-Dec-02 17:58
Brent Lamborn4-Dec-02 17:58 
GeneralRe: An easy one for you pro's... Pin
Christian Graus4-Dec-02 18:15
protectorChristian Graus4-Dec-02 18:15 
GeneralRe: An easy one for you pro's... Pin
Nick Parker4-Dec-02 18:21
protectorNick Parker4-Dec-02 18:21 
GeneralRe: An easy one for you pro's... Pin
Christian Graus4-Dec-02 19:08
protectorChristian Graus4-Dec-02 19:08 
Um...


Nick Parker wrote:
int i;

Why create this first, and why create it without initialising it ?

Nick Parker wrote:
Organism aOrgArray[iColSize];

Won't work, unless you mean the col size to be a constant that replaces this variable, which does not really exist

Nick Parker wrote:
for(i = 0; i < iColSize - 1; i++)

Even if the rest would work, this would leave the last item uninitialised.

Nick Parker wrote:
aOrgArray[i] = Organism(iNumChroms);

Won't work, the item already exists, except it doesn't, because no default constructor is available.

All of this would be possible if you created them on the heap, an array of Organism pointers, and aOrgArray[i] = new Organism(iNumChroms);.


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: An easy one for you pro's... Pin
benjymous5-Dec-02 0:59
benjymous5-Dec-02 0: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.