[Vm-dev] Embedding the VM Window inside a Windows application (and possibily script it)

Bert Freudenberg bert at freudenbergs.de
Wed Jun 20 15:49:08 UTC 2012


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, phil at highoctane.be 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 <bert at freudenbergs.de>:
>>> 
>>> 
>>> On 2012-06-20, at 00:24, phil at highoctane.be 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 <bert at freudenbergs.de>:
>>>>> 
>>>>> On 2012-06-20, at 00:14, phil at highoctane.be 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 <bert at freudenbergs.de>:
>>>>>>> 
>>>>>>> On 2012-06-19, at 21:00, phil at highoctane.be 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 -


More information about the Vm-dev mailing list