Embedding the VM Window inside a Windows application (and possibily script it)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Embedding the VM Window inside a Windows application (and possibily script it)

philippeback
 
Hello VMers.

I would like to see if anybody already had embedded a VM (Windows XP
here) inside a Window application.

I could do that with Tcl/Tk like in here:  (scroll to the bottom)

http://wiki.tcl.tk/%092870

Another possibility was:

http://web.archive.org/web/20050309062352/http://home.t-online.de/home/dshepherd/tkview.htm

Well, you got the idea.

The point would be to be able to get the VM window inside an app like
an activeX/COM object for example (easiest to use).

http://www.sugarweb.com/Web/Squeak/readme.htm appears dead. Anyone
having a copy of what was there?

I saw http://wiki.squeak.org/squeak/459 for talking with the oustide
world afterwards which is good.

And the web browser plugin: http://wiki.squeak.org/squeak/1865

Thanks for the help!

--
Philippe Back
Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg

On 2012-06-19, at 21:00, [hidden email] wrote:

> Hello VMers.
>
> I would like to see if anybody already had embedded a VM (Windows XP
> here) inside a Window application.
> [...]
>
> And the web browser plugin: http://wiki.squeak.org/squeak/1865


The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

philippeback
 
I scavenged the web a bit to find out some sources.

I also managed to install the plugin in Chrome.

So, it shows in about:plugins

But well, it crashes.

Is anyone here having a working source code and dll that I can put in
there for testing?

Then I could start porting this to embed the VM window in another program.

I've looked at the code mind you, but I first want to see this running
so that I can step through with a debugger to get a clue of what's
going on. (I miss self halt...)

TIA
Philippe

2012/6/19 Bert Freudenberg <[hidden email]>:

>
> On 2012-06-19, at 21:00, [hidden email] wrote:
>
>> Hello VMers.
>>
>> I would like to see if anybody already had embedded a VM (Windows XP
>> here) inside a Window application.
>> [...]
>>
>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>
>
> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>
> - Bert -
>
>
>



--
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
[hidden email] | Web: http://philippeback.eu | Blog:
http://philippeback.be

High Octane SPRL
rue cour Boisacq 101
1301 Bierges
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg

On 2012-06-20, at 00:14, [hidden email] wrote:

> I scavenged the web a bit to find out some sources.
>
> I also managed to install the plugin in Chrome.
>
> So, it shows in about:plugins
>
> But well, it crashes.
>
> Is anyone here having a working source code and dll that I can put in
> there for testing?

http://squeakland.org/download/

- Bert -

> Then I could start porting this to embed the VM window in another program.
>
> I've looked at the code mind you, but I first want to see this running
> so that I can step through with a debugger to get a clue of what's
> going on. (I miss self halt...)
>
> TIA
> Philippe
>
> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>
>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>
>>> Hello VMers.
>>>
>>> I would like to see if anybody already had embedded a VM (Windows XP
>>> here) inside a Window application.
>>> [...]
>>>
>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>
>>
>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>
>> - Bert -
>>
>>
>>
>
>
>
> --
> Philippe Back
> Dramatic Performance Improvements
> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
> [hidden email] | Web: http://philippeback.eu | Blog:
> http://philippeback.be
>
> High Octane SPRL
> rue cour Boisacq 101
> 1301 Bierges
> Belgium

Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

philippeback
 
There is no plugin there, only etoys. Is the plugin inside?

2012/6/20 Bert Freudenberg <[hidden email]>:

>
> On 2012-06-20, at 00:14, [hidden email] wrote:
>
>> I scavenged the web a bit to find out some sources.
>>
>> I also managed to install the plugin in Chrome.
>>
>> So, it shows in about:plugins
>>
>> But well, it crashes.
>>
>> Is anyone here having a working source code and dll that I can put in
>> there for testing?
>
> http://squeakland.org/download/
>
> - Bert -
>
>> Then I could start porting this to embed the VM window in another program.
>>
>> I've looked at the code mind you, but I first want to see this running
>> so that I can step through with a debugger to get a clue of what's
>> going on. (I miss self halt...)
>>
>> TIA
>> Philippe
>>
>> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>>
>>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>>
>>>> Hello VMers.
>>>>
>>>> I would like to see if anybody already had embedded a VM (Windows XP
>>>> here) inside a Window application.
>>>> [...]
>>>>
>>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>>
>>>
>>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>>
>>> - Bert -
>>>
>>>
>>>
>>
>>
>>
>> --
>> Philippe Back
>> Dramatic Performance Improvements
>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
>> [hidden email] | Web: http://philippeback.eu | Blog:
>> http://philippeback.be
>>
>> High Octane SPRL
>> rue cour Boisacq 101
>> 1301 Bierges
>> Belgium
>
>



