Click here to Skip to main content
15,915,094 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pointer question Pin
Stephen Hewitt20-Sep-06 14:01
Stephen Hewitt20-Sep-06 14:01 
QuestionBuild Dependencies Problem Pin
Brooks Harris20-Sep-06 8:29
Brooks Harris20-Sep-06 8:29 
AnswerRe: Build Dependencies Problem Pin
Brooks Harris20-Sep-06 11:20
Brooks Harris20-Sep-06 11:20 
QuestionFunction GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 7:59
nopainnogain20-Sep-06 7:59 
QuestionRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
David Crow20-Sep-06 8:30
David Crow20-Sep-06 8:30 
AnswerRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 8:50
nopainnogain20-Sep-06 8:50 
AnswerRe: Function GetAsyncKeyState() can't be used in system service,why? Pin
nopainnogain20-Sep-06 17:55
nopainnogain20-Sep-06 17:55 
QuestionSave me! @_@! Pin
WinXYhappy20-Sep-06 6:20
WinXYhappy20-Sep-06 6:20 
i have write code as follow-->

if ( (fp = fopen(filename,"r")) != NULL)
{
while(fgets(sendline,MAXLINE,fp) != NULL)
if( (send(sockfd,sendline,strlen(sendline),0)) == SOCKET_ERROR)
{
printf("Send Error!");
CleanUp();
return;
}
if ( ferror(fp) != 0)
printf("file get error,retry!");
else
if ( feof(fp) !=0)
{
printf("file trans complete!");
fclose(fp);
return;
}

if((n = recv(sockfd, recvline, MAXLINE,0)) > 0)
{
recvline[n] = 0; /* null terminate */
printf("terminate revceive data\r\n");
if (fputs(recvline, stdout) == EOF)
printf("fputs error");
}
printf("\r\n\r\nterminate send data\r\n");
}
else
printf((char *)GetLastError());
it works on .txt well,but when i transmit .rar it doesn't work. i recieve the file,open with notepad.exe.only "Rar!" saved. why!!something must be wrong with fopen()!!!i send test.rar-->contains "Rar! 蠍s
?t ?   M?50 test.txt ??WinXYhappyGo_sleep?{ @ "(open with notepad.exe).must i Serialize the file i want to send??how to use Serialize() on Win32 console APP.
Right here waiting......@_@
Or mail me!Smile | :)
thanks!
AnswerRe: Save me! @_@! Pin
toxcct20-Sep-06 6:24
toxcct20-Sep-06 6:24 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 6:37
WinXYhappy20-Sep-06 6:37 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 6:46
toxcct20-Sep-06 6:46 
AnswerRe: Save me! @_@! Pin
led mike20-Sep-06 6:27
led mike20-Sep-06 6:27 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 7:25
WinXYhappy20-Sep-06 7:25 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 7:39
Zac Howland20-Sep-06 7:39 
GeneralRe: Save me! @_@! Pin
WinXYhappy20-Sep-06 8:02
WinXYhappy20-Sep-06 8:02 
GeneralRe: Save me! @_@! Pin
led mike20-Sep-06 8:03
led mike20-Sep-06 8:03 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 8:12
toxcct20-Sep-06 8:12 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 8:16
Zac Howland20-Sep-06 8:16 
GeneralRe: Save me! @_@! Pin
led mike20-Sep-06 8:20
led mike20-Sep-06 8:20 
GeneralRe: Save me! @_@! Pin
toxcct20-Sep-06 8:31
toxcct20-Sep-06 8:31 
GeneralRe: Save me! @_@! Pin
Zac Howland20-Sep-06 8:40
Zac Howland20-Sep-06 8:40 
GeneralRe: Save me! @_@! Pin
led mike20-Sep-06 7:45
led mike20-Sep-06 7:45 
GeneralRe: Save me! @_@! [modified] Pin
WinXYhappy20-Sep-06 7:57
WinXYhappy20-Sep-06 7:57 
GeneralRe: Save me! @_@! Pin
markkuk20-Sep-06 12:06
markkuk20-Sep-06 12:06 
GeneralRe: Save me! @_@! Pin
WinXYhappy21-Sep-06 15:09
WinXYhappy21-Sep-06 15:09 

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.