|
-
Apr 30th, 2001, 05:08 PM
#1
Thread Starter
Fanatic Member
Using custom icons in Visual C++ 6
I made an icon, but when i try to load it using LoadIcon(), i get this error:
error C2664: 'LoadIconA' : cannot convert parameter 2 from 'const int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
I don't know what to do. I don't think casting it would solve it, so what should I do?
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 30th, 2001, 05:33 PM
#2
Monday Morning Lunatic
MAKEINTRESOURCE(IDI_ICON) rather than just IDI_ICON should do it.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 30th, 2001, 06:43 PM
#3
Thread Starter
Fanatic Member
It's not working, it shows up as the exclamation icon.
Alcohol & calculus don't mix.
Never drink & derive.
-
May 1st, 2001, 12:22 PM
#4
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|