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

C / C++ / MFC

 
AnswerRe: Saving A window Pin
FarPointer14-Jul-06 22:55
FarPointer14-Jul-06 22:55 
QuestionHow to hide my dialog without any flash as soon as my application start? Pin
NianHawk14-Jul-06 18:38
NianHawk14-Jul-06 18:38 
AnswerRe: How to hide my dialog without any flash as soon as my application start? Pin
FarPointer14-Jul-06 23:07
FarPointer14-Jul-06 23:07 
QuestionPrinting fill patterns Pin
lizamathew14-Jul-06 18:01
lizamathew14-Jul-06 18:01 
QuestionHow to write the printer installation code? Pin
hsinheng14-Jul-06 17:54
hsinheng14-Jul-06 17:54 
Questioni need help Pin
syed imran azmat14-Jul-06 11:09
syed imran azmat14-Jul-06 11:09 
GeneralRe: i need help... Pin
Marc Clifton14-Jul-06 11:11
mvaMarc Clifton14-Jul-06 11:11 
GeneralI have always wondered Pin
Ennis Ray Lynch, Jr.14-Jul-06 11:14
Ennis Ray Lynch, Jr.14-Jul-06 11:14 
Questionhow to integrate a console C++ program to MFC program Pin
mrby12314-Jul-06 9:57
mrby12314-Jul-06 9:57 
AnswerRe: how to integrate a console C++ program to MFC program Pin
Jun Du14-Jul-06 10:15
Jun Du14-Jul-06 10:15 
GeneralRe: how to integrate a console C++ program to MFC program Pin
eusto14-Jul-06 10:27
eusto14-Jul-06 10:27 
QuestionCProgressCtrl cannot be passed as a parameter Pin
jon-8014-Jul-06 9:49
professionaljon-8014-Jul-06 9:49 
AnswerRe: CProgressCtrl cannot be passed as a parameter Pin
PJ Arends14-Jul-06 10:18
professionalPJ Arends14-Jul-06 10:18 
AnswerRe: CProgressCtrl cannot be passed as a parameter Pin
eusto14-Jul-06 10:19
eusto14-Jul-06 10:19 
GeneralRe: CProgressCtrl cannot be passed as a parameter Pin
PJ Arends14-Jul-06 10:26
professionalPJ Arends14-Jul-06 10:26 
GeneralRe: CProgressCtrl cannot be passed as a parameter Pin
eusto14-Jul-06 10:33
eusto14-Jul-06 10:33 
AnswerRe: CProgressCtrl cannot be passed as a parameter Pin
Hamid_RT14-Jul-06 19:07
Hamid_RT14-Jul-06 19:07 
QuestionGet button color from theme Pin
cje14-Jul-06 8:28
cje14-Jul-06 8:28 
AnswerRe: Get button color from theme Pin
Joe Woodbury14-Jul-06 9:26
professionalJoe Woodbury14-Jul-06 9:26 
Questiondynamic arrays in classes - are they correct? Pin
jon-8014-Jul-06 8:13
professionaljon-8014-Jul-06 8:13 
AnswerRe: dynamic arrays in classes - are they correct? Pin
cje14-Jul-06 9:05
cje14-Jul-06 9:05 
AnswerRe: dynamic arrays in classes - are they correct? Pin
Zac Howland14-Jul-06 9:29
Zac Howland14-Jul-06 9:29 
To address your problem, check to make sure your header file doesn't have it declared as:

bool CPrimeGen::isPrime(int* iNumber).

Everything else looks okay from a warning/error point of view.


Some things you might want to consider:
Instead of storying true/false for each integer index, you might want to use a vector<long> or a CDWordArray to just story values that are prime numbers. Allowing a class that already handles memory allocation to store your array is less likely to introduce memory leaks and logic errors in your code (and makes it far less lines of code). Storing just the prime integers allows you to decrease your memory footprint when searching for prime numbers in a large range.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
AnswerRe: dynamic arrays in classes - are they correct? Pin
Hamid_RT15-Jul-06 5:03
Hamid_RT15-Jul-06 5:03 
QuestionVS2005 Team Pin
Alex_Y14-Jul-06 8:12
Alex_Y14-Jul-06 8:12 
AnswerRe: VS2005 Team Pin
Jun Du14-Jul-06 8:22
Jun Du14-Jul-06 8:22 

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.