|
-
Sep 21st, 2001, 10:15 AM
#1
Thread Starter
New Member
Starting a 16-bit app in its own memory space
I want to load a 16-bit application (exe) from VB5 (with windows NT) and I want the application to run in its own memory space (Virtual Dos Machine, VDM) rather than in the VDM which, by default, is used for all 16-bit apps. I've looked at the CREATEPROCESS API and it looks as if I can achieve this by setting one of the dwcreationflags to CREATE_SEPARATE_WOW_VDM. But if I do this what do I set the lpEnvironment parameter to as if it is null "the new process uses the environement of the calling process". (What is an environment block?).
Specifically, the app is a 16-bit version of Lotus 1-2-3 (release 5). If this is run from a shortcut there is a checkbox which allows a copy to run in its own memory space. But I don't know how to achieve the same thing from VB5. (There may be a way of doing this using SHELL or SHELLEXECUTE).
Any help appreciated, especially any code example.
Thanks.
Last edited by Bannerman; Sep 21st, 2001 at 10:30 AM.
-
Sep 21st, 2001, 12:43 PM
#2
I'm not 100% certain this would be useful to you as I've not actually used (because I've never had the need), but look into the CreateThread API.
I know VB operates in a single thread, but I believe you can programmatically create other threads with this call. Now, the real question is can you create a 16 bit thread? Some of the "Tread Heads" out there should be able to answer that one.
-
Oct 1st, 2001, 09:57 AM
#3
Thread Starter
New Member
I've got somewhere with this by using CreateProcess - see discussion topic "CreateThread / CreateProcess examples?"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|