Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to create an html page using C++ .

What I have tried:

I tried using basic html tags it didnt work.
Posted
Updated 5-Jul-18 4:51am
Comments
Patrice T 5-Jul-18 20:45pm    
'I tried using basic html tags it didnt work.'
Show your code.

1 solution

When you open an HTML-file with an text editor or as text you see the HTML-code. This text you must create in your app as a normal string and save it on disk or send it as answer to a request.

A nice article about Embedding a Webserver in your C++ Application.
 
Share this answer
 
Comments
iampradeepsharma 6-Jul-18 4:37am    
I have generated html code with some dummy data in its table .Now I want to create the html file with the actual data which is supplied through C++ code .So I want to write the same html with my data in the C++ .How do I do this ?Can u write a sample just for the simplicity.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900