Click here to Skip to main content
15,894,546 members
Home / Discussions / COM
   

COM

 
GeneralSharedPropertyGroupManager Pin
shekar_raja26-May-04 23:16
shekar_raja26-May-04 23:16 
GeneralActiveX & unicode Pin
Paolo Vernazza26-May-04 6:43
Paolo Vernazza26-May-04 6:43 
GeneralRe: ActiveX & unicode Pin
Steve S26-May-04 22:33
Steve S26-May-04 22:33 
GeneralRe: ActiveX & unicode Pin
Paolo Vernazza26-May-04 22:50
Paolo Vernazza26-May-04 22:50 
GeneralRe: ActiveX & unicode Pin
f6427-May-04 6:56
f6427-May-04 6:56 
GeneralWanted:Indeo_ video 5.04 Compression Filter Pin
mrgump200426-May-04 3:53
mrgump200426-May-04 3:53 
GeneralDLL Pin
Poorniselva25-May-04 20:46
Poorniselva25-May-04 20:46 
GeneralCString and COM Pin
monrobot1325-May-04 8:02
monrobot1325-May-04 8:02 
I'm pretty new to COM programming so here goes my question. I've written a component that has some properties. One is written like
STDMETHODIMP CPopClient::get_Response(BSTR *pVal)
{
	*pVal = (BSTR) m_bsResponse;  // m_bsResponse is a CComBSTR

	return S_OK;
}
Would this be the correct way to use it
IPop->get_Response (&message.AllocSysString ());  // message is a CString
Thinking about this I see a problem in that if the CString is null then I'm not allocating anything. So I guess I'm needing to know how I would call the above property from MFC. Thanks.

- Aaron
GeneralRe: CString and COM Pin
Rory Solley25-May-04 21:46
Rory Solley25-May-04 21:46 
GeneralRe: CString and COM Pin
monrobot1326-May-04 4:37
monrobot1326-May-04 4:37 
GeneralRe: CString and COM Pin
Andrew Quinn AUS25-May-04 23:16
Andrew Quinn AUS25-May-04 23:16 
GeneralRe: CString and COM Pin
monrobot1326-May-04 4:36
monrobot1326-May-04 4:36 
GeneralRe: CString and COM Pin
Andrew Quinn AUS26-May-04 5:51
Andrew Quinn AUS26-May-04 5:51 
GeneralRe: CString and COM Pin
monrobot1326-May-04 6:14
monrobot1326-May-04 6:14 
GeneralRe: CString and COM Pin
f6427-May-04 8:08
f6427-May-04 8:08 
QuestionDownload my .ocx that depends on 2 other dll’s ? Pin
anderslundsgard25-May-04 1:48
anderslundsgard25-May-04 1:48 
GeneralNeed help with COM+ application Pin
ori74925-May-04 0:58
ori74925-May-04 0:58 
GeneralHELP!!! How to use GoToDate in C++ for Outlook View Control Pin
Kingwulf24-May-04 12:18
Kingwulf24-May-04 12:18 
Generalhelp! for ATL COM server methods Pin
reddys24-May-04 0:02
reddys24-May-04 0:02 
GeneralNo move or size notification Pin
mrw22-May-04 18:06
mrw22-May-04 18:06 
GeneralConnectable objects and threads Pin
Janagn21-May-04 0:13
Janagn21-May-04 0:13 
GeneralRe: Connectable objects and threads Pin
Roger Stoltz22-May-04 7:37
Roger Stoltz22-May-04 7:37 
GeneralRe: Connectable objects and threads Pin
Janagn25-May-04 3:26
Janagn25-May-04 3:26 
GeneralRe: Connectable objects and threads Pin
Roger Stoltz25-May-04 6:39
Roger Stoltz25-May-04 6:39 
GeneralMore info.. Pin
Janagn26-May-04 5:07
Janagn26-May-04 5:07 

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.