Click here to Skip to main content
15,949,686 members
Home / Discussions / COM
   

COM

 
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 
GeneralRe: default properties on COM interfaces Pin
Mil101-Jul-03 18:59
Mil101-Jul-03 18: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 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 
GeneralCOM/ASP Pin
Kant26-Jun-03 5:12
Kant26-Jun-03 5: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.