Click here to Skip to main content
16,016,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help in CListCtrl Pin
ThatsAlok23-Aug-05 19:58
ThatsAlok23-Aug-05 19:58 
GeneralUpdating a field in Access database Pin
joy00722-Aug-05 18:12
joy00722-Aug-05 18:12 
GeneralRe: Updating a field in Access database Pin
Jose Lamas Rios22-Aug-05 18:27
Jose Lamas Rios22-Aug-05 18:27 
GeneralRecieving a file over TCP Pin
Member 183908222-Aug-05 17:56
Member 183908222-Aug-05 17:56 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 18:04
Jose Lamas Rios22-Aug-05 18:04 
GeneralRe: Recieving a file over TCP Pin
Member 183908222-Aug-05 18:13
Member 183908222-Aug-05 18:13 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 19:10
Jose Lamas Rios22-Aug-05 19:10 
GeneralRe: Recieving a file over TCP Pin
Member 183908223-Aug-05 7:44
Member 183908223-Aug-05 7:44 
Thank you so so much!!! BTW, the reason I didn't post the entire error code is because this is running on an xbox and it confuses lots of people to see the errors when they aren't used to them. Here is what I changed based on your recomendations:

#define BufLen 2048

FILE *fp;
fp = fopen("D:\\wow.map", "wb");
int BytesRecieved = 1;
while(BytesRecieved)
{
BytesRecieved = recv(ClientSocket, xrec, BufLen, 0);

fwrite(xrec, 1, BytesRecieved, fp);
memset(xrec, 0x0, BufLen);
}
fclose(fp);

I'm not sure if you have any recomendations for making this faster but i'm open to suggestions. Currently it takes about 30 seconds to send a 15 mb file (thats not too bad but there are going to be lots of 400 meg file transferes going on).
GeneralRe: Recieving a file over TCP Pin
Member 183908223-Aug-05 17:10
Member 183908223-Aug-05 17:10 
Questionhow to create a listbox using GLUI. Pin
jasrina22-Aug-05 17:45
jasrina22-Aug-05 17:45 
AnswerRe: how to create a listbox using GLUI. Pin
Jose Lamas Rios22-Aug-05 18:02
Jose Lamas Rios22-Aug-05 18:02 
GeneralTree List Control Pin
Nishad S22-Aug-05 17:45
Nishad S22-Aug-05 17:45 
GeneralRe: Tree List Control Pin
Jose Lamas Rios22-Aug-05 18:08
Jose Lamas Rios22-Aug-05 18:08 
QuestionHow to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 16:55
Member 159461422-Aug-05 16:55 
AnswerRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 17:05
Jose Lamas Rios22-Aug-05 17:05 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 18:01
Member 159461422-Aug-05 18:01 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 18:05
Jose Lamas Rios22-Aug-05 18:05 
QuestionInternet game? Pin
gr8coaster32922-Aug-05 16:14
gr8coaster32922-Aug-05 16:14 
QuestionHow can i chang the type of int to type of POSITION Pin
ebinaini22-Aug-05 15:14
ebinaini22-Aug-05 15:14 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Anonymous22-Aug-05 15:33
Anonymous22-Aug-05 15:33 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Jose Lamas Rios22-Aug-05 15:40
Jose Lamas Rios22-Aug-05 15:40 
GeneralRe: How can i chang the type of int to type of POSITION Pin
ebinaini23-Aug-05 15:25
ebinaini23-Aug-05 15:25 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Christian Graus22-Aug-05 15:59
protectorChristian Graus22-Aug-05 15:59 
GeneralRe: How can i chang the type of int to type of POSITION Pin
David Crow23-Aug-05 3:29
David Crow23-Aug-05 3:29 
GeneralRe: How can i chang the type of int to type of POSITION Pin
Christian Graus23-Aug-05 13:24
protectorChristian Graus23-Aug-05 13:24 

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.