Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCListCtrl - can someone help me implement this demo project for a CFormView? Pin
DanYELL7-Sep-01 7:23
DanYELL7-Sep-01 7:23 
GeneralLoading bitmaps from file Pin
7-Sep-01 6:01
suss7-Sep-01 6:01 
GeneralRe: Loading bitmaps from file Pin
Carlos Antollini7-Sep-01 6:15
Carlos Antollini7-Sep-01 6:15 
GeneralRe: Loading bitmaps from file Pin
Chris Losinger7-Sep-01 6:20
professionalChris Losinger7-Sep-01 6:20 
Generalvaraint type conversion Pin
John Smith7-Sep-01 4:34
John Smith7-Sep-01 4:34 
GeneralRe: varaint type conversion Pin
Carlos Antollini7-Sep-01 4:44
Carlos Antollini7-Sep-01 4:44 
GeneralRe: varaint type conversion Pin
John Smith7-Sep-01 5:54
John Smith7-Sep-01 5:54 
GeneralRe: varaint type conversion Pin
Rashid Thadha8-Sep-01 3:44
Rashid Thadha8-Sep-01 3:44 
I came across this problem recently, and found the perfect solution

use _variant_t wrapper class

e.g. converting a long to a BSTR

_variant_t vLongVal((long)100);
vLongVal.ChangeType(VTV_BSTR);

// now you can use the bstr, that the ChangeTypr has converted
_bstr_t vBstrValue(vLongVal.valbstr);


This can be applied to any type

I hope this helps

Cool | :cool:
GeneralRe: varaint type conversion Pin
Carlos Antollini7-Sep-01 4:46
Carlos Antollini7-Sep-01 4:46 
GeneralA free cool year calendar with Full MFC Source code Pin
7-Sep-01 3:39
suss7-Sep-01 3:39 
Generalyeah, for $$$ Pin
Chris Losinger7-Sep-01 4:06
professionalChris Losinger7-Sep-01 4:06 
GeneralRe: yeah, for $$$ Pin
Darren Schroeder10-Sep-01 15:23
Darren Schroeder10-Sep-01 15:23 
GeneralBitmap Help Pin
7-Sep-01 3:17
suss7-Sep-01 3:17 
GeneralADO stored procedure call Pin
7-Sep-01 3:09
suss7-Sep-01 3:09 
GeneralRe: ADO stored procedure call Pin
Rashid Thadha8-Sep-01 3:53
Rashid Thadha8-Sep-01 3:53 
GeneralI need help with an arrogant CFile Pin
7-Sep-01 1:20
suss7-Sep-01 1:20 
GeneralRe: I need help with an arrogant CFile Pin
[James Pullicino]7-Sep-01 1:54
[James Pullicino]7-Sep-01 1:54 
GeneralRe: I need help with an arrogant CFile Pin
7-Sep-01 2:04
suss7-Sep-01 2:04 
GeneralRe: I need help with an arrogant CFile Pin
tanin8-Sep-01 7:29
tanin8-Sep-01 7:29 
GeneralUsing IE for a project Pin
sleater7-Sep-01 1:07
sleater7-Sep-01 1:07 
GeneralRe: Using IE for a project Pin
Masaaki Onishi7-Sep-01 4:04
Masaaki Onishi7-Sep-01 4:04 
GeneralRe: Using IE for a project Pin
7-Sep-01 16:57
suss7-Sep-01 16:57 
GeneralProcess Control Pin
Steve Thresher7-Sep-01 0:08
Steve Thresher7-Sep-01 0:08 
GeneralRe: Process Control Pin
[James Pullicino]7-Sep-01 1:08
[James Pullicino]7-Sep-01 1:08 
GeneralRe: Process Control Pin
tanin8-Sep-01 7:41
tanin8-Sep-01 7:41 

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.