I'm trying to change the uuid of an Activex control so that my modified
version can coexist on the same system as the official control. I did
what I thought was obvious:
1). Generated new GUIDS using the VC8 GUID generator
2). Modified the .idl (or .odl for another control) file
3). Rebuilt the project.
It built ok, without reporting any errors. However, when I tried using
the ActiceX object, the object could not be created. In VB, it returned
an error 'ActiveX object could not be craeted'
What am I doing wrong?
SvenC - 01 Nov 2007 17:34 GMT
Hi Anonymous,
> I'm trying to change the uuid of an Activex control so that my modified
> version can coexist on the same system as the official control. I did what
[quoted text clipped - 3 lines]
> 2). Modified the .idl (or .odl for another control) file
> 3). Rebuilt the project.
Did you register the new dll or ocx with regsvr32.exe?
> It built ok, without reporting any errors. However, when I tried using the
> ActiceX object, the object could not be created. In VB, it returned an
> error 'ActiveX object could not be craeted'
The dll/ocx will export a DllGetClassObject function to expose its class
factory. When using ATL there will be an automatism to use the GUIDs
specified in the idl but when I read odl you might be using MFC? IIRC MFC
puts GUIDs into the source files, so you might need to "find in files" the
old GUIDs in the .h/.cpp files.
--
SvenC
Frank Hickman - 01 Nov 2007 18:26 GMT
> I'm trying to change the uuid of an Activex control so that my modified
> version can coexist on the same system as the official control. I did what
[quoted text clipped - 9 lines]
>
> What am I doing wrong?
Are the controls licensed? Try loading the control in the COM Object Viewer
tool.

Signature
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.