Results 1 to 3 of 3

Thread: Starting a 16-bit app in its own memory space

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4

    Question 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width