• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

How can I use a MDI Form in a DLL? How do I pass an arguement?

I have a completed VB app that uses a MDI Form.  I need to make it a DLL but can't because of the MDI.  Is there any way I can get this to work?  The MDI Form is needed because of a scrolling, dynamically allocated window requirement.  I also need to pass an arguement into the program.  In C I'd use the {argv argc} arguements.  How do I do this in VB?
0
eljefe
Asked:
eljefe
1 Solution
 
eljefeAuthor Commented:
Edited text of question.
0
 
KDivadCommented:
Don't know about the MDI form, although you can put all your controls into a picture box on a normal form, add scrollbars and use the scrollbars' change and scroll events to move all the controls around.
To get the parameters passed to your app, use Command$.
0
 
caraf_gCommented:
<nasty>You could of course define your MDI and Child forms in an executable and pass them into the DLL As Object<not recommended>
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
KDivadCommented:
Perhaps, make the app an ActiveX EXE. You should (I think) be able to make the forms normally, and you can also reference the file in the same manner as the DLL.
0
 
AnswerTheManCommented:
ActiveX DLLs are inProcess. MDI forms can't live inProcess.
BUT - you can use MDI forms in ActiveX EXE.
i don't know what your project is about, but you can configure and use ActiveX EXE to behave exactly as a DLL.
0
 
AnswerTheManCommented:
same time, same answer.....:)
0
 
KDivadCommented:
Yep! A bit annoying when that happens, ain't it?
0
 
AnswerTheManCommented:
hmmm...need the Photo-Finish camera...
0
 
KDivadCommented:
I finished first! I just...sorta...lost the...picture, but I swear! I was there first!
Oh, well, points don't pay the bills, so I ain't really worried about it. I'll just have to get some caffeine or something so I can type faster than you!
0
 
AnswerTheManCommented:
well, even between twins - there is one who came out first....he's the OLDER twin...but we say : "the last is best"
(if that's some comfort....)
0
 
KDivadCommented:
Aye, 'tis true. Comfort's not needed, but the attempt is plenty appreciated.

P.S. We also say "he who laughs last, laughs best", so I guess you get the points and I get the humor. I can easily handle that!

Until the next question...I bid you adieu!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now