c++ builder html displaying

This is a discussion on c++ builder html displaying within the C++ Programming forums, part of the General Programming Boards category; I have an application that recieves lines of html code e.g. <HTML><BODY BGCOLOR="#400040"><FONT COLOR="#00ff80" FACE="Arial" SIZE=1>hello world</FONT></BODY></HTML> I need a ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    2

    Post c++ builder html displaying

    I have an application that recieves lines of html code e.g. <HTML><BODY BGCOLOR="#400040"><FONT COLOR="#00ff80" FACE="Arial" SIZE=1>hello world</FONT></BODY></HTML>
    I need a component like a Memo that can have these lines added to it and displayed like a html file.
    Does anyone know of a component that could do this or if there is a way with anything that commes with c++ builder 5

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Not quite sure what you're asking, but this writes a Html file:
    Code:
    #include <fstream.h>
    
    int main()
    {
       ofstream File;
       File.open("MySite.html", ios::out);
       if(File.fail())
       {
          return 0;
       }
    
       File << "<HTML>" << endl;
       File << "<HEAD>" << endl;
       File << "<TITLE>My own homepage</TITLE>" << endl;
       File << "</HEAD>" << endl;
       File << "<BODY>" << endl;
       File << "<H1>Hello world!</H1>" << endl;
       File << "</BODY>" << endl;
       File << "</HTML>" << endl;
    
       File.close();
       return 0;
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    2

    Unhappy

    I've used that instead of the TStringList SaveToFile(); methos and it works the same. My problem is not writing the file but displaying it in my app using visual component library ways not win api. Does anyone know of a control that can do this. If you dont know what I'm talking about then it's RAD development using Borland C++ Builder.
    Thanks for nay help

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, 12: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. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 10:23 PM
  4. displaying the contents of an html file in a table
    By confuted in forum Tech Board
    Replies: 3
    Last Post: 08-02-2003, 07:50 PM
  5. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 05:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21