Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loading a bitmap Pin
Anonymous9-Apr-04 11:01
Anonymous9-Apr-04 11:01 
GeneralRe: loading a bitmap Pin
gUrM33T9-Apr-04 15:34
gUrM33T9-Apr-04 15:34 
GeneralRe: loading a bitmap Pin
schumi19809-Apr-04 15:42
schumi19809-Apr-04 15:42 
Generalin menu resource ,what's the difference between "IDR_***TYPE"and "IDR_MAINFRAME" Pin
vividtang8-Apr-04 20:44
vividtang8-Apr-04 20:44 
GeneralRe: in menu resource ,what's the difference between "IDR_***TYPE"and "IDR_MAINFRAME" Pin
vividtang9-Apr-04 16:14
vividtang9-Apr-04 16:14 
GeneralTimer Pin
Anonymous8-Apr-04 20:42
Anonymous8-Apr-04 20:42 
GeneralRe: Timer Pin
toxcct8-Apr-04 21:53
toxcct8-Apr-04 21:53 
GeneralRe: Timer Pin
vcplusplus9-Apr-04 5:52
vcplusplus9-Apr-04 5:52 
OnTimer() is limited to 55 milliseconds regardless of the time-out value you set, so this will not work.

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnargame/html/msdn_dos2win.asp


The Multimedia Timer. The multimedia extensions to Windows include a high-resolution timer, invoked with timeSetEvent, that has a resolution of 1 millisecond. Besides having this higher resolution, the timer can produce more accurate results because it does not rely on WM_TIMER messages sent through the queue.

In fact, each multimedia timer is put in its own thread, and the callback function is invoked directly regardless of any pending messages or other things that may be going on. That's an important point, because it means you have to be careful about accessing global data—a variable could be changed by your timed procedure, for example, just as some other function called in the normal message-processing loop is using that data. If you do set up a multimedia timer, make sure you understand about synchronization, semaphores, and all the other apparatus of multithread programming. (Schildt [see bibliography] gives a good overview.)

To use timeSetEvent you must include MMSYSTEM.H and link in WINMM.LIB.
GeneralRe: Timer Pin
GflPower8-Apr-04 22:09
GflPower8-Apr-04 22:09 
GeneralRe: Timer Pin
Renjith Ramachandran8-Apr-04 22:26
Renjith Ramachandran8-Apr-04 22:26 
GeneralRe: Timer Pin
David Crow9-Apr-04 5:14
David Crow9-Apr-04 5:14 
GeneraleMbedded VC Pin
gUrM33T8-Apr-04 19:59
gUrM33T8-Apr-04 19:59 
GeneralRe: eMbedded VC Pin
gUrM33T8-Apr-04 20:41
gUrM33T8-Apr-04 20:41 
GeneralRe: eMbedded VC Pin
Cedric Moonen8-Apr-04 23:49
Cedric Moonen8-Apr-04 23:49 
GeneralRe: eMbedded VC Pin
ruzel20-Apr-04 20:43
ruzel20-Apr-04 20:43 
GeneralRe: eMbedded VC Pin
Mike Dimmick9-Apr-04 0:18
Mike Dimmick9-Apr-04 0:18 
GeneralRe: eMbedded VC Pin
gUrM33T9-Apr-04 1:30
gUrM33T9-Apr-04 1:30 
Questionwhere to find useful material and information of splitter window and many views? Pin
vividtang8-Apr-04 19:59
vividtang8-Apr-04 19:59 
QuestionHow to make a Setup Program Pin
Anonymous8-Apr-04 19:41
Anonymous8-Apr-04 19:41 
AnswerRe: How to make a Setup Program Pin
jjjonny8-Apr-04 20:30
sussjjjonny8-Apr-04 20:30 
AnswerRe: How to make a Setup Program Pin
Renjith Ramachandran8-Apr-04 22:28
Renjith Ramachandran8-Apr-04 22:28 
AnswerRe: How to make a Setup Program Pin
Ravi Bhavnani9-Apr-04 7:06
professionalRavi Bhavnani9-Apr-04 7:06 
AnswerRe: How to make a Setup Program Pin
gUrM33T10-Apr-04 16:05
gUrM33T10-Apr-04 16:05 
GeneralCrystal Report Pin
Anonymous8-Apr-04 19:35
Anonymous8-Apr-04 19:35 
GeneralRe: Crystal Report Pin
gUrM33T8-Apr-04 20:18
gUrM33T8-Apr-04 20: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.