--
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
[hidden email] | Web: http://philippeback.eu | Blog:
http://philippeback.be

High Octane SPRL
rue cour Boisacq 101
1301 Bierges
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg


On 2012-06-20, at 00:24, [hidden email] wrote:

>
> There is no plugin there, only etoys. Is the plugin inside?

It gets installed with Etoys, yes.

After installation, click the "launch" link on a project page. E.g.

        http://squeakland.org/showcase/project.jsp?id=9655

That runs Squeak inside the browser.

- Bert -

> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>
>> On 2012-06-20, at 00:14, [hidden email] wrote:
>>
>>> I scavenged the web a bit to find out some sources.
>>>
>>> I also managed to install the plugin in Chrome.
>>>
>>> So, it shows in about:plugins
>>>
>>> But well, it crashes.
>>>
>>> Is anyone here having a working source code and dll that I can put in
>>> there for testing?
>>
>> http://squeakland.org/download/
>>
>> - Bert -
>>
>>> Then I could start porting this to embed the VM window in another program.
>>>
>>> I've looked at the code mind you, but I first want to see this running
>>> so that I can step through with a debugger to get a clue of what's
>>> going on. (I miss self halt...)
>>>
>>> TIA
>>> Philippe
>>>
>>> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>>>
>>>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>>>
>>>>> Hello VMers.
>>>>>
>>>>> I would like to see if anybody already had embedded a VM (Windows XP
>>>>> here) inside a Window application.
>>>>> [...]
>>>>>
>>>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>>>
>>>>
>>>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>>>
>>>> - Bert -
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Philippe Back
>>> Dramatic Performance Improvements
>>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
>>> [hidden email] | Web: http://philippeback.eu | Blog:
>>> http://philippeback.be
>>>
>>> High Octane SPRL
>>> rue cour Boisacq 101
>>> 1301 Bierges
>>> Belgium
>>
>>
>
>
>
> --
> Philippe Back
> Dramatic Performance Improvements
> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
> [hidden email] | Web: http://philippeback.eu | Blog:
> http://philippeback.be
>
> High Octane SPRL
> rue cour Boisacq 101
> 1301 Bierges
> Belgium



Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

philippeback

Hey, thanks, works perfectly in Chrome.

Now, where can I find the source of NPSqueak.dll and SqueakOCX.dll ?

I have a version of a npsqueak.dll but it isn't the same thing. This
one has been modified and crashes my system.

Clues?
TIA
Phil

2012/6/20 Bert Freudenberg <[hidden email]>:

