Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Newbie question:how to copy a file to a newly createed file? Pin
Christian Graus17-Jul-02 19:41
protectorChristian Graus17-Jul-02 19:41 
GeneralRe: Newbie question:how to copy a file to a newly createed file? Pin
Wil17-Jul-02 22:16
Wil17-Jul-02 22:16 
GeneralRe: Newbie question:how to copy a file to a newly createed file? Pin
Christian Graus17-Jul-02 22:26
protectorChristian Graus17-Jul-02 22:26 
GeneralRe: Newbie question:how to copy a file to a newly createed file? Pin
Wil18-Jul-02 3:27
Wil18-Jul-02 3:27 
GeneralRe: Newbie question:how to copy a file to a newly createed file? Pin
Christian Graus18-Jul-02 17:17
protectorChristian Graus18-Jul-02 17:17 
GeneralBoost and VC++6sp5 Pin
Dan Watt17-Jul-02 18:41
Dan Watt17-Jul-02 18:41 
GeneralEnumProcesss Pin
gekoscan17-Jul-02 17:38
gekoscan17-Jul-02 17:38 
GeneralRe: EnumProcesss Pin
Scot Brennecke17-Jul-02 18:55
professionalScot Brennecke17-Jul-02 18:55 
The problem is that the process set is very volatile. Processes get started and stopped very regularly, without user intervention. Even if you could determine immediately prior to calling EnumProcesses how many there were, there's no reason to believe the count will be the same by the time EnumProcesses executes. So, just make a wild-ass overestimate of the count, and hope for the best. I'm sure that with statistical analysis, you could determine a value that has a 99.99% probability of being sufficient. But memory is cheap, right? Make your best guess at how many there will be -- and double that. Even if you allow for 1000 processes, that's just 4000 bytes.


Scot Brennecke
Software Developer
VC++ MVP
GeneralStrange problem Pin
Anonymous17-Jul-02 17:31
Anonymous17-Jul-02 17:31 
GeneralRe: Strange problem Pin
Christian Graus17-Jul-02 18:11
protectorChristian Graus17-Jul-02 18:11 
Generalwinsock or CSocket Pin
zecodela17-Jul-02 17:22
zecodela17-Jul-02 17:22 
GeneralRe: winsock or CSocket Pin
Greven17-Jul-02 17:57
Greven17-Jul-02 17:57 
GeneralRe: winsock or CSocket Pin
Masaaki Onishi18-Jul-02 6:14
Masaaki Onishi18-Jul-02 6:14 
GeneralRe: winsock or CSocket Pin
zecodela20-Jul-02 2:55
zecodela20-Jul-02 2:55 
GeneralNull'ing structures Pin
Marc Richarme17-Jul-02 17:18
Marc Richarme17-Jul-02 17:18 
GeneralRe: Null'ing structures Pin
gekoscan17-Jul-02 17:43
gekoscan17-Jul-02 17:43 
GeneralRe: Null'ing structures Pin
Scot Brennecke17-Jul-02 19:04
professionalScot Brennecke17-Jul-02 19:04 
GeneralRe: Null'ing structures Pin
Marc Richarme17-Jul-02 20:12
Marc Richarme17-Jul-02 20:12 
GeneralRe: Null'ing structures Pin
Scot Brennecke17-Jul-02 20:34
professionalScot Brennecke17-Jul-02 20:34 
GeneralRe: Null'ing structures Pin
Marc Richarme20-Jul-02 6:17
Marc Richarme20-Jul-02 6:17 
QuestionWhy does windows database programming have to be so hard? Pin
Anonymous17-Jul-02 13:14
Anonymous17-Jul-02 13:14 
AnswerRe: Why does windows database programming have to be so hard? Pin
Matt Gullett17-Jul-02 13:53
Matt Gullett17-Jul-02 13:53 
GeneralWinsock Pin
Ken Mazaika17-Jul-02 13:08
Ken Mazaika17-Jul-02 13:08 
GeneralRe: Winsock Pin
Nish Nishant17-Jul-02 15:24
sitebuilderNish Nishant17-Jul-02 15:24 
GeneralRe: Winsock Pin
Masaaki Onishi18-Jul-02 6:18
Masaaki Onishi18-Jul-02 6:18 

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.