Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: for (; !Free; ) ; ???? Pin
tongc27-Oct-02 11:18
tongc27-Oct-02 11:18 
AnswerRe: for (; !Free; ) ; ???? Pin
ian mariano27-Oct-02 21:51
ian mariano27-Oct-02 21:51 
QuestionHelp! LNK2005 Error? Pin
Dean_Lee27-Oct-02 4:35
Dean_Lee27-Oct-02 4:35 
AnswerRe: Help! LNK2005 Error? Pin
Chris Losinger27-Oct-02 4:50
professionalChris Losinger27-Oct-02 4:50 
GeneralRe: Help! LNK2005 Error? Pin
Dean_Lee27-Oct-02 5:04
Dean_Lee27-Oct-02 5:04 
QuestionUpdate my systray icon after explorer crash? Pin
Anonymous27-Oct-02 4:27
Anonymous27-Oct-02 4:27 
AnswerRe: Update my systray icon after explorer crash? Pin
Michael Dunn27-Oct-02 5:17
sitebuilderMichael Dunn27-Oct-02 5:17 
GeneralFile Transfer-- Binary Data Pin
Pett27-Oct-02 4:23
Pett27-Oct-02 4:23 
Hi,

I'm new to C++/MFC.

I have an assignment to modify the Chat program from the MSDN site (Chatter and Chatsrvr) to cater for file transfer.

I need to determine between data
that is being sent over the socket as text (the messages) versus the binary
data that is to be sent over as the file. There is a void
CClientSocket::OnReceive(int nErrorCode) looks like an overrided method
from the CSocket class. So basically whenever the socket receives
something, it kicks off the OnReceive code. It
calls the ProcessPendingRead method , which then treats the
received data as a Message (text) versus a binary file.

How can I switch between data the text for the messages and the binary data for the file when I'm doing the file transfer?Cry | :((

Any ideas on how to make this work?



Pett
GeneralRe: File Transfer-- Binary Data Pin
Anonymous27-Oct-02 5:20
Anonymous27-Oct-02 5:20 
Generalsome Hex number Pin
tongc27-Oct-02 4:04
tongc27-Oct-02 4:04 
GeneralRe: some Hex number Pin
Brian Delahunty27-Oct-02 4:19
Brian Delahunty27-Oct-02 4:19 
GeneralMonitoring Files - Disk Access Pin
Anonymous27-Oct-02 3:36
Anonymous27-Oct-02 3:36 
GeneralRe: Monitoring Files - Disk Access Pin
Ravi Bhavnani27-Oct-02 3:43
professionalRavi Bhavnani27-Oct-02 3:43 
GeneralRe: Monitoring Files - Disk Access Pin
Anonymous27-Oct-02 4:02
Anonymous27-Oct-02 4:02 
GeneralRe: Monitoring Files - Disk Access Pin
Anonymous27-Oct-02 4:05
Anonymous27-Oct-02 4:05 
GeneralRe: Monitoring Files - Disk Access Pin
Ravi Bhavnani27-Oct-02 4:09
professionalRavi Bhavnani27-Oct-02 4:09 
GeneralRe: Monitoring Files - Disk Access Pin
Anonymous27-Oct-02 7:46
Anonymous27-Oct-02 7:46 
GeneralRe: Monitoring Files - Disk Access Pin
Ravi Bhavnani27-Oct-02 9:32
professionalRavi Bhavnani27-Oct-02 9:32 
GeneralSerializing and class hierarchy Pin
Conan Ua Diarmaid27-Oct-02 3:32
sussConan Ua Diarmaid27-Oct-02 3:32 
GeneralRe: Serializing and class hierarchy Pin
Ravi Bhavnani27-Oct-02 3:41
professionalRavi Bhavnani27-Oct-02 3:41 
GeneralYah, read that but not enough info. Pin
Con27-Oct-02 4:24
Con27-Oct-02 4:24 
GeneralRe: Yah, read that but not enough info. Pin
Ravi Bhavnani27-Oct-02 4:30
professionalRavi Bhavnani27-Oct-02 4:30 
GeneralRe: Class Factory Pin
Con27-Oct-02 4:35
Con27-Oct-02 4:35 
GeneralRe: Class Factory Pin
Ravi Bhavnani27-Oct-02 4:45
professionalRavi Bhavnani27-Oct-02 4:45 
GeneralRe: Last One Pin
Con27-Oct-02 4:52
Con27-Oct-02 4:52 

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.