Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: convert mpg to avi in directshow Pin
toxcct9-Jul-07 5:04
toxcct9-Jul-07 5:04 
AnswerRe: convert mpg to avi in directshow Pin
Mark Salsbery9-Jul-07 7:40
Mark Salsbery9-Jul-07 7:40 
GeneralRe: convert mpg to avi in directshow Pin
liur179-Jul-07 15:00
liur179-Jul-07 15:00 
GeneralRe: convert mpg to avi in directshow Pin
Mark Salsbery9-Jul-07 15:50
Mark Salsbery9-Jul-07 15:50 
GeneralRe: convert mpg to avi in directshow Pin
liur179-Jul-07 20:45
liur179-Jul-07 20:45 
QuestionRe: convert mpg to avi in directshow Pin
Hamid_RT9-Jul-07 7:59
Hamid_RT9-Jul-07 7:59 
QuestionLocalization using .rc resource and resource only dll in same EXE Pin
Neeranjan9-Jul-07 4:36
Neeranjan9-Jul-07 4:36 
QuestionWinsock issue (HTTP) Pin
PigeonRat9-Jul-07 4:24
PigeonRat9-Jul-07 4:24 
Hi all,

Part of the app I'm developing downloads fairly large files via HTTP. Everything works great, except for when the clients network connection is dropped. I have tried using WSAGetLastError, but it always returns 0. The thread just keeps pulling mystical data, then it just stops after about 300 or so KB. No crash or anything.

do
{
    len = recv( Socket, buffer, sizeof( buffer ), 0 );

    if( ( pos + len ) > contentLength )
        return 0;

    memcpy( body + pos, buffer, len );
    pos += len;

    int error = WSAGetLastError( );

    if( error )
        return 0;

} while( len > 0 );


To simulate a network drop I am turning my modem off.

Has anyone got a solution to this?
AnswerRe: Winsock issue (HTTP) Pin
PigeonRat9-Jul-07 4:37
PigeonRat9-Jul-07 4:37 
Questionfunction pointer Pin
eirche9-Jul-07 3:51
eirche9-Jul-07 3:51 
AnswerRe: function pointer Pin
Nibu babu thomas9-Jul-07 4:12
Nibu babu thomas9-Jul-07 4:12 
GeneralRe: function pointer Pin
eirche9-Jul-07 4:18
eirche9-Jul-07 4:18 
AnswerRe: function pointer Pin
toxcct9-Jul-07 4:14
toxcct9-Jul-07 4:14 
QuestionWaitForMultipleObjects problem Pin
david bagaturia9-Jul-07 3:43
david bagaturia9-Jul-07 3:43 
AnswerRe: WaitForMultipleObjects problem Pin
toxcct9-Jul-07 4:15
toxcct9-Jul-07 4:15 
GeneralRe: WaitForMultipleObjects problem Pin
david bagaturia9-Jul-07 19:16
david bagaturia9-Jul-07 19:16 
AnswerRe: WaitForMultipleObjects problem Pin
Rage9-Jul-07 4:53
professionalRage9-Jul-07 4:53 
AnswerRe: WaitForMultipleObjects problem Pin
Stephen Hewitt9-Jul-07 14:00
Stephen Hewitt9-Jul-07 14:00 
AnswerRe: WaitForMultipleObjects problem Pin
aks.9-Jul-07 18:02
aks.9-Jul-07 18:02 
GeneralRe: WaitForMultipleObjects problem Pin
david bagaturia9-Jul-07 19:47
david bagaturia9-Jul-07 19:47 
GeneralRe: WaitForMultipleObjects problem Pin
Peter Weyzen9-Jul-07 20:02
Peter Weyzen9-Jul-07 20:02 
GeneralRe: WaitForMultipleObjects problem Pin
david bagaturia9-Jul-07 20:32
david bagaturia9-Jul-07 20:32 
QuestionMFC & WM_APPCOMMAND Pin
Grant MacDonald9-Jul-07 3:00
Grant MacDonald9-Jul-07 3:00 
AnswerRe: MFC & WM_APPCOMMAND Pin
Blake Miller9-Jul-07 11:36
Blake Miller9-Jul-07 11:36 
QuestionRTP FIlter for Directshow Pin
djin949-Jul-07 2:51
djin949-Jul-07 2:51 

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.