| | |
How should I make a cast?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2006
Posts: 32
Reputation:
Solved Threads: 0
[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?
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
- Why use dynamic cast (C++)
- Final Fantasy VII (Geeks' Lounge)
- how to make a furoms site (Growing an Online Community)
- Should replacing a 15" laptop screen with 14.1" make a difference? (Monitors, Displays and Video Cards)
- IDEA :: Make Notes in Internet Explorer (Web Browsers)
- make?? (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: Help! error LNK2001 & error LNK
- Next Thread: Linked list
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






