Click here to Skip to main content
15,900,482 members
Home / Discussions / COM
   

COM

 
GeneralRe: Interface as Events parameter and it release Pin
Anonymous30-Mar-04 8:42
Anonymous30-Mar-04 8:42 
GeneralRe: Interface as Events parameter and it release Pin
Vi231-Mar-04 1:22
Vi231-Mar-04 1:22 
GeneralData Bound ActiveX control Pin
Dimitris Vasiliadis29-Mar-04 23:29
Dimitris Vasiliadis29-Mar-04 23:29 
GeneralHelp: catch/handle window messages in COM dll Pin
usouthal29-Mar-04 13:19
usouthal29-Mar-04 13:19 
GeneralBSTR release Pin
El'Cachubrey28-Mar-04 21:14
El'Cachubrey28-Mar-04 21:14 
GeneralRe: BSTR release Pin
Rory Solley28-Mar-04 22:18
Rory Solley28-Mar-04 22:18 
GeneralRe: BSTR release Pin
El'Cachubrey29-Mar-04 0:27
El'Cachubrey29-Mar-04 0:27 
GeneralRe: BSTR release Pin
Jörgen Sigvardsson29-Mar-04 3:38
Jörgen Sigvardsson29-Mar-04 3:38 
The rules are:
[in] data initialized before passed to method, and is expected to be initialized when the method returns. COM-objects living in the same apartment can modify parameters (i.e. strings) eventhough they're labeled as [in]. It may or may not work - it sure won't work across apartment boundaries.

[out] has no reference to any valid data. If it does, that's just a coincidence - don't rely on it. You, the method callee, are responsible for allocating data to return through this parameter (or nothing/NULL if you're dealing with reference semantics).

[in, out] If you are to update the value of such a parameter, you must first free the passed in value, and allocate a new one for the return. Note that if [in, out] long* param is passed, you don't have to allocate memory, just *param = value;. If you get a [in, out] IInterface** p, then (*p)->Release(); *p = ....


[edit][out, retval] has the exact semantics as a [out]. Clients such as VB uses the retval attribute only to synthesize a return type for methods.[/edit]

--
Din mamma.
GeneralRe: BSTR release Pin
El'Cachubrey30-Mar-04 0:38
El'Cachubrey30-Mar-04 0:38 
GeneralRe: BSTR release Pin
Anonymous15-Apr-04 2:36
Anonymous15-Apr-04 2:36 
GeneralTapi3 COM Pin
babur_rizwan28-Mar-04 12:56
babur_rizwan28-Mar-04 12:56 
GeneralOutlook Express add-in Pin
dorutzu28-Mar-04 9:17
dorutzu28-Mar-04 9:17 
GeneralRe: Outlook Express add-in Pin
Stephane Rodriguez.28-Mar-04 9:51
Stephane Rodriguez.28-Mar-04 9:51 
GeneralRe: Outlook Express add-in Pin
dorutzu28-Mar-04 10:04
dorutzu28-Mar-04 10:04 
GeneralRe: Outlook Express add-in Pin
FearlessBurner30-Mar-04 1:41
FearlessBurner30-Mar-04 1:41 
GeneralRe: Outlook Express add-in Pin
dorutzu30-Mar-04 1:51
dorutzu30-Mar-04 1:51 
GeneralCOM Object VS Interface Pin
alex.barylski26-Mar-04 10:47
alex.barylski26-Mar-04 10:47 
GeneralRe: COM Object VS Interface Pin
Rory Solley28-Mar-04 20:09
Rory Solley28-Mar-04 20:09 
GeneralRe: COM Object VS Interface Pin
Jörgen Sigvardsson29-Mar-04 4:06
Jörgen Sigvardsson29-Mar-04 4:06 
GeneralIntriguing,help me out plz. Pin
Naga the bug fixer26-Mar-04 6:20
Naga the bug fixer26-Mar-04 6:20 
GeneralRe: Intriguing,help me out plz. Pin
Milton Karimbekallil28-Mar-04 23:13
Milton Karimbekallil28-Mar-04 23:13 
GeneralActiveX newbie looking for a starting point... Pin
cjlambre25-Mar-04 3:37
cjlambre25-Mar-04 3:37 
GeneralRe: ActiveX newbie looking for a starting point... Pin
ian mariano25-Mar-04 10:12
ian mariano25-Mar-04 10:12 
GeneralIStorage Pin
Phil J Pearson24-Mar-04 22:33
Phil J Pearson24-Mar-04 22:33 
GeneralRe: IStorage Pin
Nick Parker25-Mar-04 3:13
protectorNick Parker25-Mar-04 3:13 

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.