Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

Manually changing an ActiveX library's UUID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anonymous - 01 Nov 2007 17:35 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 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.