Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding coordinates of Focus rectangle Pin
Christian Graus6-May-01 20:49
protectorChristian Graus6-May-01 20:49 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 21:18
suss6-May-01 21:18 
GeneralRe: Finding coordinates of Focus rectangle Pin
#realJSOP7-May-01 1:09
professional#realJSOP7-May-01 1:09 
GeneralFTP Question Pin
Cabadam6-May-01 18:13
Cabadam6-May-01 18:13 
GeneralRe: FTP Question Pin
l a u r e n6-May-01 21:04
l a u r e n6-May-01 21:04 
GeneralRe: FTP Question Pin
Cabadam7-May-01 15:00
Cabadam7-May-01 15:00 
GeneralRe: FTP Question Pin
l a u r e n7-May-01 21:54
l a u r e n7-May-01 21:54 
GeneralRe: FTP Question Pin
Cabadam8-May-01 1:52
Cabadam8-May-01 1:52 
LOL OK.. Thats what I deserve for trying to think while tired. Turns out my socket was going out of scope and being destroyed... *face turns red*

OK-- now I got my welcome message and I have read the RFC on FTP protocol so I understand pretty much how FTP is supposed to work. Now I need to actually send commands. Smile | :)
Ok, lets say I have:

CString command = "USER someone";

What do I need to tack on to the end of command to correctly send it?
I know the RFC said to have a carriage return and line feed. Isn't that \r\n? I tried that and nothing happened after I sent it. Tried adding basically every combination ("\r", "\n", "\r\n", "\n\r", "")
Still nothing worked.

Also, to send it, I should just do this correct:

char* buf = command.GetBuffer(command.GetLength());
Send(buf, sizeof(buf));

Thanks!

Adam
cabadam@houston.rr.com
GeneralLauch Internet Explorer Pin
6-May-01 10:23
suss6-May-01 10:23 
GeneralRe: Lauch Internet Explorer Pin
Christian Graus6-May-01 12:04
protectorChristian Graus6-May-01 12:04 
Generalvc++ using directx 8 sdk and crystal space game engine Pin
5-May-01 10:35
suss5-May-01 10:35 
GeneralRe: vc++ using directx 8 sdk and crystal space game engine Pin
Christian Graus6-May-01 12:18
protectorChristian Graus6-May-01 12:18 
GeneralRe: vc++ using directx 8 sdk and crystal space game engine Pin
Hadi Rezaee7-May-01 3:01
Hadi Rezaee7-May-01 3:01 
GeneralTotal memory crash when converting from regular to extension DLL Pin
5-May-01 9:03
suss5-May-01 9:03 
GeneralRe: Total memory crash when converting from regular to extension DLL Pin
Chris Hafey5-May-01 9:29
Chris Hafey5-May-01 9:29 
GeneralRe: Total memory crash when converting from regular to extension DLL Pin
5-May-01 10:53
suss5-May-01 10:53 
GeneralRe: Total memory crash when converting from regular to extension DLL Pin
Chris Hafey5-May-01 18:25
Chris Hafey5-May-01 18:25 
Generalctrl+break Pin
5-May-01 8:43
suss5-May-01 8:43 
GeneralRe: ctrl+break Pin
l a u r e n5-May-01 22:06
l a u r e n5-May-01 22:06 
GeneralRe: ctrl+break Pin
5-May-01 22:54
suss5-May-01 22:54 
Generalctrl+break Pin
5-May-01 8:43
suss5-May-01 8:43 
QuestionWindows CE - sound mixing? Pin
5-May-01 7:51
suss5-May-01 7:51 
Generale - Book Pin
4-May-01 22:31
suss4-May-01 22:31 
GeneralRe: e - Book Pin
Ahmad5-May-01 21:23
Ahmad5-May-01 21:23 
Generalcolor cursor Pin
4-May-01 21:39
suss4-May-01 21:39 

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.