Click here to Skip to main content
15,917,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crystal Report Pin
gUrM33T8-Apr-04 20:18
gUrM33T8-Apr-04 20:18 
Generali dont want the console window to be shown Pin
Anonymous8-Apr-04 19:27
Anonymous8-Apr-04 19:27 
GeneralRe: i dont want the console window to be shown Pin
Abebe8-Apr-04 19:37
Abebe8-Apr-04 19:37 
Question"global namespace" ---what's meaning of this?? Pin
tank10258-Apr-04 18:58
tank10258-Apr-04 18:58 
AnswerRe: "global namespace" ---what's meaning of this?? Pin
Renjith Ramachandran8-Apr-04 22:35
Renjith Ramachandran8-Apr-04 22:35 
Generalsocket send/recv Pin
Steve L.8-Apr-04 18:06
Steve L.8-Apr-04 18:06 
GeneralRe: socket send/recv Pin
johnny,Kim8-Apr-04 20:43
johnny,Kim8-Apr-04 20:43 
GeneralRe: socket send/recv Pin
toxcct8-Apr-04 21:49
toxcct8-Apr-04 21:49 
be careful when you send numbers throw sockets.
You should do some htonl() and/or htons() calls to make sure the bytes are in correct order (the bytes order is not always the same between your computer and on the network). these function so abstract this from you.
Me, i should even have done this :

<font style="color:blue;">#define</font> BUFFER_SIZE 32                      <font style="color:green;">// 32 for example</font>
 
<font style="color:green;">//...</font>
 
<font style="color:blue;">long</font> MyFirstLong, MySecondLong;             <font style="color:green;">// Names are also for example, because not very practical</font>

<font style="color:blue;">char</font> strBuffer[BUFFER_SIZE];
<font style="color:blue;">int</font> sockfd;
 
<font style="color:green;">//...</font>
 
recv(sockfd, strBuffer, BUFFER_SIZE, 0);   <font style="color:green;">// Do some error checking here</font>
 
sscanf(strBuffer, "%l%l", &MyFirstLong, &MySecondLong);

Is that correct for you Mr L. ?


TOXCCT >>> GEII power


GeneralRe: socket send/recv Pin
Steve L.9-Apr-04 7:27
Steve L.9-Apr-04 7:27 
GeneralRe: socket send/recv Pin
toxcct9-Apr-04 10:30
toxcct9-Apr-04 10:30 
GeneralRe: socket send/recv Pin
Paul Ranson9-Apr-04 9:46
Paul Ranson9-Apr-04 9:46 
GeneralAccess to class in another file. Pin
Iceberg768-Apr-04 16:33
Iceberg768-Apr-04 16:33 
GeneralRe: Access to class in another file. Pin
Maxwell Chen8-Apr-04 17:00
Maxwell Chen8-Apr-04 17:00 
GeneralRe: Access to class in another file. Pin
Iceberg768-Apr-04 17:32
Iceberg768-Apr-04 17:32 
GeneralRe: Access to class in another file. Pin
Maxwell Chen8-Apr-04 17:47
Maxwell Chen8-Apr-04 17:47 
GeneralRe: Access to class in another file. Pin
Iceberg768-Apr-04 18:04
Iceberg768-Apr-04 18:04 
GeneralRe: Access to class in another file. Pin
Iceberg769-Apr-04 20:28
Iceberg769-Apr-04 20:28 
GeneralRe: Access to class in another file. Pin
Maxwell Chen11-Apr-04 16:39
Maxwell Chen11-Apr-04 16:39 
GeneralRe: Access to class in another file. Pin
Iceberg7611-Apr-04 20:09
Iceberg7611-Apr-04 20:09 
Generalneed helps for writing voice chat program in Visual C++ Pin
NgocHung8-Apr-04 15:12
NgocHung8-Apr-04 15:12 
GeneralRe: need helps for writing voice chat program in Visual C++ Pin
Timothy Grabrian8-Apr-04 15:41
professionalTimothy Grabrian8-Apr-04 15:41 
GeneralRe: need helps for writing voice chat program in Visual C++ Pin
NgocHung9-Apr-04 3:31
NgocHung9-Apr-04 3:31 
GeneralDoes Directory Exists Pin
Timothy Grabrian8-Apr-04 14:05
professionalTimothy Grabrian8-Apr-04 14:05 
GeneralRe: Does Directory Exists Pin
gUrM33T8-Apr-04 14:49
gUrM33T8-Apr-04 14:49 
GeneralRe: Thanks Pin
Timothy Grabrian8-Apr-04 15:12
professionalTimothy Grabrian8-Apr-04 15:12 

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.