Re: OLE automation with VC++ and VB6
From: ELMystic (ELMystic_at_discussions.microsoft.com)
Date: 07/07/04
- Next message: Igor Tandetnik: "Re: What #includes are needed to implement a Column Handler?"
- Previous message: ELMystic: "RE: OLE automation with VC++ and VB6, error using CreateDispatch"
- In reply to: Alexander Nickolov: "Re: OLE automation with VC++ and VB6"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 13:37:01 -0700
Alexander,
We were able to determine that the path in the registry key for the TypeLibrary of the visual basic component was not being updated when the application was installed/uninstalled/reinstalled. Thus, it is definitely an installation issue. Thank you for your suggestions and your time.
ELMystic
"Alexander Nickolov" wrote:
> The wrong path is definitely an installation problem. I don't
> know 100% how VB does it, so you may want to ask in a
> VB-centric group. In a C++-built component, the registration
> code is usually part of the component itself. Then again, your
> outer installation package might be written to override these
> or not call them at all...
>
> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD
> email: agnickolov@mvps.org
> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================
>
> "ELMystic" <ELMystic@discussions.microsoft.com> wrote in message
> news:5F5E0010-FD6B-421C-98FF-8BF561D9C9A7@microsoft.com...
> > When looking at the registry keys for the object being created with
> CreateDispatch, its LocalServer32 path still points to the old directory,
> not the new custom directory. Do you know of a good resource for more
> information about installing/uninstalling and how it relates to the
> registry?
> >
> > There were no missing drives. However, we have been able to duplicate the
> problem by uninstalling the application from a working machine and
> attempting to reinstall into a custom directory. Could that indicate a
> problem in the installation package?
> >
> > >
> > >
> > > "Alexander Nickolov" wrote:
> > >
> > > > Verify there are no removable drives on the system path variable.
> > > > Same thing about missing shares.
> > > >
> > > > --
> > > > =====================================
> > > > Alexander Nickolov
> > > > Microsoft MVP [VC], MCSD
> > > > email: agnickolov@mvps.org
> > > > MVP VC FAQ: http://www.mvps.org/vcfaq
> > > > =====================================
> > > >
> > > > "ELMystic" <ELMystic@discussions.microsoft.com> wrote in message
> > > > news:12B89AD1-F64B-4EF1-B129-69558E696E8B@microsoft.com...
> > > > > Greetings,
> > > > > I have a Visual C++ 6.0 application that instantiates a Visual Basic
> 6.0
> > > > application using the COleDispatchDriver::CreateDispatch function from
> the
> > > > MFC Library with the following signature.
> > > > > BOOL CreateDispatch(
> > > > > LPCTSTR lpszProgID,
> > > > > COleException* pError = NULL
> > > > > );
> > > > >
> > > > > After this call is made on a windows 2000 SP4 machine, I get an
> exception
> > > > of ERROR_NOT_READY (SCODE: 80070015) and both applications fail. I
> have
> > > > checked the registry and verified that the CLSID and ProgID match and
> that
> > > > the path to the VB application is correct.
> > > > >
> > > > > The applications have been successfully deployed on other 2000 and
> XP
> > > > machines. The behavior described above has occurred on two Win2000
> machines
> > > > to date. The machines are at different sites and have no connection
> to one
> > > > another at all.
> > > > >
> > > > > I am at a loss as to why this would happen on seemingly random
> machines.
> > > > If anyone has any suggestions, or ideas on what to look for next, I
> would
> > > > appreciate it.
> > > > >
> > > > > Thanks in advance.
> > > >
> > > >
> > > >
>
>
>
- Next message: Igor Tandetnik: "Re: What #includes are needed to implement a Column Handler?"
- Previous message: ELMystic: "RE: OLE automation with VC++ and VB6, error using CreateDispatch"
- In reply to: Alexander Nickolov: "Re: OLE automation with VC++ and VB6"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|