Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 8:56
CaesarCZ5-Jul-02 8:56 
GeneralRe: Listview redraw problems Pin
[James Pullicino]5-Jul-02 11:06
[James Pullicino]5-Jul-02 11:06 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 12:58
CaesarCZ5-Jul-02 12:58 
GeneralRe: Listview redraw problems Pin
CaesarCZ5-Jul-02 23:45
CaesarCZ5-Jul-02 23:45 
GeneralRe: Listview redraw problems Pin
Shog96-Jul-02 17:11
sitebuilderShog96-Jul-02 17:11 
GeneralRe: Listview redraw problems Pin
CaesarCZ7-Jul-02 0:18
CaesarCZ7-Jul-02 0:18 
GeneralRe: Listview redraw problems Pin
Shog97-Jul-02 8:24
sitebuilderShog97-Jul-02 8:24 
GeneralInet help Pin
5-Jul-02 6:36
suss5-Jul-02 6:36 
I've been trying to make a very basic Inet program that posts data to a webpage. However, I can't get anything to work. I'm not sure if it is the program or the network I'm on. I'm on a shared internet connection through a switch. Here is what I have so far (excluding windows and error handling code)...


//======================================
HINTERNET h_open, h_connect, h_http;

static char agent[] = "Test Agent";
static char server[] = "http://userpages.umbc.edu";
static char action[] = "POST";
static char file[] = "/~kdvors1/cgi-bin/test.cgi";
static char data[] = "var1=test";
static char version[]= HTTP_VERSION;

DWORD type = INTERNET_OPEN_TYPE_PRECONFIG;
DWORD service = INTERNET_SERVICE_HTTP;
DWORD port = INTERNET_DEFAULT_HTTP_PORT;

BOOL result;

h_open = InternetOpen(agent,type,NULL,NULL,0);

h_connect = InternetConnect(h_open,server,port,NULL,NULL,service,0,NULL);

h_http = HttpOpenRequest(h_connect,action,file,version,NULL,NULL,0,NULL);

result = HttpSendRequest(h_http,NULL,NULL,data,strlen(data));

if(result)
{
MessageBox(NULL, "works", "", MB_OK);
}

InternetCloseHandle(h_http);
InternetCloseHandle(h_connect);
InternetCloseHandle(h_open);
//======================================

I even tried copying the example that msdn gave for using GET. That didn't work either, so that led me to believe that it was my network. If anyone could tell me how to make this work for a shared connection or how to fix it if something is wrong I would be very greatful.

Thanks in advance
-Firecow
GeneralRe: Inet help Pin
Todd Smith5-Jul-02 6:52
Todd Smith5-Jul-02 6:52 
GeneralRe: Inet help Pin
5-Jul-02 6:59
suss5-Jul-02 6:59 
GeneralRe: Inet help Pin
Hanzo25-Oct-02 18:58
Hanzo25-Oct-02 18:58 
QuestionWin32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 5:51
generic_user_id5-Jul-02 5:51 
AnswerRe: Win32, ATL, WTL or MFC, which route to take? Pin
Michael Dunn5-Jul-02 8:19
sitebuilderMichael Dunn5-Jul-02 8:19 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 11:48
generic_user_id5-Jul-02 11:48 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket5-Jul-02 12:07
loket5-Jul-02 12:07 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
Michael Dunn5-Jul-02 12:08
sitebuilderMichael Dunn5-Jul-02 12:08 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 23:29
generic_user_id5-Jul-02 23:29 
AnswerRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket5-Jul-02 12:01
loket5-Jul-02 12:01 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id5-Jul-02 23:34
generic_user_id5-Jul-02 23:34 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 1:52
loket6-Jul-02 1:52 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:32
generic_user_id6-Jul-02 2:32 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
generic_user_id6-Jul-02 2:50
generic_user_id6-Jul-02 2:50 
GeneralRe: Win32, ATL, WTL or MFC, which route to take? Pin
loket6-Jul-02 2:55
loket6-Jul-02 2:55 
GeneralProcessing GPS data in C++ Pin
5-Jul-02 4:41
suss5-Jul-02 4:41 
Generaldisabled menu item at start Pin
ns5-Jul-02 3:36
ns5-Jul-02 3:36 

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.