Reply to Re: HTML content in a dll file or EXE

Your name:

Reply:


Posted by rf on 10/05/51 11:30

rf wrote:

> keerthana_m_2003@yahoo.com wrote:
>
>> I have designed a web page containing many pages and figures. I want to
>> make a single dll file or EXE file. I want one single html file which
>> can extract the pages from these exe or dll files and display in
>> internet explorer. How can this be done.
>
> It can't be done.

<damn>
Bloody Ell. Wrong again. Hate it when that happens.
Talk about thinking *within* the square> It can be done, and quite easily.
</damn>

I have been doing exactly this sort of thing for ages, just didn't think it
all the way through, probably because this is an HTML group, not a
microsoft.whatever group. Only when I revisited one of my applications
(that uses HTML pages (via the MSHTML interface) instead of windows dialog
boxes) to do some maintainance did the pennies drop. Just didn't think
about using a browser to do this :-)

<caution>
This is microsoft only and is going into OT land, talking about building
windows programs etc and will *NOT* allow you to hide your code.
</caution>

Build yourself an .exe (or a .dll) with each of your HTML pages as a
resource within the .exe. If there are any images or whatever used in the
pages then they will also have to be included as a resource. Name all your
resources with a *string* name, not a resource ID. Here is a bit of my
Visual Studio IDE with a couple of pages of HTML, an odd image and,
realistically, a .CSS file:
http://users.bigpond.net.au/rf/screenshot/resource.gif
Note the "s around the ID in the properties pane. This is a *string*
resource name.

BTW roo.jpg can of course be also viewed here:
http://users.bigpond.net.au/rf/roo.jpg

The only thing that *needs* to be in the .exe are the resources, unless the
..exe needs to bahave like normal programs and actually *do* something.

How to access the resourses?

IE has this proprietory protocal calles res (of course).

Say, for instance, your .exe is called
c:\roof\debug\roof.exe
as mine is and your HTML page is company.html, as mine is.

Point your (IE only) browser at
res://c:\roof\debug\roof.exe/company.html

(take not if the /'s and the \'s in the above).

Piece of cake.

Oh, by the way, this will *NOT* stop anybody from stealing the code, or did
I already state this? :-)

--
Cheers
Richard.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация