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

C / C++ / MFC

 
GeneralHWND from hProcess Pin
Jetli Jerry20-Jul-05 19:44
Jetli Jerry20-Jul-05 19:44 
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 
Two quick queries:

1. I have programmed a little network performance monitor. It monitors a set of remote hosts over a network. It gets the CPU statistics and all gets collected at one of the remote hosts (say primary remote host, holding procValues[n][4], 4 CPU floating numbers per n remote hosts).

Now, I want to transfer this data set (double procValues[n][4]) over a TCP or UDP network connection to a local host for graphing and storing in a database tool.

I've read Beej's Networking Guide http://www.ecst.csuchico.edu/~beej/guide/net/ and going to follow his code.

However I don't know how am going to send a double[n][4] over the network efficiently without hogging the network. Is the most efficient way just converting double[n][4] into a string?

Am using a sleep(1) function to set the frequency of 1 second to read the cpu statistics.

If a sending function takes more than the frequency of "cpu statistic collecting" then am going to get lots of missed out data... no wait it wouldn't be perfectly synchronized to the exact second, it will be lagged behind. Maybe thread the network transfer so that the frequency of "cpu collecting" remains precisely every second?

What are your views?

2. How does one create/use threads in C, AND C++? Do threads differ in usage in C and C++?
GeneralRe: Expert Query on timing, threads, networking plz.... :S Pin
Marc Soleda20-Jul-05 20:00
Marc Soleda20-Jul-05 20:00 
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 

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.