Click here to Skip to main content
15,848,905 members
Home / Discussions / COM
   

COM

 
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 
GeneralRe: default properties on COM interfaces Pin
Mil101-Jul-03 19:59
Mil101-Jul-03 19:59 
Hi Dave,

Dim fld As Test.Field<br />
fld = msg.Segment.Field<br />
fld = "blah" This always works


I couldn't understand how the code above works without error.
Because 'fld' is just a variable of type IField, not an instance of IField. So the statement 'fld = msg.Segment.Field' shouldn't work. Even if u r calling
CComObject<CField>* pFld;<br />
       hRes = CComObject<CField>::CreateInstance(&pFld);
in Segment, that line should be set fld = msg.Segment.Field. Then fld = "blah" is ok. Because now field is refering to an active instance of IField in 'msg.Segment'

Sameway if msg.Segment.Field = "blahh" gives a type mismatch error, then msg.Segment.Field might not be an active instance, make sure u had called hRes = CComObject<CField>::CreateInstance(&pFld);

does this make sense...?

best wishes ... mil10.
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 
GeneralCOM/ASP Pin
Kant26-Jun-03 6:12
Kant26-Jun-03 6:12 

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.