[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

JerryWEC

4/25/2007 6:41:00 PM

I'm using
<DispId(0)> attriubute

for my COM-Interop interfaces...

I have two interfaces one for events and another for properties and methods.

I'm using

<DispId(0)> attriubute to <DispId(16)> attriubute

some are used in one interface and some are used in another. Can I do
ranges like...

<DispId(101)> attriubute

<DispId(201)> attriubute, etc..?

TIA! JerryM


5 Answers

wawang

4/26/2007 3:56:00 AM

0

Hi Jerry,

Sorry but I'm not sure I understand your question:

> Can I do ranges like...
> <DispId(101)> attriubute
> <DispId(201)> attriubute, etc..?

Also, the DISPID_VALUE (0) is reserved for default member for the object:
the property or method is invoked when an ActiveX client specifies the
object name without a property or method.

#DISPID
http://msdn.microsoft.com/library/en-us/automat/html/56037091-5761...
-72f85d41466f.asp?frame=true

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


JerryWEC

4/26/2007 1:21:00 PM

0

Walter,

Basically I want to know if I can skip DispId values...

Interface1...

<DispId(101)> _
Sub Method1()
<DispId(102)> _
Sub Method2()

Interface2...

<DispId(201)> _
Sub Method3()
<DispId(202)> _
Sub Method4()

etc...

I would like to group certain methods, properties and events into group
using 101, 102, 103, 104 for events, then 201, 202, 203, 204 for properties
and then 301, 302, 303, 304, etc... for Methods. within two different
interfaces. ??? Yes or No?

TIA JerryM


wawang

4/27/2007 1:52:00 AM

0

Hi Jerry,

Other than those special DispIDs, you can use arbitrary ID, as long as
they're not duplicate for different property/method.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

JerryWEC

4/27/2007 1:57:00 PM

0

Walter, Cool! I just wanted to do ranges so I can add new times as I
develop and don't have to renumber everytime I add one new method or
property or event.

Chow! Have a great weekend!
JerryM


JerryWEC

4/30/2007 3:54:00 PM

0

Sorry...

Below the text reads new times and should have read new items...

> Walter, Cool! I just wanted to do ranges so I can add new times as I
> develop and don't have to renumber everytime I add one new method or
> property or event.
>
> Chow! Have a great weekend!
> JerryM
>