Comphtml supports C++ calls

Discussion to talk about software related topics only.
roland.ames

Re: Comphtml supports C++ calls

Post by roland.ames »

I have looked at the bargraph example, it shows how to generate a gif at run time.

I currently have a BMP already generated in RAM (a previous version of this app sends the BMP file via TFTP to a PC), but now I want to view the same image via a browser. I could translate the BMP to a GIF, but I was hoping that I could just use the already generated BMP file.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Comphtml supports C++ calls

Post by pbreed »

Not sure if you can embed BMP files in an HTML document...
if you can just serve up the file with the proper MIME type...

.bmp 0 image/bmp


Take a look at the mydoget in the bargraph example for how to serve up a particular file type dynamically in the web server...

Paul
roland.ames

Re: Comphtml supports C++ calls

Post by roland.ames »

I am a newcomer to html / http. I am finding that the comments / documents for the examples assume a level of knowledge that I don't have. Can anyone recommend an intro to this topic to bring me up to the point of being able to understand the web examples, leaving ajax / flash / java aside for now I want to start with a basic understanding of the http / html stuff.

Roland
roland.ames

Re: Comphtml supports C++ calls

Post by roland.ames »

http://forum.embeddedethernet.com/viewt ... f=5&t=1650

was never answered. Can anyone explain what the return values for a http_gethandler should be

in the examples of MyDoGet(), sometimes the return value is 0 sometimes it is 1. what is the difference between these two cases, are there any other possible cases?
dpursell
Posts: 20
Joined: Thu Aug 05, 2010 3:15 pm

Re: Comphtml supports C++ calls

Post by dpursell »

roland.ames wrote:I am a newcomer to html / http. I am finding that the comments / documents for the examples assume a level of knowledge that I don't have. Can anyone recommend an intro to this topic to bring me up to the point of being able to understand the web examples, leaving ajax / flash / java aside for now I want to start with a basic understanding of the http / html stuff.

Roland
When I deal with any sort of web programming my main reference is usually http://www.w3schools.com

-David
Post Reply