InitCommonControlsEx

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2005
Posts: 109
Reputation: complete is an unknown quantity at this point 
Solved Threads: 0
complete's Avatar
complete complete is offline Offline
Junior Poster

InitCommonControlsEx

 
0
  #1
Mar 27th, 2006
I wonder what I am doing wrong here:

INITCOMMONCONTROLSEX InitCtrlEx;

InitCtrlEx.dwSize=sizeof(INITCOMMONCONTROLSEX)

InitCommonControlsEx(&InitCtrlEx);
And why I get this error:

error C2440: 'type cast' : cannot convert from 'int' to 'struct tagINITCOMMONCONTROLSEX'
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: InitCommonControlsEx

 
0
  #2
Mar 27th, 2006
Try something like this.
INITCOMMONCONTROLSEX InitCtrlEx;
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCtrlEx.dwICC  = ICC_PROGRESS_CLASS; // This depends on the control you are tryinn to initialize
InitCommonControlsEx(&InitCtrlEx);
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 109
Reputation: complete is an unknown quantity at this point 
Solved Threads: 0
complete's Avatar
complete complete is offline Offline
Junior Poster

Re: InitCommonControlsEx

 
0
  #3
Mar 29th, 2006
Thanks.

I was missing a semi-colon.

How embarassing!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC