Results 1 to 6 of 6

Thread: Run Separate App (Process) in MDI

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Run Separate App (Process) in MDI

    VB-Helper deserves credit for providing the basic example to accomplish this.

    This works well with exe's (such as notepad, calc) created with
    C++. It does not seem (I haven't solved yet) to work correctly
    with VB created exe's. MAYBE because of the need for the
    runtime files.
    Attached Files Attached Files
    Last edited by dw85745; Dec 31st, 2003 at 11:32 AM.

  2. #2
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392
    Why not use the SetParent API?

    cjqp

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    That's what this uses.

    If you can shed any light on why won't work with VB compiled
    files I'd like to know.


    Attached is another zip.

    When looking at my copy yesterday it appeared several files were missing so don't know if the 1st uploaded one is good.
    Attached Files Attached Files

  4. #4
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392
    Yeah, it wasn't uploaded right, probably why I never saw the SetParent API -- I'll see if VB compiled apps (I can test with VB4 and VB5) will work with it.

    cjqp

    *EDIT*
    I've tested it now, worked fine with VB4, but when I tried a VB5 app it opened outside the MDI parent window.
    Is this what you're getting?
    ******
    Last edited by cjqp; Jan 2nd, 2004 at 11:57 AM.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Hi cjqp:

    Yes, opens outside of MDI. Have tried to manually reparent
    using both MDI parent and MDI client handles with no luck.

    What VB is doing different than MSDN docs on reparenting is unknown to me.


    David

  6. #6
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392
    K, I don't understand why this happens but it is happening to me everytime. There must be a reason behind the madness, even if it was an accidental one.

    cjqp

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