Click here to Skip to main content
15,925,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat can you do if the .vt member of a variant is unknown? Pin
kleft10-Apr-03 5:39
kleft10-Apr-03 5:39 
AnswerRe: What can you do if the .vt member of a variant is unknown? Pin
Mike Dimmick10-Apr-03 5:55
Mike Dimmick10-Apr-03 5:55 
GeneralRe: What can you do if the .vt member of a variant is unknown? Pin
kleft16-Apr-03 6:18
kleft16-Apr-03 6:18 
Generaltrapping keyboard message Pin
will138310-Apr-03 5:21
will138310-Apr-03 5:21 
GeneralRe: trapping keyboard message Pin
puzzolino_10-Apr-03 5:45
susspuzzolino_10-Apr-03 5:45 
GeneralRe: trapping keyboard message Pin
imsniper11-Apr-03 0:19
imsniper11-Apr-03 0:19 
QuestionHow to determine if an .EXE is running? Pin
TWilliams10-Apr-03 5:11
TWilliams10-Apr-03 5:11 
AnswerRe: How to determine if an .EXE is running? Pin
MarkyMark10-Apr-03 5:21
MarkyMark10-Apr-03 5:21 
AnswerRe: How to determine if an .EXE is running? Pin
valikac10-Apr-03 7:46
valikac10-Apr-03 7:46 
GeneralRe: How to determine if an .EXE is running? Pin
TWilliams10-Apr-03 8:28
TWilliams10-Apr-03 8:28 
GeneralRe: How to determine if an .EXE is running? Pin
Joe Woodbury10-Apr-03 8:59
professionalJoe Woodbury10-Apr-03 8:59 
GeneralRe: How to determine if an .EXE is running? Pin
IceMatrix11-Apr-03 6:53
IceMatrix11-Apr-03 6:53 
GeneralSTL deque question Pin
pankajdaga10-Apr-03 5:04
pankajdaga10-Apr-03 5:04 
GeneralRe: STL deque question Pin
Erik Juhl10-Apr-03 5:15
Erik Juhl10-Apr-03 5:15 
GeneralRe: STL deque question Pin
John M. Drescher10-Apr-03 5:29
John M. Drescher10-Apr-03 5:29 
GeneralRe: STL deque question Pin
Zdeslav Vojkovic10-Apr-03 5:27
Zdeslav Vojkovic10-Apr-03 5:27 
GeneralRe: STL deque question Pin
Alvaro Mendez10-Apr-03 5:53
Alvaro Mendez10-Apr-03 5:53 
GeneralSetWindowLong() Pin
ZarrinPour10-Apr-03 5:01
ZarrinPour10-Apr-03 5:01 
GeneralRe: SetWindowLong() Pin
Alvaro Mendez10-Apr-03 6:03
Alvaro Mendez10-Apr-03 6:03 
GeneralSpinCtrl Pin
act_x10-Apr-03 4:51
act_x10-Apr-03 4:51 
GeneralRe: SpinCtrl Pin
PJ Arends10-Apr-03 9:27
professionalPJ Arends10-Apr-03 9:27 
GeneralRe: SpinCtrl Pin
Heiko200310-Apr-03 10:42
sussHeiko200310-Apr-03 10:42 
GeneralProblem with WorkQueue Pin
Martin_Viet10-Apr-03 4:46
Martin_Viet10-Apr-03 4:46 
GeneralGetting Systeminformations Pin
Sendel10-Apr-03 4:46
Sendel10-Apr-03 4:46 
GeneralRe: Getting Systeminformations Pin
MarkyMark10-Apr-03 5:24
MarkyMark10-Apr-03 5:24 
You can get most system information you want.

Here's a way of calculating CPU speed. It's not 100% accurate but close enough:

#pragma warning( disable: 4035 )
inline unsigned __int64 GetCycleCount()
{
_asm
{
_emit 0x0F
_emit 0x31
}
}
#pragma warning( default: 4035 )


int GetCPUSpeed()
{
Sleep( 0 );
const unsigned __int64 ui64StartCycle = GetCycleCount();
Sleep( 1000 );
return static_cast<int>( ( GetCycleCount() - ui64StartCycle ) / 1000000 );
}

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.