News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

html display

Started by dougiem, October 10, 2006, 04:52:54 AM

Previous topic - Next topic

dougiem

This displays an html page in a window. It has minimal code, using atl.dll.
With a little bit more work it could do all sorts of tricks!

dougiem

[attachment deleted by admin]

hutch--

Doug,

It works fine on my win2k box.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Brad

Thanks for the code! Doug :)

you havn't by chance created a browser plugin as yet?

Thx, B

modchip

Thanks! I've been looking for this! Thanks again!

dougiem

brad,
there's a few button commands you can use to make a simple browser,
                 ole32 pIweb2obj,offset IWebBrowser2_GoBack
                 ole32 pIweb2obj,offset IWebBrowser2_GoForward
                 ole32 pIweb2obj,offset IWebBrowser2_Navigate
I just liked the idea of having a fancy looking window for my apps. I'm glad it's of some use.

dougiem

PBrennick

brad,
I was surprised to see that this lite browser supports JAVA.  Other implimentations did not. I can use this browser to make applets look like applications.  I put one together for others to see. Attached is Mahjongg.

Paul


[attachment deleted by admin]
The GeneSys Project is available from:
The Repository or My crappy website

dougiem

PBrennick,
            I was dlighted to see the use you put to the masm app. (How do i play it ?)
I hope you domt mind, i have introduced a 'resource to file' module, which makes the application a
stand alone. Although in the examples we both have shown, I think it should be pointed out that if you go
web wise, you should be aware of your security. great stuff

ps your site - great!

dougiem
attach:mahjongg2.zip

dougiem

sorry attachment !!!!

[attachment deleted by admin]

PBrennick

dougiem,
Here is the original html file that I wrote for the game.  Scroll down to see the directions. Get the attachment.

Paul


[attachment deleted by admin]
The GeneSys Project is available from:
The Repository or My crappy website

PBrennick

Dougiem,
Loading them as resources is a good idea. It did not occur to me because they are so small. I moved the program to a separate directory and when I ran it, I noticed that you unbundle the jar into the html directory but not the html file. Why is that?
Paul
The GeneSys Project is available from:
The Repository or My crappy website

dougiem

ah !  Paul,
             The paths were not meant to be relative. In my prog, it assumes "THIS DIR"
to point to : change:       lline :         pHtml              db "/html/Mahjongg.html",0                      to yours

dougiem  cheers!

PBrennick

Dougiem,
There is no difference between the two lines.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

dougiem

sorry, I had spelt the file wrong in : WM_CLOSE
                       invoke DeleteFile,SADD("html/mahjongg.jar")
so it cannot subsequently delete the dir

PBrennick

ahhh. That will be a lot cleaner.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Mark_Larson


  thanks for the code!  I had actually had just started working on doing the same thing yesterday so you saved me a lot of time :)

BIOS programmers do it fastest, hehe.  ;)

My Optimization webpage
htttp://www.website.masmforum.com/mark/index.htm