Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBeginner needs help with sorting objects in a CTypedPtrArray Pin
Matthias6-Jun-00 4:01
Matthias6-Jun-00 4:01 
GeneralRe: Beginner needs help with sorting objects in a CTypedPtrArray Pin
Member 43216-Jun-00 5:45
Member 43216-Jun-00 5:45 
GeneralListView dropdown Pin
Joe Bogner6-Jun-00 3:31
sussJoe Bogner6-Jun-00 3:31 
GeneralNames to long...warning... Pin
Member 13566-Jun-00 3:15
Member 13566-Jun-00 3:15 
GeneralRe: Names to long...warning... Pin
Chris Losinger6-Jun-00 5:14
professionalChris Losinger6-Jun-00 5:14 
GeneralRe: Names to long...warning... Pin
Nick King13-Jun-00 7:24
Nick King13-Jun-00 7:24 
Questionhow can i convert CComBSTR to char* Pin
Member 44324835-Jun-00 21:49
Member 44324835-Jun-00 21:49 
AnswerRe: how can i convert CComBSTR to char* Pin
Robin Summerhill6-Jun-00 2:28
Robin Summerhill6-Jun-00 2:28 
Take a look at the ATL string conversion macros. Try something like:

USES_CONVERSION;
CComBSTR bstrText(_T("String to convert"));
TCHAR* asciiText = W2T(bstrText);

Note that this uses TCHAR* instead of char* so that you can compile as unicode. Use W2A if you want to use ASCII explicitly. These functions allocate storage on the stack so don't try to access the converted string outside local scope - copy it if you want to return it from a function.


Generalthank you ^^ you're great guy!! Pin
Jim6-Jun-00 2:42
Jim6-Jun-00 2:42 
GeneralMkTypLib Unknown Type error (16-bit dll)) Pin
Sam Hobbs5-Jun-00 14:52
Sam Hobbs5-Jun-00 14:52 
GeneralDelayed Clipboard Rendering Pin
Alan Fritz5-Jun-00 12:10
Alan Fritz5-Jun-00 12:10 
QuestionPluggable protocols and Monikers? Pin
mahesh5-Jun-00 11:05
mahesh5-Jun-00 11:05 
AnswerDid you succeed to implement APP? Pin
Ryan Park1-Feb-01 20:13
Ryan Park1-Feb-01 20:13 
GeneralGUI design question Pin
Eddie Ng5-Jun-00 11:02
Eddie Ng5-Jun-00 11:02 
GeneralRe: GUI design question Pin
Alvaro Mendez5-Jun-00 13:08
Alvaro Mendez5-Jun-00 13:08 
GeneralRe: GUI design question Pin
Member 7505-Jun-00 17:58
Member 7505-Jun-00 17:58 
GeneralRe: GUI design question Pin
Chris Maunder6-Jun-00 0:35
cofounderChris Maunder6-Jun-00 0:35 
GeneralRe: GUI design question Pin
vance7879-Jun-00 14:11
vance7879-Jun-00 14:11 
GeneralRe: GUI design question Pin
Adiga7-Jun-00 2:22
Adiga7-Jun-00 2:22 
GeneralSerializing data structures Pin
JCpp5-Jun-00 9:38
JCpp5-Jun-00 9:38 
GeneralRe: Serializing data structures Pin
Kurt6-Jun-00 3:05
Kurt6-Jun-00 3:05 
GeneralEditing CListView subitems Pin
JCpp5-Jun-00 9:33
JCpp5-Jun-00 9:33 
GeneralRe: Editing CListView subitems Pin
Alvaro Mendez5-Jun-00 13:08
Alvaro Mendez5-Jun-00 13:08 
GeneralRe: Editing CListView subitems Pin
Sam Hobbs5-Jun-00 14:56
Sam Hobbs5-Jun-00 14:56 
GeneralRe: Editing CListView subitems Pin
Chris Maunder6-Jun-00 0:37
cofounderChris Maunder6-Jun-00 0: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.