Re: Strange problem when using a class module in VBScript



> I have always had the project set to No Compatablity and never had any
> problem.

That's "fine" in your case, but each time you try to replace the DLL, you
have to unregister the old one before replacing it, otherwise you will have
problems. This only work with late binding(by using CreateObject), but not
with early binding(Selecting the DLL/OCX as a reference or control in
another project, because it's GUID based, not object name based like
CreateObject).




"Ragnar Midtskogen" <ragnar_ng@xxxxxxxxxxxxxx> wrote in message
news:O7keVINuFHA.2568@xxxxxxxxxxxxxxxxxxxxxxx
> Thank you Chris,
>
> I have always had the project set to No Compatablity and never had any
> problem.
> I have probably updated this dll a couple of dozen times and it has run
> fine on three different servers, starting with NT4 and progressing to
> 2003.
> It is called from some VBScript files to run some data feeds once a day.
>
> It looks like I will have to stay with the debug version and just run it
> as a regular exe file.
> I don't want to start messing with this compatability issue, the dll
> contains two other classes that is used by a Web site so I can't afford to
> take chances with that.
>
> I think we should all be using UNIX/LINUX.
>
> Ragnar
>
> "Veign" <NOSPAMinveign@xxxxxxxxx> wrote in message
> news:ednv13LuFHA.3660@xxxxxxxxxxxxxxxxxxxxxxx
>> Problem: Binary compatibility issues
>>
>> Read on: http://www.vbsight.com/BinaryComp.htm
>>
>> Help with: http://www.vbsight.com/ComGuard.htm
>>
>> --
>> Chris Hanscom - Microsoft MVP (VB)
>> Veign's Resource Center
>> http://www.veign.com/vrc_main.asp
>> --
>>
>>
>> "Ragnar Midtskogen" <ragnar_ng@xxxxxxxxxxxxxx> wrote in message
>> news:e9Zz9mLuFHA.4080@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hello,
>>>
>>> I have an ActiveX dll created in VB6, which contains a class module.
>>> I recently updated the class module in it and now when I try to run the
>> code
>>> from a VBScript I get an error 429 'ActiveX can't create object' for the
>>> line with the CreateObject call..
>>>
>>> The dll is also called from Web pages so I would have to stop IIS to
>> replace
>>> the dll with the new version, so for debugging purposes I included the
>> class
>>> module in a VB Standard EXE application. When I compiled the debug app I
>> got
>>> some kind of message about the class module but I clicked OK too fast so
>>> I
>>> did not read the message. Everything worked fine so I did not hink more
>>> about it.
>>> When through debugging I copied the class module back into my dll, and
>>> now
>> I
>>> get this error.
>>> Looking through the dll project I noticed that the Instance property for
>> the
>>> class module is missing, could that be the problem?
>>>
>>> I am not sure how to restore the property so I am going to try bringing
>> the
>>> updated class module into the original version of the project by copy
>>> and
>>> paste. Is there a simpler way?
>>>
>>> Any help would be appreciated.
>>>
>>> Ragnar
>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Strange problem when using a class module in VBScript
    ... I have always had the project set to No Compatablity and never had any ... I have probably updated this dll a couple of dozen times and it has run fine ... >> I have an ActiveX dll created in VB6, which contains a class module. ... >> Looking through the dll project I noticed that the Instance property for ...
    (microsoft.public.vb.general.discussion)
  • Re: Icon in system tray doesnt process mouse clicks for a dll form
    ... In order to make your DLL reusable (after all, that is one of the main ... If this DLL is only ever going to be used by this ONE app, ... can only raise events from a class module. ... needs a reference to the class module. ...
    (microsoft.public.vb.winapi)
  • Re: Icon in system tray doesnt process mouse clicks for a dll form
    ... > In order to make your DLL reusable (after all, that is one of the main ... > in your main app cleaner since the events will occur in that app. ... > subclassing) is that you can only raise events from a class module. ... > reference to the class module. ...
    (microsoft.public.vb.winapi)
  • Re: ZIP code module without DLL dependencies???
    ... but those will require installing at least some version of WinZip. ... without having to register the dll? ... possible creation of a 'zip' module / class module. ...
    (comp.databases.ms-access)
  • Re: Strange problem when using a class module in VBScript
    ... > Looking through the dll project I noticed that the Instance property for ... When you run an ActiveX project in the IDE, ... > I have an ActiveX dll created in VB6, which contains a class module. ...
    (microsoft.public.vb.general.discussion)

Loading