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

COM

 
AnswerRe: DLL Technology [modified] Pin
Logan from Singapore21-Jun-06 15:28
Logan from Singapore21-Jun-06 15:28 
GeneralRe: DLL Technology Pin
Jun Du22-Jun-06 2:12
Jun Du22-Jun-06 2:12 
GeneralRe: DLL Technology Pin
Logan from Singapore22-Jun-06 2:49
Logan from Singapore22-Jun-06 2:49 
GeneralRe: DLL Technology Pin
Milton Karimbekallil22-Jun-06 8:33
Milton Karimbekallil22-Jun-06 8:33 
QuestionCComBSTR Split [modified] Pin
nmx_de20-Jun-06 20:55
nmx_de20-Jun-06 20:55 
AnswerRe: CComBSTR Split Pin
Stephen Hewitt20-Jun-06 22:43
Stephen Hewitt20-Jun-06 22:43 
GeneralRe: CComBSTR Split Pin
nmx_de20-Jun-06 23:09
nmx_de20-Jun-06 23:09 
GeneralRe: CComBSTR Split [modified] Pin
Stephen Hewitt21-Jun-06 0:11
Stephen Hewitt21-Jun-06 0:11 
One way:
CComBSTR myStr = L"iwantto-splitthis";
LPCWSTR pBegin = myStr;
LPCWSTR pEnd = pBegin + myStr.Length();
LPCWSTR pBreak = std::find(pBegin, pEnd, L"-");
if (pBreak!=pEnd)
{
    CComBSTR FirstBit(pBreak-pBegin, pBegin);
    CComBSTR EndBit(pEnd-pBreak-1, pBreak+1);
}</code>


This code assumes you've included <algorithm>

This is probably not the easiest or the best way but it should work (but I haven't tried it!).

Steve
QuestionStart COM programming Pin
TheEagle20-Jun-06 11:44
TheEagle20-Jun-06 11:44 
AnswerRe: Start COM programming Pin
Jun Du20-Jun-06 13:41
Jun Du20-Jun-06 13:41 
GeneralRe: Start COM programming Pin
TheEagle20-Jun-06 22:01
TheEagle20-Jun-06 22:01 
AnswerRe: Start COM programming Pin
Logan from Singapore20-Jun-06 21:35
Logan from Singapore20-Jun-06 21:35 
GeneralRe: Start COM programming Pin
TheEagle20-Jun-06 22:12
TheEagle20-Jun-06 22:12 
QuestionNeed some help with ActiveX and IE Pin
Marc Clifton20-Jun-06 8:13
mvaMarc Clifton20-Jun-06 8:13 
AnswerRe: Need some help with ActiveX and IE Pin
Todd Smith20-Jun-06 8:52
Todd Smith20-Jun-06 8:52 
GeneralRe: Need some help with ActiveX and IE Pin
Marc Clifton20-Jun-06 10:53
mvaMarc Clifton20-Jun-06 10:53 
GeneralRe: Need some help with ActiveX and IE Pin
Jörgen Sigvardsson20-Jun-06 11:36
Jörgen Sigvardsson20-Jun-06 11:36 
AnswerRe: Need some help with ActiveX and IE Pin
Eric Dahlvang20-Jun-06 11:57
Eric Dahlvang20-Jun-06 11:57 
GeneralRe: Need some help with ActiveX and IE Pin
Marc Clifton20-Jun-06 12:39
mvaMarc Clifton20-Jun-06 12:39 
GeneralRe: Need some help with ActiveX and IE Pin
Milton Karimbekallil20-Jun-06 19:21
Milton Karimbekallil20-Jun-06 19:21 
QuestionTimer Events for Browser Refresh Pin
nmx_de20-Jun-06 7:56
nmx_de20-Jun-06 7:56 
QuestionHow to use ATL executable(exe) and service exe with the client? [modified] Pin
ROWALI20-Jun-06 2:01
ROWALI20-Jun-06 2:01 
QuestionLinking external library to ATL Pin
ROWALI19-Jun-06 19:34
ROWALI19-Jun-06 19:34 
AnswerRe: Linking external library to ATL Pin
Laxman Auti19-Jun-06 22:28
Laxman Auti19-Jun-06 22:28 
QuestionQuestion about Com in Visual C++... [modified] Pin
Yanshof19-Jun-06 17:37
Yanshof19-Jun-06 17:37 

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.