Re: Early Binding Fails



You probably have problems with your ActiveX registry entries. Please delete
the keys mentioned in the following article:

PRB: DCOMCNFG Reports Multiple Copies of DCOM Server
http://support.microsoft.com/default.aspx?scid=kb;en-us;180525

Even if you don't have multiple copies of the same ActiveX in the registry,
the steps above still apply. They are equivalent to "regsvr32 /u
control.ocx", or "regsvr32 /u <vbide>".

A registry cleaner utility might do this for you if you delete your ActiveX
file, but I am not sure.

Note that the article refers to using DCOMCNFG.EXE in Windows 9x. You can
see the same list of objects by going to Project|References. In newer
versions of Windows, you can see the list of objects in Control
Panel|Administrative Tools|Component Services|Computers|My Computer|DCOM
Config. Typing "DCOMCNFG.EXE" will open "Component Services". You might see
some warnings that some AppID's are not recorded, choose No.

When you run an ActiveX project in the IDE, VB6 creates registry entries and
points them to the following file:

C:\Program Files\Microsoft Visual Studio\VB98\VB6DEBUG.DLL

When you stop the project, the IDE would auto delete these entries, unless
it crashes. When you compile your ActiveX project, VB6 auto create the
registry entries for them and point them to your compiled file. VB6 never
delete these entries, otherwise you can't use your component.

Also, in NT, you have to be a member of Power Users or Administrators in
order to develop and test ActiveX projects. That's because only Power Users
and Administrators can write to HKEY_LOCAL_MACHINE.

INFO: Registry Entries Made by an ActiveX Component
http://support.microsoft.com/default.aspx?scid=kb;en-us;183771




"Jiju Joseph" <JijuJoseph@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2C3A609D-5C3C-4E0C-B106-B6792EE05278@xxxxxxxxxxxxxxxx
> Hi Douglas,
>
> The issue, If I use Early Binding, the COM throws an Error "Error in
> loading DLL", And I did cross verify the DLL's on the working box &
> problem
> box, same version, same size, same creation date.
>
> I even copied the Dll from the working box, still the same issue.
>
> Regards
> Jiju Joseph
>
>
> "Douglas Marquardt" wrote:
>
>> Hi Jiju:
>>
>> You need to be more specific -- exactly what is the error?
>>
>> In any case, because you can create the object but early
>> binding it fails, I suspect that the dll on the problem machine
>> is either not the latest version, or not physically the same one as
>> on the machine the works?
>>
>> Doug.
>>
>>
>> "Jiju Joseph" <JijuJoseph@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:39C6381C-8F5A-4E9A-8E03-FB510239F96F@xxxxxxxxxxxxxxxx
>> > Hi,
>> >
>> > I have a Piece of code as following,
>> > Dim oF As prjFunction.clsFun
>> > Set oF = CreateObject("prjFunction.clsFun")
>> >
>> > Which bombs when running on one machine, If I Declare oF as
>> > Object,
>> > it works fine, (Don't tell me its because of wrong Reference, I am 100%
>> > sure
>> > that the Reference are correct - Because the DLL's deployed on another
>> > machine is working fine.)
>> >
>> > Can anyone tell me whether this is dependent on some windows
>> > files??
>> > What is the reason that the machine is not supporting Early Binding.
>> >
>> > Thanks in Advance
>> > Jiju Joseph
>>
>>
>>


.



Relevant Pages

  • Re: How to debug an ActiveX DLL
    ... debug an ActiveX DLL written in VB6. ... I have written a DLL called xyz.dll which is a plug in for a closed ... I'm a real novice when it comes to ActiveX DLLs, but you might be able to ... Open the ActiveX project in one instance of vb, ...
    (comp.lang.basic.visual.misc)
  • Re: Is it possible to raise a classe event from outside the class?
    ... encapsulation in an ActiveX dll, for the sake of ease of use and upgrade, ... Once it is determined that an app will be running, the ActiveX project can ... give it a your IPC class to catch any later notifications. ...
    (microsoft.public.vb.general.discussion)
  • No ActiveForm wizard in D2005, and also not ActiveX Component wizard!
    ... > Select the tab labeled ActiveX. ... > new ActiveX project. ... > MMC snapins, etc. ... the wizard for creating ActiveX components from VCL ...
    (borland.public.delphi.non-technical)

Quantcast