Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalversion numbering Pin
paulb20-Jul-05 18:57
paulb20-Jul-05 18:57 
GeneralRe: version numbering Pin
Christian Graus20-Jul-05 18:59
protectorChristian Graus20-Jul-05 18:59 
GeneralRe: version numbering Pin
Blake Miller21-Jul-05 5:04
Blake Miller21-Jul-05 5:04 
GeneralRe: version numbering Pin
paulb21-Jul-05 15:08
paulb21-Jul-05 15:08 
QuestionGet Client area dimensions in mm??? Pin
wasife20-Jul-05 18:48
wasife20-Jul-05 18:48 
AnswerRe: Get Client area dimensions in mm??? Pin
Christian Graus20-Jul-05 19:00
protectorChristian Graus20-Jul-05 19:00 
GeneralExpert Query on timing, threads, networking plz.... :S Pin
kevingpo20-Jul-05 18:43
kevingpo20-Jul-05 18:43 
GeneralRe: Expert Query on timing, threads, networking plz.... :S Pin
Marc Soleda20-Jul-05 20:00
Marc Soleda20-Jul-05 20:00 
kevingpo wrote:
Am using a sleep(1) function to set the frequency of 1 second to read the cpu statistics.

Sleep(1) = 1 ms wait time. Quite difficult/impossible to reach in a Win9i/2000/XP environment without any other kernel-patch.

kevingpo wrote:
Is the most efficient way just converting double[n][4] into a string?

From my point of view it's the way, you have to pass a parameter telling the type of data you are sending or preassumed that all the data are from a certain type.

kevingpo wrote:
Maybe thread the network transfer so that the frequency of "cpu collecting" remains precisely every second?

You'll have to separate in different threads the data treatment from the data transfer and try different thread priorities to accomplish it.


kevingpo wrote:
2. How does one create/use threads in C, AND C++? Do threads differ in usage in C and C++?

Depends on the implementation of C/C++ you use, but:
In C++: HANDLE CreateThread(LPSECURITY_ATTRIBUTES secAttr,
SIZE_T stackSize,
LPTHREAD_START_ROUTINE threadFunc,
LPVOID param,
DWORD flags,
LPDWORD threadID);

In C using libpthread:
int pthread_create(pthread\_t *tid, const pthread\_attr\_t *tattr,
void*(*start_routine)(void *), void *arg);


Marc Soleda.





... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
Generalneed help in these que:( Pin
sunnymoe20-Jul-05 17:36
sunnymoe20-Jul-05 17:36 
GeneralRe: need help in these que:( Pin
Christian Graus20-Jul-05 17:43
protectorChristian Graus20-Jul-05 17:43 
GeneralRe: need help in these que:( Pin
sunnymoe20-Jul-05 20:12
sunnymoe20-Jul-05 20:12 
GeneralRe: need help in these que:( Pin
Cedric Moonen20-Jul-05 21:34
Cedric Moonen20-Jul-05 21:34 
GeneralRe: need help in these que:( Pin
Christian Graus21-Jul-05 13:28
protectorChristian Graus21-Jul-05 13:28 
GeneralRe: need help in these que:( Pin
Bob Stanneveld20-Jul-05 22:05
Bob Stanneveld20-Jul-05 22:05 
GeneralRe: need help in these que:( Pin
S Douglas21-Jul-05 1:25
professionalS Douglas21-Jul-05 1:25 
GeneralRe: need help in these que:( Pin
Bob Stanneveld21-Jul-05 2:46
Bob Stanneveld21-Jul-05 2:46 
GeneralRe: need help in these que:( Pin
S Douglas21-Jul-05 3:12
professionalS Douglas21-Jul-05 3:12 
GeneralRe: need help in these que:( Pin
Christian Graus21-Jul-05 13:26
protectorChristian Graus21-Jul-05 13:26 
GeneralRe: need help in these que:( Pin
toxcct20-Jul-05 20:34
toxcct20-Jul-05 20:34 
Questionhow to modify the height of the header in ListCtrl? Pin
try8820-Jul-05 16:40
try8820-Jul-05 16:40 
GeneralCustom Controls in VC++ .NET Pin
Freddie Code20-Jul-05 13:59
Freddie Code20-Jul-05 13:59 
GeneralRe: Custom Controls in VC++ .NET Pin
Christian Graus20-Jul-05 14:21
protectorChristian Graus20-Jul-05 14:21 
GeneralRe: Custom Controls in VC++ .NET Pin
Rick York20-Jul-05 18:14
mveRick York20-Jul-05 18:14 
GeneralTroubles during the creation of a dll Pin
Sunsawe20-Jul-05 12:35
Sunsawe20-Jul-05 12:35 
GeneralRe: Troubles during the creation of a dll Pin
racenjason20-Jul-05 12:44
professionalracenjason20-Jul-05 12:44 

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.