>
>
> On 2012-06-20, at 00:24, [hidden email] wrote:
>
>>
>> There is no plugin there, only etoys. Is the plugin inside?
>
> It gets installed with Etoys, yes.
>
> After installation, click the "launch" link on a project page. E.g.
>
>        http://squeakland.org/showcase/project.jsp?id=9655
>
> That runs Squeak inside the browser.
>
> - Bert -
>
>> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>>
>>> On 2012-06-20, at 00:14, [hidden email] wrote:
>>>
>>>> I scavenged the web a bit to find out some sources.
>>>>
>>>> I also managed to install the plugin in Chrome.
>>>>
>>>> So, it shows in about:plugins
>>>>
>>>> But well, it crashes.
>>>>
>>>> Is anyone here having a working source code and dll that I can put in
>>>> there for testing?
>>>
>>> http://squeakland.org/download/
>>>
>>> - Bert -
>>>
>>>> Then I could start porting this to embed the VM window in another program.
>>>>
>>>> I've looked at the code mind you, but I first want to see this running
>>>> so that I can step through with a debugger to get a clue of what's
>>>> going on. (I miss self halt...)
>>>>
>>>> TIA
>>>> Philippe
>>>>
>>>> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>>>>
>>>>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>>>>
>>>>>> Hello VMers.
>>>>>>
>>>>>> I would like to see if anybody already had embedded a VM (Windows XP
>>>>>> here) inside a Window application.
>>>>>> [...]
>>>>>>
>>>>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>>>>
>>>>>
>>>>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>>>>
>>>>> - Bert -
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Philippe Back
>>>> Dramatic Performance Improvements
>>>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
>>>> [hidden email] | Web: http://philippeback.eu | Blog:
>>>> http://philippeback.be
>>>>
>>>> High Octane SPRL
>>>> rue cour Boisacq 101
>>>> 1301 Bierges
>>>> Belgium
>>>
>>>
>>
>>
>>
>> --
>> Philippe Back
>> Dramatic Performance Improvements
>> Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
>> [hidden email] | Web: http://philippeback.eu | Blog:
>> http://philippeback.be
>>
>> High Octane SPRL
>> rue cour Boisacq 101
>> 1301 Bierges
>> Belgium
>
>
>
>



--
Philippe Back
Dramatic Performance Improvements
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail:
[hidden email] | Web: http://philippeback.eu | Blog:
http://philippeback.be

High Octane SPRL
rue cour Boisacq 101
1301 Bierges
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg

Etoys uses the official Windows VM, 3.11.4 from http://squeakvm.org/win32/

You would have to look at the svn log to find out the corresponding source version. But the plugin code has not changed in 3 years:

http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/vm/Plugin/

- Bert -

On 2012-06-20, at 01:06, [hidden email] wrote:

>
> Hey, thanks, works perfectly in Chrome.
>
> Now, where can I find the source of NPSqueak.dll and SqueakOCX.dll ?
>
> I have a version of a npsqueak.dll but it isn't the same thing. This
> one has been modified and crashes my system.
>
> Clues?
> TIA
> Phil
>
> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>
>>
>> On 2012-06-20, at 00:24, [hidden email] wrote:
>>
>>>
>>> There is no plugin there, only etoys. Is the plugin inside?
>>
>> It gets installed with Etoys, yes.
>>
>> After installation, click the "launch" link on a project page. E.g.
>>
>>        http://squeakland.org/showcase/project.jsp?id=9655
>>
>> That runs Squeak inside the browser.
>>
>> - Bert -
>>
>>> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>>>
>>>> On 2012-06-20, at 00:14, [hidden email] wrote:
>>>>
>>>>> I scavenged the web a bit to find out some sources.
>>>>>
>>>>> I also managed to install the plugin in Chrome.
>>>>>
>>>>> So, it shows in about:plugins
>>>>>
>>>>> But well, it crashes.
>>>>>
>>>>> Is anyone here having a working source code and dll that I can put in
>>>>> there for testing?
>>>>
>>>> http://squeakland.org/download/
>>>>
>>>> - Bert -
>>>>
>>>>> Then I could start porting this to embed the VM window in another program.
>>>>>
>>>>> I've looked at the code mind you, but I first want to see this running
>>>>> so that I can step through with a debugger to get a clue of what's
>>>>> going on. (I miss self halt...)
>>>>>
>>>>> TIA
>>>>> Philippe
>>>>>
>>>>> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>>>>>
>>>>>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>>>>>
>>>>>>> Hello VMers.
>>>>>>>
>>>>>>> I would like to see if anybody already had embedded a VM (Windows XP
>>>>>>> here) inside a Window application.
>>>>>>> [...]
>>>>>>>
>>>>>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>>>>>
>>>>>>
>>>>>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>>>>>
>>>>>> - Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg

Also note that there are two OCX versions for IE, plus the plugin for Netscape-compatible browsers (Firefox, Chrome, etc). Korakurider (who makes our Windows installers) uses this in his pluginInstall.nsh:

