Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual Studio 2008 -> Aonix ObjectAda 8.4 Pin
CPallini16-Jun-09 21:24
mveCPallini16-Jun-09 21:24 
QuestionOpenGl Library files Pin
002comp16-Jun-09 20:20
002comp16-Jun-09 20:20 
AnswerRe: OpenGl Library files Pin
Chandrasekharan P16-Jun-09 20:33
Chandrasekharan P16-Jun-09 20:33 
AnswerRe: OpenGl Library files Pin
Naveen16-Jun-09 23:14
Naveen16-Jun-09 23:14 
QuestionGetting faulting module OLEACC.dll, version 4.2.5406.0 error in Event viewer application log ? Pin
shan_chandru16-Jun-09 20:11
professionalshan_chandru16-Jun-09 20:11 
QuestionHow to get Windows media player status(playing/paused) by SendMessage Pin
Md. Ali Naser Khan16-Jun-09 19:23
Md. Ali Naser Khan16-Jun-09 19:23 
AnswerRe: How to get Windows media player status(playing/paused) by SendMessage Pin
Member 139415367-Aug-18 15:17
Member 139415367-Aug-18 15:17 
QuestionVC++ 6.0 SetupDiGetClassImageList query Pin
callousfantom16-Jun-09 19:23
callousfantom16-Jun-09 19:23 
Hi.Does anyone know how to cast an SP_CLASSIMAGELIST_DATA structure to CImageList class? Is it possible? I'm guessing it should be but can't seem to be able to do it. Actually I've retrieved an imagelist of all devices using SetupDiGetClassImageList function into a SP_CLASSIMAGELIST_DATA structure. I'm now trying to set it to be the imageList of my Tree Control that lists the devices. However due to these casting issues I get a runtime assertion error and my application crashes. Any ideas?
I've tried the following methods but have failed with the same runtime error.
Method 1:
<i>PSP_CLASSIMAGELIST_DATA imageList;
SetupDiGetClassImageList(imageList);
<b>m_Tree.SetImageList((CImageList *)imageList->ImageList,TVSIL_NORMAL);</b></i>

Method 2:
<i>PSP_CLASSIMAGELIST_DATA imageList;
CImageList imList;
SetupDiGetClassImageList(imageList);
<b>imList.Attach(imageList->ImageList);
m_Tree.SetImageList(imList,TVSIL_NORMAL);</b></i>

I have bolded the lines that are causing the crash.
QuestionRe: VC++ 6.0 SetupDiGetClassImageList query Pin
norish16-Jun-09 20:06
norish16-Jun-09 20:06 
AnswerRe: VC++ 6.0 SetupDiGetClassImageList query Pin
callousfantom16-Jun-09 21:25
callousfantom16-Jun-09 21:25 
QuestionRe: VC++ 6.0 SetupDiGetClassImageList query Pin
norish17-Jun-09 2:27
norish17-Jun-09 2:27 
AnswerRe: VC++ 6.0 SetupDiGetClassImageList query [modified] Pin
callousfantom18-Jun-09 19:01
callousfantom18-Jun-09 19:01 
GeneralRe: VC++ 6.0 SetupDiGetClassImageList query Pin
norish19-Jun-09 5:44
norish19-Jun-09 5:44 
GeneralRe: VC++ 6.0 SetupDiGetClassImageList query Pin
Po-Yu14-Jul-10 16:45
Po-Yu14-Jul-10 16:45 
Question[Message Deleted] Pin
V K 216-Jun-09 18:42
V K 216-Jun-09 18:42 
AnswerRe: How to modify copyright information for a MFC dll Pin
Nibu babu thomas16-Jun-09 18:53
Nibu babu thomas16-Jun-09 18:53 
AnswerRe: How to modify copyright information for a MFC dll Pin
_AnsHUMAN_ 16-Jun-09 19:15
_AnsHUMAN_ 16-Jun-09 19:15 
QuestionHow to get file version of an MFC application? Pin
kapardhi16-Jun-09 18:26
kapardhi16-Jun-09 18:26 
AnswerRe: How to get file version of an MFC application? Pin
Nibu babu thomas16-Jun-09 18:48
Nibu babu thomas16-Jun-09 18:48 
QuestionRe: How to get file version of an MFC application? Pin
kapardhi16-Jun-09 23:47
kapardhi16-Jun-09 23:47 
AnswerRe: How to get file version of an MFC application? Pin
Nibu babu thomas17-Jun-09 1:53
Nibu babu thomas17-Jun-09 1:53 
QuestionIs this do able in VC++? Or is there a better way. Pin
FISH78616-Jun-09 11:51
FISH78616-Jun-09 11:51 
AnswerRe: Is this do able in VC++? Or is there a better way. Pin
Garth J Lancaster16-Jun-09 12:25
professionalGarth J Lancaster16-Jun-09 12:25 
GeneralRe: Is this do able in VC++? Or is there a better way. Pin
FISH78616-Jun-09 12:41
FISH78616-Jun-09 12:41 
GeneralRe: Is this do able in VC++? Or is there a better way. Pin
Garth J Lancaster16-Jun-09 12:44
professionalGarth J Lancaster16-Jun-09 12:44 

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.