Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC and COM, and Access violation in CoUninitialize Pin
sagmam12-Nov-03 23:05
sagmam12-Nov-03 23:05 
GeneralWinsock Pin
Stan the man12-Nov-03 2:41
Stan the man12-Nov-03 2:41 
GeneralRe: Winsock Pin
Johnny ²12-Nov-03 2:48
Johnny ²12-Nov-03 2:48 
GeneralRe: Winsock Pin
Pir8ofTampa12-Nov-03 3:20
Pir8ofTampa12-Nov-03 3:20 
GeneralFile Pin
Anonymous12-Nov-03 2:37
Anonymous12-Nov-03 2:37 
GeneralRe: File Pin
David Crow12-Nov-03 3:17
David Crow12-Nov-03 3:17 
Generalhelp needed with CSocket Pin
Aswin12-Nov-03 2:03
Aswin12-Nov-03 2:03 
GeneralRe: help needed with CSocket Pin
Johnny ²12-Nov-03 3:01
Johnny ²12-Nov-03 3:01 
1) I have never used CSocket, but I would suggest that CAsyncSocket provides what you need here and will be easier to use - just override the OnClose function, set the AsyncSelect flags, and you will be notified when the remote client disconnects.

2) You dont need to do anything. TCP/IP ensures that the data is correct.

3) Just send it, theres nothing special you need to do because its 1MB.

4) Try and open the port. If it fails look at the error code and see if it indicates the port is in use. If you want to know beforehand then you can try and connect to the port and expect a failure - a success means the port is open.

5) I cannot see a getport function within CSocket or CAsyncSocket - what are you using to obtain the information? If you create a socket on a port then, provided its not in use, thats the port that will be used.
GeneralRe: help needed with CSocket Pin
Aswin12-Nov-03 3:34
Aswin12-Nov-03 3:34 
Generala problem about CListCtrl Pin
benben12-Nov-03 2:02
benben12-Nov-03 2:02 
GeneralRe: a problem about CListCtrl Pin
David Crow12-Nov-03 3:26
David Crow12-Nov-03 3:26 
GeneralThanks a lot. Pin
benben12-Nov-03 15:35
benben12-Nov-03 15:35 
Generalmajor difference between a service and a exe Pin
Anonymous12-Nov-03 1:55
Anonymous12-Nov-03 1:55 
GeneralRe: major difference between a service and a exe Pin
geo_m12-Nov-03 3:23
geo_m12-Nov-03 3:23 
Generalini file Pin
jasu12-Nov-03 1:37
jasu12-Nov-03 1:37 
GeneralComplex situation help needed Pin
goldminti12-Nov-03 1:34
goldminti12-Nov-03 1:34 
GeneralReg MFC Error Pin
cberam12-Nov-03 1:23
cberam12-Nov-03 1:23 
GeneralRe: Reg MFC Error Pin
Roger Allen12-Nov-03 1:55
Roger Allen12-Nov-03 1:55 
GeneralRe: Reg MFC Error Pin
David Crow12-Nov-03 3:34
David Crow12-Nov-03 3:34 
QuestionHow can set IP over modem ? Pin
choupani12-Nov-03 1:19
choupani12-Nov-03 1:19 
AnswerRe: How can set IP over modem ? Pin
Antti Keskinen12-Nov-03 4:00
Antti Keskinen12-Nov-03 4:00 
GeneralUsing MSChart within Visual C++.NET Pin
François Gasnier12-Nov-03 1:19
François Gasnier12-Nov-03 1:19 
GeneralMFC Pin
cberam12-Nov-03 1:15
cberam12-Nov-03 1:15 
GeneralNeed Handle of Scrollbar in list control Pin
super12-Nov-03 0:40
professionalsuper12-Nov-03 0:40 
GeneralRe: Need Handle of Scrollbar in list control Pin
Roger Allen12-Nov-03 2:00
Roger Allen12-Nov-03 2:00 

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.