Manually changing an ActiveX library's UUID

S

SvenC

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
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.

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.
 
A

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 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?
 
F

Frank Hickman

Anonymous said:
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?

Are the controls licensed? Try loading the control in the COM Object Viewer
tool.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top