Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ 6.0 IDE problem Pin
John-theKing2-May-03 2:39
John-theKing2-May-03 2:39 
GeneralRe: VC++ 6.0 IDE problem Pin
JensB2-May-03 3:46
JensB2-May-03 3:46 
GeneralRe: VC++ 6.0 IDE problem Pin
David Crow2-May-03 5:18
David Crow2-May-03 5:18 
GeneralRe: VC++ 6.0 IDE problem Pin
John R. Shaw2-May-03 19:01
John R. Shaw2-May-03 19:01 
GeneralRunning program more than 1 time Pin
JensB1-May-03 23:43
JensB1-May-03 23:43 
GeneralRe: Running program more than 1 time Pin
Rage1-May-03 23:51
professionalRage1-May-03 23:51 
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 0:15
JensB2-May-03 0:15 
GeneralRe: Running program more than 1 time Pin
Rage2-May-03 1:24
professionalRage2-May-03 1:24 
JensB wrote:
yeah seems like that class was exactly what i was looking for.

If you need it, try and download it from PJ's website directly, I think the version is updated.


JensB wrote:
And btw, do you happen to know a class which can return the current CPU id. I need that id to implement some security. (don't like this method of working though

Maybe you could use GetSystemInformation.

Quoted from MSDN :
The GetSystemInfo function returns information about the current system. 

VOID GetSystemInfo(
  LPSYSTEM_INFO lpSystemInfo   // address of system information 
                               // structure
);
 
typedef struct _SYSTEM_INFO { // sinf 
    union { 
        DWORD  dwOemId; 
        struct { 
            WORD wProcessorArchitecture; 
            WORD wReserved; 
        }; 
    }; 
    DWORD  dwPageSize; 
    LPVOID lpMinimumApplicationAddress; 
    LPVOID lpMaximumApplicationAddress; 
    DWORD  dwActiveProcessorMask; 
    DWORD  dwNumberOfProcessors; 
    DWORD  dwProcessorType; 
    DWORD  dwAllocationGranularity; 
    WORD  wProcessorLevel; 
    WORD  wProcessorRevision; 
} SYSTEM_INFO; 


Check it out directly in the MSDN for more info about the struct members.

Hope this helps.




~RaGE();
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 1:49
JensB2-May-03 1:49 
GeneralRe: Running program more than 1 time Pin
JensB2-May-03 2:26
JensB2-May-03 2:26 
GeneralRe: Running program more than 1 time Pin
David Crow2-May-03 4:36
David Crow2-May-03 4:36 
QuestionDialup entries directory? Pin
Jump_Around1-May-03 23:34
Jump_Around1-May-03 23:34 
AnswerRe: Dialup entries directory? Pin
David Crow2-May-03 4:41
David Crow2-May-03 4:41 
GeneralRe: Dialup entries directory? Pin
Jump_Around2-May-03 21:47
Jump_Around2-May-03 21:47 
GeneralRe: Dialup entries directory? Pin
David Crow5-May-03 3:44
David Crow5-May-03 3:44 
GeneralDLL exported function Signature Pin
vikramlinux1-May-03 23:06
vikramlinux1-May-03 23:06 
GeneralRe: DLL exported function Signature Pin
User 66581-May-03 23:21
User 66581-May-03 23:21 
GeneralRe: DLL exported function Signature Pin
vikramlinux1-May-03 23:25
vikramlinux1-May-03 23:25 
GeneralRe: DLL exported function Signature Pin
David Crow2-May-03 4:43
David Crow2-May-03 4:43 
GeneralRe: DLL exported function Signature Pin
pankajdaga1-May-03 23:51
pankajdaga1-May-03 23:51 
GeneralRe: DLL exported function Signature Pin
John R. Shaw2-May-03 19:07
John R. Shaw2-May-03 19:07 
GeneralRe: DLL exported function Signature Pin
David Crow5-May-03 3:46
David Crow5-May-03 3:46 
GeneralRe: DLL exported function Signature Pin
John R. Shaw5-May-03 7:05
John R. Shaw5-May-03 7:05 
GeneralDLL question...driving me crazy though! Pin
pankajdaga1-May-03 22:58
pankajdaga1-May-03 22:58 
GeneralRe: DLL question...driving me crazy though! Pin
John R. Shaw2-May-03 19:26
John R. Shaw2-May-03 19:26 

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.