windows - Consecutive interface function IDs -


I have a COM object interface such as

  interface interface: IDispatch {[id (1)] HRESULT FunA (...); [ID (2)] HRESULT FunB (...); [ID (3)] Hairsault Funk (...); }  

Should the ID be consistent? Or can I define it as

  interface interface name: IDispatch {[id (1)] HRESULT FunA (...); [ID (3)] HRESULT FunB (...); [ID (5)] Hirselt Funk (...); }  

It seems ok to compile the second version, but can there be any problems at runtime?

The actual ID values ​​are arbitrary numbers; they do not need to be consistent; They just have to be unique, by hypnosis, there are zero and negative values, besides, there is no rule.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -