Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 5:55
KaЯl18-Sep-03 5:55 
GeneralRe: Enable/Disable items in main menu Pin
Steve S18-Sep-03 6:30
Steve S18-Sep-03 6:30 
GeneralRe: Enable/Disable items in main menu Pin
KaЯl18-Sep-03 6:35
KaЯl18-Sep-03 6:35 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 7:21
b_girl18-Sep-03 7:21 
GeneralRe: Enable/Disable items in main menu Pin
b_girl18-Sep-03 7:14
b_girl18-Sep-03 7:14 
Questionhow to code an edit for database? Pin
coda_x18-Sep-03 4:20
coda_x18-Sep-03 4:20 
AnswerRe: how to code an edit for database? Pin
vcplusplus18-Sep-03 6:09
vcplusplus18-Sep-03 6:09 
GeneralGetFTPConnection and socket()- MFC one fails Pin
ns18-Sep-03 4:10
ns18-Sep-03 4:10 
This is puzzling me. With the MFC code, I get : cant connect, but the socket () code connects fine (both to same address of my secondary machine). So since I want to use the MFC GetFile() functionality and dont know the equiv using the socket() method, I am stuck. What should i look at? BTW the MFC code works fine with the microsoft ftp address, so I know the codes okay. But if it were something weird about my 2nd machines IP address, then the socket() code should not connect either! But it does!

Here is the one that cant connect:

m_pFtpConnection = InternetSession.GetFtpConnection ("130.109.184.xxx" );


and this one works:

dstsockaddr.sin_addr.s_addr = inet_addr("130.109.184.xxx");

// port portion of the adress

dstsockaddr.sin_port = htons(PORT);

// address family as Internet

dstsockaddr.sin_family = AF_INET;



dstsocket = socket(AF_INET, SOCK_STREAM, 0);

if (dstsocket == -1)
    perror("socket creation failure");


status = connect(dstsocket, (struct sockaddr*) &dstsockaddr, sizeof(dstsockaddr));


Thanks,
ns
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Jagadeesh VN18-Sep-03 4:24
Jagadeesh VN18-Sep-03 4:24 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
ns18-Sep-03 4:30
ns18-Sep-03 4:30 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Steve S18-Sep-03 4:53
Steve S18-Sep-03 4:53 
GeneralRe: GetFTPConnection and socket()- MFC one fails Pin
Jagadeesh VN18-Sep-03 7:32
Jagadeesh VN18-Sep-03 7:32 
GeneralSerial Comm. / virtual COM-Port / WirteFile never return Pin
Joerg Hoffmann18-Sep-03 4:09
Joerg Hoffmann18-Sep-03 4:09 
GeneralRe: Serial Comm. / virtual COM-Port / WirteFile never return Pin
Stuart van Weele18-Sep-03 4:32
Stuart van Weele18-Sep-03 4:32 
GeneralProperty Tabs related Pin
Shah Shehpori18-Sep-03 2:34
sussShah Shehpori18-Sep-03 2:34 
GeneralRe: Property Tabs related Pin
jhwurmbach18-Sep-03 2:54
jhwurmbach18-Sep-03 2:54 
Generalusing socket(), want to download files Pin
ns18-Sep-03 2:19
ns18-Sep-03 2:19 
GeneralRe: using socket(), want to download files Pin
Steve S18-Sep-03 2:38
Steve S18-Sep-03 2:38 
GeneralRe: using socket(), want to download files Pin
ns18-Sep-03 3:14
ns18-Sep-03 3:14 
GeneralRe: using socket(), want to download files Pin
Jagadeesh VN18-Sep-03 3:01
Jagadeesh VN18-Sep-03 3:01 
GeneralAfter dynamic creation of a control... Pin
Zizilamoroso18-Sep-03 1:23
Zizilamoroso18-Sep-03 1:23 
GeneralRe: After dynamic creation of a control... Pin
BadJerry18-Sep-03 1:40
BadJerry18-Sep-03 1:40 
GeneralRe: After dynamic creation of a control... Pin
BadJerry18-Sep-03 1:47
BadJerry18-Sep-03 1:47 
GeneralRe: After dynamic creation of a control... Pin
Steve S18-Sep-03 1:43
Steve S18-Sep-03 1:43 
GeneralCDTPicker Class Pin
murali_utr18-Sep-03 1:14
murali_utr18-Sep-03 1:14 

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.