Click here to Skip to main content
16,016,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSorting List View Pin
BicycleTheif11-Aug-05 20:45
BicycleTheif11-Aug-05 20:45 
GeneralRe: Sorting List View Pin
Jose Lamas Rios11-Aug-05 20:50
Jose Lamas Rios11-Aug-05 20:50 
GeneralRe: Sorting List View Pin
SVPG12-Aug-05 0:55
SVPG12-Aug-05 0:55 
GeneralRe: Sorting List View Pin
David Crow12-Aug-05 3:27
David Crow12-Aug-05 3:27 
GeneralMS Word automation Pin
Imtiaz Murtaza11-Aug-05 18:05
Imtiaz Murtaza11-Aug-05 18:05 
GeneralRe: MS Word automation Pin
Jose Lamas Rios11-Aug-05 18:35
Jose Lamas Rios11-Aug-05 18:35 
Generalhelp needed VC++ with MS Word Pin
Barm11-Aug-05 15:48
Barm11-Aug-05 15:48 
GeneralRe: help needed VC++ with MS Word Pin
Jose Lamas Rios11-Aug-05 16:21
Jose Lamas Rios11-Aug-05 16:21 
Barm wrote:

tagVARIANT v;
v.lVal = v.intVal = v.iVal = v.fltVal = 200;


tagVariant is an union. That means all lVal, intVal, iVal, etc. share the same space, so assigning multiple fields makes no sense. You should assign only one of the value fields, and set the vt member to indicate which is the one you are using. As you didn't initialize vt, it must have remained as zero, which indicates an empty variant (i.e.: v.vt == VT_EMPTY), and that may be why the image remains at 0,0

Try the following:
tagVariant v;
v.vt = VT_I4;
v.lVal = 200;



--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: help needed VC++ with MS Word Pin
Barm11-Aug-05 16:38
Barm11-Aug-05 16:38 
GeneralMore help needed VC++ with MS Word Pin
Barm11-Aug-05 17:41
Barm11-Aug-05 17:41 
GeneralExit codes Pin
#realJSOP11-Aug-05 15:45
professional#realJSOP11-Aug-05 15:45 
GeneralRe: Exit codes Pin
Christian Graus11-Aug-05 15:52
protectorChristian Graus11-Aug-05 15:52 
GeneralRe: Exit codes Pin
Jose Lamas Rios11-Aug-05 16:33
Jose Lamas Rios11-Aug-05 16:33 
GeneralRe: Exit codes Pin
#realJSOP11-Aug-05 23:14
professional#realJSOP11-Aug-05 23:14 
GeneralRe: Exit codes Pin
David Crow12-Aug-05 3:35
David Crow12-Aug-05 3:35 
Generalproblem about password editbox does not show "******" on Windows xp Pin
mike shen11-Aug-05 15:43
mike shen11-Aug-05 15:43 
GeneralRe: problem about password editbox does not show "******" on Windows xp Pin
Jose Lamas Rios11-Aug-05 16:05
Jose Lamas Rios11-Aug-05 16:05 
GeneralRe: problem about password editbox does not show "******" on Windows xp Pin
mike shen11-Aug-05 18:08
mike shen11-Aug-05 18:08 
GeneralRe: problem about password editbox does not show "******" on Windows xp Pin
Jose Lamas Rios11-Aug-05 18:38
Jose Lamas Rios11-Aug-05 18:38 
GeneralRe: problem about password editbox does not show "******" on Windows xp Pin
toxcct11-Aug-05 21:24
toxcct11-Aug-05 21:24 
GeneralProblem passing bitmap paths from C++ to .NET DLL Pin
mpastchenko11-Aug-05 14:39
mpastchenko11-Aug-05 14:39 
GeneralRe: Problem passing bitmap paths from C++ to .NET DLL Pin
Christian Graus11-Aug-05 14:49
protectorChristian Graus11-Aug-05 14:49 
GeneralRe: Problem passing bitmap paths from C++ to .NET DLL Pin
mpastchenko12-Aug-05 14:22
mpastchenko12-Aug-05 14:22 
GeneralPass message for the parent to handle Pin
DarkLizener11-Aug-05 12:50
DarkLizener11-Aug-05 12:50 
GeneraliSeries AS400 APIs Pin
Camron11-Aug-05 11:34
Camron11-Aug-05 11: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.