Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Feb 11, 1997

Where Class IDs Come From

Question:
I've just spent a useless morning surfing trying to find out where the CLASSID parameter of a VBSCRIPT OBJECT tag comes from. The most useful documentation said it comes "straight from the registry" but how do I find out what a given class id is? A VBPJ article referenced the Automatic Control Insertion Device (ACID) but I can't find any documentation on that either.

Answer:
The value of the CLASSID parameter is actually assigned to a control by Microsoft. That's how they ensure that each CLASSID for each control will be unique. If you are using the ActiveX Control Pad, it knows how to read the CLASSID from each control and add it to your VBScript/ActiveX code. However, there is no deep, hidden meaning behind the numbers -- they are essentially arbitrary.

In cases where you are creating new controls with the Control Creation Edition, it automatically assigns numbers from a particular group, since obviously you are not going to call Microsoft to find out your number. I have yet to find a good definition, but basically it is an arbitrary number.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date