Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Where is classwizard in Visual C++.NET ? Pin
Fazlul Kabir16-Jan-02 2:34
Fazlul Kabir16-Jan-02 2:34 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Wizard_0116-Jan-02 2:46
Wizard_0116-Jan-02 2:46 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Fazlul Kabir16-Jan-02 3:07
Fazlul Kabir16-Jan-02 3:07 
AnswerRe: Where is classwizard in Visual C++.NET ? Pin
Carlos Antollini16-Jan-02 2:54
Carlos Antollini16-Jan-02 2:54 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Wizard_0116-Jan-02 3:00
Wizard_0116-Jan-02 3:00 
GeneralSysmenu Pin
Rickard Andersson2016-Jan-02 2:05
Rickard Andersson2016-Jan-02 2:05 
QuestionHow to send files through winsock Pin
Kuniva16-Jan-02 1:26
Kuniva16-Jan-02 1:26 
AnswerRe: How to send files through winsock Pin
Joao Vaz16-Jan-02 4:04
Joao Vaz16-Jan-02 4:04 
Hi Kuniva,

After you called the create and connect functions on the sockClient_ (client socket), do this
...
CSocketFile file_(&sockClient_);
CArchive outFile_(&file_,
CArchive::store);
outFile_ << xpto; // the data you want to send
note : this only works for stream connection


On server side you do the opposite :
... // do the accept and listen and ...
CSocketFile file_(&sockServer_);
CArchive inFile_(&file_,
CArchive::load);
inFile_ >> xpto;

for more examples, you could check the CHATSRVR and CHATTER on MSDN
or the site for good examples of socket programming http://www.sockets.com/

Cheers,

Joao Vaz
GeneralURGENT Help Required Pin
James Spibey16-Jan-02 1:19
James Spibey16-Jan-02 1:19 
GeneralRe: URGENT Help Required Pin
Phil.Benson16-Jan-02 1:31
professionalPhil.Benson16-Jan-02 1:31 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 1:36
James Spibey16-Jan-02 1:36 
GeneralRe: URGENT Help Required Pin
Matt Gullett16-Jan-02 2:05
Matt Gullett16-Jan-02 2:05 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:54
James Spibey16-Jan-02 2:54 
GeneralFIXED WOO-HOO Pin
James Spibey16-Jan-02 3:03
James Spibey16-Jan-02 3:03 
GeneralRe: FIXED WOO-HOO Pin
Matt Gullett16-Jan-02 3:33
Matt Gullett16-Jan-02 3:33 
GeneralRe: URGENT Help Required Pin
Tim Smith16-Jan-02 2:13
Tim Smith16-Jan-02 2:13 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:26
James Spibey16-Jan-02 2:26 
GeneralSetting Control Focus Within Property Sheet Pin
John Clump16-Jan-02 0:09
John Clump16-Jan-02 0:09 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Fred D.16-Jan-02 0:34
Fred D.16-Jan-02 0:34 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Roger Allen16-Jan-02 3:17
Roger Allen16-Jan-02 3:17 
GeneralEnumerating All Visible Printers Pin
jerry0davis15-Jan-02 23:43
jerry0davis15-Jan-02 23:43 
GeneralRe: Enumerating All Visible Printers Pin
567890123416-Jan-02 0:51
567890123416-Jan-02 0:51 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 3:34
jerry0davis16-Jan-02 3:34 
GeneralRe: Enumerating All Visible Printers Pin
l a u r e n16-Jan-02 2:29
l a u r e n16-Jan-02 2:29 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 2:35
jerry0davis16-Jan-02 2:35 

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.