Click here to Skip to main content
15,914,943 members
Home / Discussions / COM
   

COM

 
GeneralIn-proc to out-of-proc Pin
In-At2-Jul-03 20:19
In-At2-Jul-03 20:19 
GeneralRe: In-proc to out-of-proc Pin
valikac3-Jul-03 7:39
valikac3-Jul-03 7:39 
GeneralRe: In-proc to out-of-proc Pin
In-At3-Jul-03 19:54
In-At3-Jul-03 19:54 
GeneralRe: In-proc to out-of-proc Pin
valikac4-Jul-03 5:00
valikac4-Jul-03 5:00 
GeneralHelpppppp! Pin
safee ullah2-Jul-03 20:07
safee ullah2-Jul-03 20:07 
Generalhelp!!,there are some errors in my program Pin
yingkou2-Jul-03 3:35
yingkou2-Jul-03 3:35 
Generalremote connection to server Pin
satishsilla2-Jul-03 2:59
satishsilla2-Jul-03 2:59 
Generaldefault properties on COM interfaces Pin
Dave Bryant1-Jul-03 16:26
Dave Bryant1-Jul-03 16:26 
I've encountered a probably setting a default property on a COM interface I am generating. This interface, IField, is generating dynamically from my application, and extends another of my interfaces, IMessageComponent (also generated dynamically, which inherits from IDispatch). I want to make the Value property (which is read/write) the default of the IField interface, so i've the the ID to zero.

When using it from VB6, it sometimes works. It always works if I am reading the value from the default property.
e.g. str = msg.Segment.Field This always works

However, when setting the value it does not work if there the object is set indirectly. For example:
Dim fld As Test.Field
fld = msg.Segment.Field
fld = "blah" This always works

msg.Segment.Field = "blah" This never works works - VB always gives a compile-time type mismatch error.

Has anyone encountered this previously and know of a workaround?

Cheers

Dave
http://www.cloudsofheaven.org
GeneralRe: default properties on COM interfaces Pin
Mil101-Jul-03 18:59
Mil101-Jul-03 18:59 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 10:35
Dave Bryant2-Jul-03 10:35 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 18:46
Mil102-Jul-03 18:46 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 18:49
Dave Bryant2-Jul-03 18:49 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 21:56
Mil102-Jul-03 21:56 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant3-Jul-03 8:55
Dave Bryant3-Jul-03 8:55 
GeneralRe: default properties on COM interfaces Pin
Vi23-Jul-03 21:43
Vi23-Jul-03 21:43 
GeneralSending events Pin
act_x30-Jun-03 4:42
act_x30-Jun-03 4:42 
GeneralWhen whould this occur?... Pin
CherezZaboro30-Jun-03 3:37
CherezZaboro30-Jun-03 3:37 
GeneralRe: When whould this occur?... Pin
Vi230-Jun-03 4:34
Vi230-Jun-03 4:34 
GeneralRe: When whould this occur?... Pin
CherezZaboro30-Jun-03 5:48
CherezZaboro30-Jun-03 5:48 
GeneralRe: When whould this occur?... Pin
Vi21-Jul-03 1:51
Vi21-Jul-03 1:51 
GeneralOleCreateFromFile and OleCreatePictureIndirect Pin
Florin Ochiana28-Jun-03 22:12
Florin Ochiana28-Jun-03 22:12 
GeneralExcel COM Add-In Pin
Anonymous27-Jun-03 13:09
Anonymous27-Jun-03 13:09 
Generalvariant data type.. Pin
safee ullah26-Jun-03 19:46
safee ullah26-Jun-03 19:46 
GeneralRe: variant data type.. Pin
Fredrik Skog26-Jun-03 20:19
Fredrik Skog26-Jun-03 20:19 
GeneralRe: variant data type.. Pin
Vi227-Jun-03 0:56
Vi227-Jun-03 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.