944,129 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1839
  • C++ RSS
Sep 11th, 2006
1

How should I make a cast?

Expand Post »
[cpp code]
hIcon = LoadImage(NULL, "menu_two.ico", IMAGE_ICON, 32, 32, LR_LOADFROMFILE);
error C2440: '=' : cannot convert from 'void *' to 'struct HICON__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
So I think I should make a cast to make this work at C++ compiler,but how?
Similar Threads
Reputation Points: 57
Solved Threads: 0
Light Poster
linq is offline Offline
32 posts
since Sep 2006
Sep 11th, 2006
0

Re: How should I make a cast?

Here is an example
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,961 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Help! error LNK2001 & error LNK
Next Thread in C++ Forum Timeline: Linked list





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC