Click here to Skip to main content
15,924,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help on Error LNK2001 Pin
DengJW13-Feb-02 23:03
DengJW13-Feb-02 23:03 
Generaloperators Pin
Rickard Andersson2013-Feb-02 21:23
Rickard Andersson2013-Feb-02 21:23 
GeneralRe: operators Pin
Joaquín M López Muñoz13-Feb-02 21:31
Joaquín M López Muñoz13-Feb-02 21:31 
GeneralRe: operators Pin
Paul M Watt13-Feb-02 22:07
mentorPaul M Watt13-Feb-02 22:07 
GeneralSocket Programming in MS. DOS Pin
Agus Kurniawan13-Feb-02 21:14
Agus Kurniawan13-Feb-02 21:14 
GeneralRe: Socket Programming in MS. DOS Pin
Joaquín M López Muñoz13-Feb-02 21:43
Joaquín M López Muñoz13-Feb-02 21:43 
Generaltimer....!!!! Pin
13-Feb-02 21:07
suss13-Feb-02 21:07 
GeneralRe: timer....!!!! Pin
Joaquín M López Muñoz13-Feb-02 21:25
Joaquín M López Muñoz13-Feb-02 21:25 
First of all, please next time tick on the "Display this message as-is (no HTML)" checkbox just below the edit area to make your code appear OK (otherwise <code'&lt;'< code=""> characters mess with the HTML rendering.)

I'm afraid you cannot use <code>SetTimer for console programs. SetTimer needs a message processing pump in your thread to function properly, even if you don't specify any hWnd.
Al alternative approach goes through launching a separate thread that Sleeps the required amount of time and then invokes the callback function. It is likely that someone have wrote some code for that already, so maybe you should do a search on the net before start coding.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: timer....!!!! Pin
Tim Smith14-Feb-02 2:17
Tim Smith14-Feb-02 2:17 
GeneralRe: timer....!!!! Pin
Joaquín M López Muñoz14-Feb-02 3:03
Joaquín M López Muñoz14-Feb-02 3:03 
GeneralRe: timer....!!!! Pin
Tim Smith14-Feb-02 7:41
Tim Smith14-Feb-02 7:41 
GeneralRe: timer....!!!! Pin
Joao Vaz13-Feb-02 23:14
Joao Vaz13-Feb-02 23:14 
GeneralRe: timer....!!!! Pin
Nemanja Trifunovic14-Feb-02 8:11
Nemanja Trifunovic14-Feb-02 8:11 
GeneralNumber of bitmaps in .bmp-file Pin
Onkie13-Feb-02 21:01
Onkie13-Feb-02 21:01 
GeneralRe: Number of bitmaps in .bmp-file Pin
Paul M Watt13-Feb-02 21:15
mentorPaul M Watt13-Feb-02 21:15 
GeneralSDK! Pin
George Clarence13-Feb-02 20:06
George Clarence13-Feb-02 20:06 
GeneralRe: SDK! Pin
Jon Sagara13-Feb-02 20:05
Jon Sagara13-Feb-02 20:05 
Generalcompiling in xp and dll errors on 2k Pin
gus13-Feb-02 19:40
gus13-Feb-02 19:40 
GeneralRe: compiling in xp and dll errors on 2k Pin
Joaquín M López Muñoz13-Feb-02 20:02
Joaquín M López Muñoz13-Feb-02 20:02 
GeneralRe: compiling in xp and dll errors on 2k Pin
Michael Dunn13-Feb-02 20:18
sitebuilderMichael Dunn13-Feb-02 20:18 
GeneralRe: compiling in xp and dll errors on 2k Pin
gus14-Feb-02 5:55
gus14-Feb-02 5:55 
GeneralRe: compiling in xp and dll errors on 2k Pin
gus14-Feb-02 8:16
gus14-Feb-02 8:16 
Generalexception Pin
marouane miftah el kheir13-Feb-02 18:33
marouane miftah el kheir13-Feb-02 18:33 
GeneralRe: exception Pin
Nish Nishant13-Feb-02 19:41
sitebuilderNish Nishant13-Feb-02 19:41 
GeneralRe: exception Pin
Jon Hulatt13-Feb-02 23:25
Jon Hulatt13-Feb-02 23:25 

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.