Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHoa can find sound play by MCIWndPlay is end now? Pin
Le@rner26-Nov-10 21:03
Le@rner26-Nov-10 21:03 
AnswerRe: Hoa can find sound play by MCIWndPlay is end now? Pin
Richard MacCutchan27-Nov-10 1:33
mveRichard MacCutchan27-Nov-10 1:33 
QuestionHow can I load put a swf in resources and how to load it Pin
rahul.kulshreshtha26-Nov-10 19:55
rahul.kulshreshtha26-Nov-10 19:55 
AnswerRe: How can I load put a swf in resources and how to load it Pin
Richard MacCutchan26-Nov-10 22:50
mveRichard MacCutchan26-Nov-10 22:50 
GeneralRe: How can I load put a swf in resources and how to load it Pin
rahul.kulshreshtha27-Nov-10 2:02
rahul.kulshreshtha27-Nov-10 2:02 
GeneralRe: How can I load put a swf in resources and how to load it Pin
rahul.kulshreshtha28-Nov-10 22:10
rahul.kulshreshtha28-Nov-10 22:10 
GeneralRe: How can I load put a swf in resources and how to load it Pin
Richard MacCutchan29-Nov-10 3:27
mveRichard MacCutchan29-Nov-10 3:27 
Question[Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified] Pin
stephen_young26-Nov-10 18:16
stephen_young26-Nov-10 18:16 
Hi everybody:
I am greenhand in socket programming.
I want to write a little program to receive tcp data and save them from server with multi port(almost 64 ports),the data was in deferent data rate.I read msdn and decided to use CAsyncSocket.I wrote a simple class CMySocket,and overide the OnReceive function.In the function,I want to save the received data to file.
When I used the new class,I created 64 CMySocket objects,and connect to the server ports.They connected the server well,and OnReceive function was triggered.But after some seconds,for example 10 seconds or handreds seconds,some objects' OnReceive was never triggered any longer,at last all objects were still ,no data incomed.
I have no idea why my objects didnt work continuously.My class had no more function,and only overrided the OnReceive.I wondered whether there exits some method to find the problem.
The server program is written with c++ builder,and if I use c++ builder and its socket controls,I have no problem in receiving and saving data.But I dont know why it failed in VC++ 2005.

I hope your help,thanx.

modified on Sunday, December 5, 2010 11:34 PM

GeneralRe: My CAsyncSocket class doesn't receive data after some secondes. Pin
Randor 28-Nov-10 5:57
professional Randor 28-Nov-10 5:57 
GeneralRe: My CAsyncSocket class doesn't receive data after some secondes. Pin
stephen_young28-Nov-10 17:02
stephen_young28-Nov-10 17:02 
AnswerRe: [Solved]My CAsyncSocket class doesn't receive data after some secondes. Pin
stephen_young5-Dec-10 17:39
stephen_young5-Dec-10 17:39 
Questionfatal error LNK1104: can not open file .lib Pin
AmbiguousName26-Nov-10 6:26
AmbiguousName26-Nov-10 6:26 
AnswerRe: fatal error LNK1104: can not open file .lib Pin
Richard MacCutchan26-Nov-10 6:32
mveRichard MacCutchan26-Nov-10 6:32 
GeneralRe: fatal error LNK1104: can not open file .lib Pin
AmbiguousName26-Nov-10 6:47
AmbiguousName26-Nov-10 6:47 
GeneralRe: fatal error LNK1104: can not open file .lib Pin
Richard MacCutchan26-Nov-10 7:14
mveRichard MacCutchan26-Nov-10 7:14 
QuestionLoading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Ahmed Charfeddine26-Nov-10 5:04
Ahmed Charfeddine26-Nov-10 5:04 
AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Richard MacCutchan26-Nov-10 6:29
mveRichard MacCutchan26-Nov-10 6:29 
AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Ahmed Charfeddine26-Nov-10 6:45
Ahmed Charfeddine26-Nov-10 6:45 
Questionnot recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 4:40
ALLERSLIT26-Nov-10 4:40 
AnswerRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 5:37
Ahmed Charfeddine26-Nov-10 5:37 
GeneralRe: not recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 5:57
ALLERSLIT26-Nov-10 5:57 
GeneralRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 6:40
Ahmed Charfeddine26-Nov-10 6:40 
AnswerRe: not recv()'ing everything Pin
Richard MacCutchan26-Nov-10 6:20
mveRichard MacCutchan26-Nov-10 6:20 
QuestionHow to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 4:32
Code-o-mat26-Nov-10 4:32 
AnswerRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:22
Ahmed Charfeddine26-Nov-10 5:22 

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.