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

COM

 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
amitmistry_petlad 12-Apr-07 0:06
amitmistry_petlad 12-Apr-07 0:06 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
Roger Stoltz12-Apr-07 1:39
Roger Stoltz12-Apr-07 1:39 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
amitmistry_petlad 17-Apr-07 2:44
amitmistry_petlad 17-Apr-07 2:44 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
Roger Stoltz17-Apr-07 3:07
Roger Stoltz17-Apr-07 3:07 
QuestionHow to program about Remote Desktop Client Pin
onlysaint10-Apr-07 3:28
onlysaint10-Apr-07 3:28 
QuestionHow to convert a CString to _bstr_t Pin
ganesa moorthy10-Apr-07 2:05
ganesa moorthy10-Apr-07 2:05 
AnswerRe: How to convert a CString to _bstr_t Pin
Roger Stoltz10-Apr-07 3:00
Roger Stoltz10-Apr-07 3:00 
GeneralRe: How to convert a CString to _bstr_t Pin
Steve S10-Apr-07 5:16
Steve S10-Apr-07 5:16 
[fx: pedant mode on]

Roger Stoltz wrote:
Since CString has a type conversion operator LPCTSTR that returns a const char* you can do the following:


No it doesn't. It returns const TCHAR*, which in a UNICODE build won't be the same as const char*. However, _bstr_t has a constructor that accepts const wchar_t* as well as one for const char*, so it will work in either case.

[fx: pedant mode off]
Smile | :)

Steve S
Developer for hire

GeneralRe: How to convert a CString to _bstr_t Pin
Roger Stoltz10-Apr-07 5:35
Roger Stoltz10-Apr-07 5:35 
GeneralRe: How to convert a CString to _bstr_t Pin
Steve S10-Apr-07 21:55
Steve S10-Apr-07 21:55 
QuestionEmpty DACL Pin
San24689-Apr-07 23:44
San24689-Apr-07 23:44 
AnswerRe: Empty DACL Pin
Steve S10-Apr-07 5:22
Steve S10-Apr-07 5:22 
QuestionCOM Framework Pin
Gupta Suraj9-Apr-07 3:21
Gupta Suraj9-Apr-07 3:21 
AnswerRe: COM Framework Pin
sthotakura16-Apr-07 7:25
sthotakura16-Apr-07 7:25 
QuestionImage viewer Pin
MEmami6-Apr-07 21:17
MEmami6-Apr-07 21:17 
QuestionCOM in C# for beginner Pin
Stevo Z5-Apr-07 4:26
Stevo Z5-Apr-07 4:26 
QuestionE_FAIL from COM Object Pin
Hideaway765-Apr-07 4:16
Hideaway765-Apr-07 4:16 
Questiontoolbar button_click event Pin
aamn15-Apr-07 2:27
aamn15-Apr-07 2:27 
QuestionDCOM (Transferring of binary files.) Pin
Don Box2-Apr-07 23:32
Don Box2-Apr-07 23:32 
AnswerRe: DCOM (Transferring of binary files.) Pin
lafleon3-Apr-07 12:39
lafleon3-Apr-07 12:39 
GeneralRe: DCOM (Transferring of binary files.) Pin
Don Box3-Apr-07 20:25
Don Box3-Apr-07 20:25 
QuestionMonitor Activex/COM object Instantiation Pin
__Azzy2-Apr-07 8:49
__Azzy2-Apr-07 8:49 
QuestionVT_DISPATCH variant Pin
asdtry1-Apr-07 23:57
asdtry1-Apr-07 23:57 
AnswerRe: VT_DISPATCH variant Pin
Vi24-Apr-07 19:04
Vi24-Apr-07 19:04 
QuestionWhere should I call CoUninitialize Pin
Hariom Tiwari1-Apr-07 20:59
Hariom Tiwari1-Apr-07 20:59 

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.