Thread: Looking at HTML in VC++

  1. #1
    Unregistered
    Guest

    Looking at HTML in VC++

    I want to get the HTML source code off of the internet through VC++. Anyone know how to do this....

    All I want is the text file you get when u right click on a web page and click view source but I need to have VC++ go out and grab it.

    Brett

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Ha Ha Ha Ha Ha Ha Ha
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Unregistered
    Guest

    WTF

    Why are u laughing?

  4. #4
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    snicker... um.. may i ask why you want to do such a thing?
    What is C++?

  5. #5
    Unregistered
    Guest

    reply

    well I a list of web pages with customer information on them and I wish to go through each list and copy the information into a database.

  6. #6
    Unregistered
    Guest

    opps

    err I have a list of web sites

  7. #7
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    but why with MVC++?

    Just make some folders and organize them

    Im still not exactly sure what your tryin to accomplish
    What is C++?

  8. #8
    Unregistered
    Guest
    there are about 3000 pages and none of them are on my computer... .i need to get the source code for the web pages and then read through them with vc++.. I do not know any other way to get the web pages.

  9. #9
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    are you just wanting source or get source and make the source turn into a webpage?
    What is C++?

  10. #10
    Unregistered
    Guest
    i just want the source. I will remove all the html tags once i get it.

  11. #11
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    so you want text only versions of the web pages?

    You could just copy the source off of the web page and save it in anotepad...
    What is C++?

  12. #12
    Unregistered
    Guest
    3000 pages man i want VC to do that for me.... dont u know the command in c?

  13. #13
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    oh dear...
    you mean how would you make a program to do that?


    I have no idea....

    see i thought you wanted to look at the source in the MVC++ ide..
    What is C++?

  14. #14
    Registered User
    Join Date
    Apr 2002
    Posts
    39
    Ok, I'm not sure if I've understood your problem correctly. Probably this is what you are trying to do:

    You want to fetch the HTML source of some webpages hosted onto a remote machine.

    In this case, I'd open a socket(), connect() it to the remote machine's web-page-server's port. Then, in a loop: send() the GET request for the pages, do a recv(). So, I'll be having each page received in a buffer.

    This is the regular C approach. Since you have the option of using C++, you could use customised classes for doing this. I don't know much about them.

    Hope this helps.
    <Signature
    name="Ruchikar"
    quote="discussions are forgotten, only code remains"/>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] Displaying HTML in an application.
    By pc2-brazil in forum Windows Programming
    Replies: 2
    Last Post: 12-17-2008, 01:45 AM
  2. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  3. Writing an HTML Preprocessor
    By thetinman in forum C++ Programming
    Replies: 1
    Last Post: 09-17-2007, 08:01 AM
  4. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 06:32 AM