PDA

Click to See Complete Forum and Search --> : Run Separate App (Process) in MDI


dw85745
Dec 30th, 2003, 12:36 PM
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.

cjqp
Jan 1st, 2004, 06:08 PM
Why not use the SetParent API?

cjqp

dw85745
Jan 2nd, 2004, 09:02 AM
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.

cjqp
Jan 2nd, 2004, 10:47 AM
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?
******

dw85745
Jan 7th, 2004, 01:05 PM
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

cjqp
Jan 7th, 2004, 01:11 PM
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