Results 1 to 3 of 3

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

  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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4
    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
  •  



Click Here to Expand Forum to Full Width