Click here to Skip to main content
15,850,214 members
Home / Discussions / COM
   

COM

 
GeneralIn-proc to out-of-proc Pin
In-At2-Jul-03 21:19
In-At2-Jul-03 21:19 
GeneralRe: In-proc to out-of-proc Pin
valikac3-Jul-03 8:39
valikac3-Jul-03 8:39 
GeneralRe: In-proc to out-of-proc Pin
In-At3-Jul-03 20:54
In-At3-Jul-03 20:54 
GeneralRe: In-proc to out-of-proc Pin
valikac4-Jul-03 6:00
valikac4-Jul-03 6:00 
GeneralHelpppppp! Pin
safee ullah2-Jul-03 21:07
safee ullah2-Jul-03 21:07 
Generalhelp!!,there are some errors in my program Pin
yingkou2-Jul-03 4:35
yingkou2-Jul-03 4:35 
Generalremote connection to server Pin
satishsilla2-Jul-03 3:59
satishsilla2-Jul-03 3:59 
Generaldefault properties on COM interfaces Pin
Dave Bryant1-Jul-03 17:26
Dave Bryant1-Jul-03 17: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 19:59
Mil101-Jul-03 19:59 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 11:35
Dave Bryant2-Jul-03 11:35 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 19:46
Mil102-Jul-03 19:46 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 19:49
Dave Bryant2-Jul-03 19:49 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 22:56
Mil102-Jul-03 22:56 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant3-Jul-03 9:55
Dave Bryant3-Jul-03 9:55 
GeneralRe: default properties on COM interfaces Pin
Vi23-Jul-03 22:43
Vi23-Jul-03 22:43 
GeneralSending events Pin
act_x30-Jun-03 5:42
act_x30-Jun-03 5:42 
GeneralWhen whould this occur?... Pin
CherezZaboro30-Jun-03 4:37
CherezZaboro30-Jun-03 4:37 
GeneralRe: When whould this occur?... Pin
Vi230-Jun-03 5:34
Vi230-Jun-03 5:34 
GeneralRe: When whould this occur?... Pin
CherezZaboro30-Jun-03 6:48
CherezZaboro30-Jun-03 6:48 
GeneralRe: When whould this occur?... Pin
Vi21-Jul-03 2:51
Vi21-Jul-03 2:51 
GeneralOleCreateFromFile and OleCreatePictureIndirect Pin
Florin Ochiana28-Jun-03 23:12
Florin Ochiana28-Jun-03 23:12 
GeneralExcel COM Add-In Pin
Anonymous27-Jun-03 14:09
Anonymous27-Jun-03 14:09 
Generalvariant data type.. Pin
safee ullah26-Jun-03 20:46
safee ullah26-Jun-03 20:46 
GeneralRe: variant data type.. Pin
Fredrik Skog26-Jun-03 21:19
Fredrik Skog26-Jun-03 21:19 
GeneralRe: variant data type.. Pin
Vi227-Jun-03 1:56
Vi227-Jun-03 1: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.