Click here to Skip to main content
15,912,897 members
Home / Discussions / COM
   

COM

 
QuestionHow to get Browser Helper Object pointer ? Pin
solo.ru4-Jul-00 5:43
solo.ru4-Jul-00 5:43 
AnswerRe: How to get Browser Helper Object pointer ? Pin
Alex Gorev4-Jul-00 6:14
Alex Gorev4-Jul-00 6:14 
Generalvoid* in a parameter in COM function Pin
Jafet Sánchez2-Jul-00 20:14
Jafet Sánchez2-Jul-00 20:14 
GeneralRe: void* in a parameter in COM function Pin
Alex Gorev4-Jul-00 4:33
Alex Gorev4-Jul-00 4:33 
GeneralRe: void* in a parameter in COM function Pin
Alex Gorev4-Jul-00 6:28
Alex Gorev4-Jul-00 6:28 
QuestionHow do i extract a substring from a variant or bstr Pin
spikee2-Jul-00 0:49
spikee2-Jul-00 0:49 
AnswerRe: How do i extract a substring from a variant or bstr Pin
Jafet Sánchez2-Jul-00 20:23
Jafet Sánchez2-Jul-00 20:23 
AnswerRe: How do i extract a substring from a variant or bstr Pin
Alex Gorev4-Jul-00 4:14
Alex Gorev4-Jul-00 4:14 
Hi,

Variants store the strings as BSTRs. You can work with BSTR strings using the standard string functions if you convert it using the OLE2A(...) macro.

USES_CONVERSION;
char *p = strstr(OLE2A(m_bstrData), "Data=");

If you have a lot of string operations I recommend you to use the WTL's CString class. It's a light weight template, which duplicate the functionality of the popular MFC's string class.

Regards,
Alex Gorev,
Dundas Software.
GeneralATL PROP_DATA_ENTRY Pin
Lakshmi Vyas30-Jun-00 6:08
Lakshmi Vyas30-Jun-00 6:08 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Alex Gorev30-Jun-00 11:33
Alex Gorev30-Jun-00 11:33 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Lakshmi Vyas30-Jun-00 16:54
Lakshmi Vyas30-Jun-00 16:54 
GeneralRe: ATL PROP_DATA_ENTRY Pin
Alex Gorev4-Jul-00 3:54
Alex Gorev4-Jul-00 3:54 
GeneralASP Components Pin
Kitkat29-Jun-00 19:16
Kitkat29-Jun-00 19:16 
GeneralRe: ASP Components Pin
Alex Gorev30-Jun-00 4:04
Alex Gorev30-Jun-00 4:04 
Generalcom to save error Pin
Bjarni27-Jun-00 0:31
Bjarni27-Jun-00 0:31 
GeneralRe: com to save error Pin
Alex Gorev27-Jun-00 4:11
Alex Gorev27-Jun-00 4:11 
GeneralRe: com to save error Pin
Bjarni27-Jun-00 23:46
Bjarni27-Jun-00 23:46 
GeneralRe: com to save error Pin
Alex Gorev28-Jun-00 4:16
Alex Gorev28-Jun-00 4:16 
GeneralWhat's Component Manager Pin
Member 327926-Jun-00 20:34
Member 327926-Jun-00 20:34 
GeneralRe: What's Component Manager Pin
Steeves Saillant9-Jul-00 12:37
Steeves Saillant9-Jul-00 12:37 
GeneralApartments and multi threaded programming Pin
Rajendra Acharya26-Jun-00 4:03
sussRajendra Acharya26-Jun-00 4:03 
GeneralRe: Apartments and multi threaded programming Pin
Alex Gorev26-Jun-00 4:43
Alex Gorev26-Jun-00 4:43 
QuestionHow does a Client know if there is a COM server that belongs to it Pin
KNEI26-Jun-00 2:05
sussKNEI26-Jun-00 2:05 
AnswerRe: How does a Client know if there is a COM server that belongs to it Pin
Keith Hill6-Jul-00 18:35
Keith Hill6-Jul-00 18:35 
AnswerRe: How does a Client know if there is a COM server that belongs to it Pin
Brian Hart9-Aug-00 18:34
Brian Hart9-Aug-00 18:34 

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.