++++ From Here ++++
macro SQUEAK_PLUGIN_INSTALL
;--- manifest, Plugin DLL for IE---
 ${If} $WinVersion == "Vista"
  File "${AssetFolderWin32}\SqueakOCX2.dll"
  RegDLL "$INSTDIR\SqueakOCX2.dll"
 ${ElseIf} $WinVersion == "7"
  File "${AssetFolderWin32}\SqueakOCX2.dll"
  RegDLL "$INSTDIR\SqueakOCX2.dll"
 ${Else}
          File "${AssetFolderWin32}\SqueakOCX.dll"
          RegDLL "$INSTDIR\SqueakOCX.dll"
 ${EndIf}

 File "${AssetFolderWin32}\NPSqueak.dll"
----- To Here -----

- Bert -

On 2012-06-20, at 10:57, Bert Freudenberg wrote:

>
> Etoys uses the official Windows VM, 3.11.4 from http://squeakvm.org/win32/
>
> You would have to look at the svn log to find out the corresponding source version. But the plugin code has not changed in 3 years:
>
> http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/vm/Plugin/
>
> - Bert -
>
> On 2012-06-20, at 01:06, [hidden email] wrote:
>
>>
>> Hey, thanks, works perfectly in Chrome.
>>
>> Now, where can I find the source of NPSqueak.dll and SqueakOCX.dll ?
>>
>> I have a version of a npsqueak.dll but it isn't the same thing. This
>> one has been modified and crashes my system.
>>
>> Clues?
>> TIA
>> Phil
>>
>> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>>
>>>
>>> On 2012-06-20, at 00:24, [hidden email] wrote:
>>>
>>>>
>>>> There is no plugin there, only etoys. Is the plugin inside?
>>>
>>> It gets installed with Etoys, yes.
>>>
>>> After installation, click the "launch" link on a project page. E.g.
>>>
>>>       http://squeakland.org/showcase/project.jsp?id=9655
>>>
>>> That runs Squeak inside the browser.
>>>
>>> - Bert -
>>>
>>>> 2012/6/20 Bert Freudenberg <[hidden email]>:
>>>>>
>>>>> On 2012-06-20, at 00:14, [hidden email] wrote:
>>>>>
>>>>>> I scavenged the web a bit to find out some sources.
>>>>>>
>>>>>> I also managed to install the plugin in Chrome.
>>>>>>
>>>>>> So, it shows in about:plugins
>>>>>>
>>>>>> But well, it crashes.
>>>>>>
>>>>>> Is anyone here having a working source code and dll that I can put in
>>>>>> there for testing?
>>>>>
>>>>> http://squeakland.org/download/
>>>>>
>>>>> - Bert -
>>>>>
>>>>>> Then I could start porting this to embed the VM window in another program.
>>>>>>
>>>>>> I've looked at the code mind you, but I first want to see this running
>>>>>> so that I can step through with a debugger to get a clue of what's
>>>>>> going on. (I miss self halt...)
>>>>>>
>>>>>> TIA
>>>>>> Philippe
>>>>>>
>>>>>> 2012/6/19 Bert Freudenberg <[hidden email]>:
>>>>>>>
>>>>>>> On 2012-06-19, at 21:00, [hidden email] wrote:
>>>>>>>
>>>>>>>> Hello VMers.
>>>>>>>>
>>>>>>>> I would like to see if anybody already had embedded a VM (Windows XP
>>>>>>>> here) inside a Window application.
>>>>>>>> [...]
>>>>>>>>
>>>>>>>> And the web browser plugin: http://wiki.squeak.org/squeak/1865
>>>>>>>
>>>>>>>
>>>>>>> The browser plugin may indeed be your best bet for reference. It starts the VM and redirects its output. You might be able to adapt that code. Possibly the OCX control even just works, or could be made to work easily.
>>>>>>>
>>>>>>> - Bert -
Reply | Threaded
Open this post in threaded view
|

Re: Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg
In reply to this post by philippeback
 
On 2012-06-20, at 17:53, Philippe Back wrote:

> Any C level source code for the nsplugin?

Looks like you missed one of my earlier mails? It's all in svn:

> On 2012-06-20, at 10:57, Bert Freudenberg wrote:
>
> > the plugin code has not changed in 3 years:
> >
> > http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/vm/Plugin/
> >
> > - Bert -