Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Manipulation Problem Pin
Bill Wilson3-Jun-02 6:33
Bill Wilson3-Jun-02 6:33 
GeneralRe: String Manipulation Problem Pin
Alexandru Savescu3-Jun-02 9:15
Alexandru Savescu3-Jun-02 9:15 
GeneralRe: String Manipulation Problem Pin
Michael Dunn3-Jun-02 18:39
sitebuilderMichael Dunn3-Jun-02 18:39 
QuestionLoad from resource instead from a file? Pin
3-Jun-02 5:25
suss3-Jun-02 5:25 
AnswerRe: Load from resource instead from a file? Pin
Chris Losinger3-Jun-02 5:24
professionalChris Losinger3-Jun-02 5:24 
GeneralRe: Thx Pin
3-Jun-02 5:45
suss3-Jun-02 5:45 
QuestionHow do i use the IShellFolder->ParseDisplayName correctly? Pin
redeemer3-Jun-02 5:26
redeemer3-Jun-02 5:26 
GeneralPrime numbers... Pin
Matt Gullett3-Jun-02 5:05
Matt Gullett3-Jun-02 5:05 
I know many of you probably already have a function that does this, so I'll ask before I do a lot of searching.

I need a simple C function for generating the next prime number given an input number. The prototype for this would be something like:

int GetNextPrime(const int iAfter);

If iAfter is 90, then GetNextPrime would return 101.

I need this to optimize some code I am working on which must initialize the size of an MFC CMap hash table.
GeneralRe: Prime numbers... Pin
Rama Krishna Vavilala3-Jun-02 5:14
Rama Krishna Vavilala3-Jun-02 5:14 
GeneralRe: Prime numbers... Pin
Matt Gullett3-Jun-02 5:17
Matt Gullett3-Jun-02 5:17 
GeneralRe: Prime numbers... Pin
Rama Krishna Vavilala3-Jun-02 5:23
Rama Krishna Vavilala3-Jun-02 5:23 
GeneralRe: Prime numbers... Pin
Matt Gullett3-Jun-02 5:36
Matt Gullett3-Jun-02 5:36 
GeneralRe: Prime numbers... Pin
Tomasz Sowinski3-Jun-02 6:15
Tomasz Sowinski3-Jun-02 6:15 
GeneralRe: Prime numbers... Pin
Matt Gullett3-Jun-02 6:13
Matt Gullett3-Jun-02 6:13 
GeneralRe: Prime numbers... Pin
Tomasz Sowinski3-Jun-02 6:24
Tomasz Sowinski3-Jun-02 6:24 
GeneralRe: Prime numbers... Pin
Mike Nordell5-Jun-02 0:58
Mike Nordell5-Jun-02 0:58 
GeneralRe: Prime numbers... Pin
Ravi Bhavnani3-Jun-02 5:36
professionalRavi Bhavnani3-Jun-02 5:36 
GeneralRe: Prime numbers... Pin
Mike Nordell3-Jun-02 22:41
Mike Nordell3-Jun-02 22:41 
GeneralRe: Prime numbers... Pin
Matt Gullett4-Jun-02 0:41
Matt Gullett4-Jun-02 0:41 
GeneralRichEdit Control and strange debug errors Pin
dazinith3-Jun-02 4:38
dazinith3-Jun-02 4:38 
GeneralRe: RichEdit Control and strange debug errors Pin
Tomasz Sowinski3-Jun-02 4:39
Tomasz Sowinski3-Jun-02 4:39 
GeneralRe: RichEdit Control and strange debug errors Pin
dazinith3-Jun-02 8:10
dazinith3-Jun-02 8:10 
GeneralRe: RichEdit Control and strange debug errors Pin
Tomasz Sowinski3-Jun-02 10:43
Tomasz Sowinski3-Jun-02 10:43 
Generalfind default dns server Pin
srana13-Jun-02 4:26
professionalsrana13-Jun-02 4:26 
GeneralRe: find default dns server Pin
Albert Pascual3-Jun-02 6:11
sitebuilderAlbert Pascual3-Jun-02 6:11 

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.