473,387 Members | 3,820 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,387 software developers and data experts.

ActiveX control versioning - 16-bit problem?

I am writing an ActiveX control using Visual C++ 6. My control
registers its version using AfxOleRegisterControlClass().
http://msdn.microsoft.com/library/de...ntrolclass.asp
The control is packaged into a cab file and I add it to a web page
using the <OBJECT> tag along with the version, e.g.
CODEBASE=[url]#Version=2,1,4121,1 The problem I am having is that I
want to assign a version to the control where one of the version digits
exceeds 255 (it is the control's build number, that's why it is so
large).

According to the documentation, the four-digit version consists of a
two-digit major version and a two-digit minor version. In my example,
"2, 1" is the major version and "4121, 1" is the minor version. When
calling AfxEnableControlContainer(), the two digits of the major
version are combined into a single 16-bit WORD, and same with the minor
version, so each version has a maximum value of 65535. Therefore each
of the four digits has a max value of 255.

However, this page says that the major and minor version is each
specified by a DWORD.
http://msdn.microsoft.com/workshop/delivery/download/overview/managing.asp#mngver_spec

And according to this .NET page: "Version numbers are stored as a
128-bit number that is logically partitioned into four 32-bit numbers.
This means that each of the four parts can be any number in the range
zero to 65,536."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/managevers.asp

Is this something that was changed in Visual Studio .NET? Does anyone
have any experience with this issue?

Thanks
Faz

Nov 17 '05 #1
0 1014

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

Similar topics

1
by: elhja | last post by:
Hi, I'm looking for the list of installed ActiveX in IE. There is a way to detect if JVM is present or not in IE? Thanks in advance. elhja
8
by: PerryC | last post by:
I want to be able to accomplish this, please help: When click on the DOB field, a ActiveX Calender popup and the user choose a date, the value is automatically refreshed in the DOB field in the...
1
by: Anand Kale | last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX control is written using VC++/MFC/ATL-COM. Also kindly answer following issues, 1. Also how to take care of issues about...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
3
by: Weston Fryatt | last post by:
Simple question I hope.... How do I send data to and from an ASP.Net (server side) web page to a ActiveX Control (client side) embedded in a web browser??? What I need to do, is I have image...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
1
by: Jayender | last post by:
Hi, I have an ActiveX control (to display the Images),I have added the reference of that in my web based applicaton .and added the ocx in my tool bar , but the viewer (activex component- ocx ) is...
6
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm trying to display .NET Custom Control (created using Inherited Control) on an ASPX page, but no luck. I already registered the Control to Global Assembly Cache through .NET Framework...
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...
7
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.