Click here to Skip to main content
15,891,136 members
Home / Discussions / COM
   

COM

 
GeneralRe: Outlook addin Pin
Brigsoft10-Apr-04 7:46
Brigsoft10-Apr-04 7:46 
GeneralSimple COM & Collection Objects Pin
stickleprojects2-Apr-04 4:29
stickleprojects2-Apr-04 4:29 
GeneralRe: Simple COM & Collection Objects Pin
Jörgen Sigvardsson3-Apr-04 3:27
Jörgen Sigvardsson3-Apr-04 3:27 
GeneralCom without MFC Pin
shiraztk1-Apr-04 22:12
shiraztk1-Apr-04 22:12 
GeneralRe: Com without MFC Pin
Mil 101-Apr-04 23:52
sussMil 101-Apr-04 23:52 
GeneralRe: Com without MFC Pin
shiraztk2-Apr-04 0:28
shiraztk2-Apr-04 0:28 
GeneralPassing string Pin
shiraztk1-Apr-04 19:46
shiraztk1-Apr-04 19:46 
GeneralRe: Passing string Pin
Rory Solley1-Apr-04 20:19
Rory Solley1-Apr-04 20:19 
To pass a string into a COM method, use a BSTR type parameter:

e.g. HRESULT IMyComInterface::Open(BSTR Filename);

which would be called like this (error handling and COM object creation omitted for clarity):

BSTR Filename = ::SysAllocString(L"c:\\myfile.txt");
HRESULT hR = pIMyComInterface->Open(Filename);
::SysFreeString(Filename);

HTH
GeneralRe: Passing string Pin
shiraztk1-Apr-04 20:23
shiraztk1-Apr-04 20:23 
GeneralRe: Passing string Pin
Rory Solley1-Apr-04 21:37
Rory Solley1-Apr-04 21:37 
GeneralRe: Passing string Pin
shiraztk1-Apr-04 22:06
shiraztk1-Apr-04 22:06 
GeneralRe: Passing string Pin
Mike Dimmick2-Apr-04 1:52
Mike Dimmick2-Apr-04 1:52 
GeneralRe: Passing string Pin
vprashu5-Apr-04 8:20
vprashu5-Apr-04 8:20 
GeneralPassing pointers to STL iterators as params to COM interface methods Pin
petrym1-Apr-04 16:12
petrym1-Apr-04 16:12 
QuestionCustom ActiveX control hosting another custom control? Pin
Member 9789281-Apr-04 5:00
Member 9789281-Apr-04 5:00 
QuestionTool to embed exe in OCX? Pin
kaleid31-Mar-04 18:31
kaleid31-Mar-04 18:31 
QuestionHow COM client call my COM object Pin
_David_Lee_30-Mar-04 15:24
_David_Lee_30-Mar-04 15:24 
AnswerRe: How COM client call my COM object Pin
User 21559730-Mar-04 17:43
User 21559730-Mar-04 17:43 
GeneralRe: How COM client call my COM object Pin
_David_Lee_30-Mar-04 20:41
_David_Lee_30-Mar-04 20:41 
GeneralRe: How COM client call my COM object Pin
Steve S1-Apr-04 1:09
Steve S1-Apr-04 1:09 
GeneralRe: How COM client call my COM object Pin
RChin1-Apr-04 3:28
RChin1-Apr-04 3:28 
AnswerRe: How COM client call my COM object Pin
Mike Dimmick1-Apr-04 1:16
Mike Dimmick1-Apr-04 1:16 
GeneralRe: How COM client call my COM object Pin
Steve S1-Apr-04 22:17
Steve S1-Apr-04 22:17 
GeneralSaving Results from Excel OWC Pin
Mike Murphy30-Mar-04 6:30
Mike Murphy30-Mar-04 6:30 
QuestionCan i have two components with same ProgID ? Pin
User 21559730-Mar-04 4:01
User 21559730-Mar-04 4:01 

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.