Thread: HTML Support?

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001

    Question HTML Support?

    I made a program, NetStudio, and I want to make a preview browser. When I load an HTML file, how do I show the result of it in the preview window?

    NOTE: I already started the preview browser!


    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    You'll have to parse the html file and display it. If you can use MFC, CHtmlView will make your life easier.

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    yeah, there's not much more you can do than prse it, and take zen's advice about trying to mix in CHtmlView if you a search on MSDN on how to use it. You could also just launch it in the person's default browser. Just save the file in a temp location, and launch the browser using ShellExec() (I think that's the one...if it's not, someone correct me) with the tmp HTML page as an argument to the browser program (like "iexplore.exe tmp001.html")

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  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. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. Dev-cpp - compiler options
    By tretton in forum C Programming
    Replies: 7
    Last Post: 01-06-2006, 06:20 PM