|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