borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Run-time Control Loading)Next Topic (How to scroll down a VSFlexgrid?) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : VB CallBack
Poster Message
Deshin13
Level: Guest


icon VB CallBack

Hi PPL

I have a problem with referencing.

I have one MDI Form that creates and instance of my DLL(Name = cTrans) and loads it full of collections. I need to pass the this reference to other DLLs that I open from my MDI form but the problem is that I have one ActiveX DLL Project that does not open directly from my MDi form, it first passes through about 5 DLLs(maybe more) before my DLL is actually opened.

I need to pass this DLL a reference of my cTrans DLL. Can I use a call back or is there any way for me to pass the reference of this DLL to the other DLL with having to pass the reference through those other 5 projects?

26-09-2003 at 07:43 AM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: VB CallBack

Hi Deshin,

First, I would advise that you examine the structure of your application. COM applications are supposed to be as self-contained as possible, and it looks like the links between your DLLS/APPs are over-complicated.

There is no way of setting a reference to a DLL that is 5 levels deep without using EVENTs, Call-backs (which are just glorified events, anyway in vb), or passing the parameters through all 5 levels, or passing the DLL back to your main application (again, through all 5 levels).

My recommendation would be to restructure the dependencies of your projects that cause these 5 levels, or move the classes of the problematic DLL into an existing DLL.

Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

09-01-2004 at 03:59 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : VB CallBack
Previous Topic (Run-time Control Loading)Next Topic (How to scroll down a VSFlexgrid?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder