473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Manually changing an ActiveX library's UUID

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?

Nov 1 '07 #1
2 2396
"Anonymous" <no******@here.comwrote in message
news:MY******************************@bt.com...
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.
Nov 1 '07 #2
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.

--
SvenC

Nov 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Randy Dietz | last post by:
Hi, how can I create a simple non-UI dll or component which will be used by MS Access and .ASP apps which I can build with Visual C++ .net? An example or template which would allow me to paste in...
1
by: Luis | last post by:
I use CDO to send an email to users as part of a 'Reset Password' functionality I have on a intranet site. I use: METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB- 00C04FB1625D" NAME="CDO...
5
by: phillip.s.powell | last post by:
mysql> update student set uuid = concat(UUID(), '_', 'asdfasdfasdfasdf') where uuid is null or uuid = '' limit 1; ERROR 1270 (HY000): Illegal mix of collations (utf8_general_ci,COERCIBLE),...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.