CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Posts
    1

    how to query data from website using VC?

    I want to query some datum from a website,so I need a program to read data from a .csv file, and assign the value to a text control which including in the webpage,and then submit the data automatically(there's a submmit button in the webpage),at last,the query results will be written in the same .csv file.
    I don't know how to assign data to text controland let the data sent automatically.

  2. #2
    Join Date
    Jun 2006
    Posts
    645

    Re: how to query data from website using VC?

    I am not so sure about the data you are talking about....Is it the HTML content on the web page displayed in the browser or a file object on the server or a stream....??? But to put the data from a .csv file to the Text box, you have to assign a CString member to the text box and get the contents of the .csv file in it. You then will have to display the data in the text box. So first assign a control (CTextBox) variable to the text box and then display the data from CString member in the format you want. Ofcourse, I am assuming that you are using MFC.
    Regards,
    Bhushan

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    894

    Re: how to query data from website using VC?

    Yes, the question is not very clear but it sounds that the OP needs to use sockets to read data from a web server (HTTP protocol, port 80) pretty much like a web browser does, process it the way he wants and write it back to a web server using sockets as well. Here's some basic info and a sample.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured