Re: Program does not invoke methods of ActiveX-DLL
- From: "Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 10:28:24 -0700
> Unfortunately i'm still out of luck. Switching to Binary-Compatibility
> and defining a compatibility-dll has the effect that I cannot compile the
> whole project-group at once. I get an Error that a passing a UDT, that
Compiling groups is another story (I never do that either). If everything's
set up correctly, there should be no reason to compile an entire group,
unless you've made changes to each component in that group. Personally, I
load and compile one thing at a time. Groups are for debugging only here.
> was defined in one dll, cannont be passed by reference to a function
> declared in that dll.
Try loading that component by itself. When you load a group, VB works very
hard to resolve everything back into it's "source code" form. It can get
confused easily.
> Is there a problem with ActiveX-DLL referencing other ActiveX-DLLs?
If you have a dll called DLLA and another called DLLB, DLLA can only
reference DLLB if DLLB doesn't contain a reference to DLLA... aka circular
references. They aren't allowed in VB at all. People "sneak" them in once in
a while, but if VB knows they're there, it will complain and won't allow you
to compile.
Other than that, no... you shouldn't have a problem referencing other DLLs.
That's a good thing since those DLLs reference other DLLs themselves (the VB
Runtime DLLs)
If you absolutely want to build an entire group at once, you'll need to exit
VB and open that group (vbg) file in Notepad and make sure that the projects
are getting loaded in the correct order. If you have an EXE that needs a DLL
called DLLA and that DLL needs one called DLLB, you'll have to make sure
DLLB is loaded first, followed by DLLA and finally the EXE. That's loading
the group in "reverse dependency order" and insures that each component gets
the final interface IDs for any components it requires (much easier to load
and build one at a time, using groups for debugging only)
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Sign up now to help keep VB support alive - http://classicvb.org/petition
Please keep all discussions in the groups..
.
- Follow-Ups:
- Program does now invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Re: Program does not invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Program does now invoke methods of ActiveX-DLL
- References:
- Program does not invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Re: Program does not invoke methods of ActiveX-DLL
- From: Dermot Hardy
- Re: Program does not invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Re: Program does not invoke methods of ActiveX-DLL
- From: Ken Halter
- Re: Program does not invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Re: Program does not invoke methods of ActiveX-DLL
- From: Ken Halter
- Re: Program does not invoke methods of ActiveX-DLL
- From: Felix Obermaier
- Program does not invoke methods of ActiveX-DLL
- Prev by Date: Re: Program does not invoke methods of ActiveX-DLL
- Next by Date: VB Application Migrating from Workstation on XP to Server running
- Previous by thread: Re: Program does not invoke methods of ActiveX-DLL
- Next by thread: Re: Program does not invoke methods of ActiveX-DLL
- Index(es):
Relevant Pages
|