Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReading and Writing files in Win32 Pin
14-Jun-01 9:11
suss14-Jun-01 9:11 
GeneralRe: Reading and Writing files in Win32 Pin
14-Jun-01 9:54
suss14-Jun-01 9:54 
GeneralGetting data from MSCOMM !!! Pin
Hadi Rezaee14-Jun-01 8:59
Hadi Rezaee14-Jun-01 8:59 
GeneralLoading small, built-in icons Pin
14-Jun-01 7:17
suss14-Jun-01 7:17 
GeneralRe: Loading small, built-in icons Pin
Ben Burnett14-Jun-01 7:41
Ben Burnett14-Jun-01 7:41 
GeneralRe: Loading small, built-in icons Pin
14-Jun-01 7:57
suss14-Jun-01 7:57 
GeneralRe: Loading small, built-in icons Pin
14-Jun-01 8:03
suss14-Jun-01 8:03 
GeneralRe: Loading small, built-in icons Pin
Ben Burnett14-Jun-01 9:19
Ben Burnett14-Jun-01 9:19 
I'd say, save yourself some greaf and just copy them into your applications resources. This will not only work, but be will garonted to work in the future.

BTW: I found this in MSDN

In LoadImage:

When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.

Windows 95/98/Me: The function finds the first image with the requested resource name in the cache, regardless of the size requested.


The second part does not seem to apply to you, but it seems you must use LR_SHARED on all Windows flavors.


-Ben

On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
Generalprint preview and multi frame app Pin
SAWilde14-Jun-01 6:35
SAWilde14-Jun-01 6:35 
GeneralSplitter window using C and NOT C++ Pin
14-Jun-01 6:33
suss14-Jun-01 6:33 
GeneralRe: Splitter window using C and NOT C++ Pin
Tomasz Sowinski15-Jun-01 0:01
Tomasz Sowinski15-Jun-01 0:01 
Generalarray of checkboxes Pin
14-Jun-01 6:18
suss14-Jun-01 6:18 
GeneralRe: array of checkboxes Pin
Carlos Antollini14-Jun-01 6:27
Carlos Antollini14-Jun-01 6:27 
Generalfine, don't answer my question, see if i care Pin
Amit Jain14-Jun-01 5:29
Amit Jain14-Jun-01 5:29 
GeneralRe: fine, don't answer my question, see if i care Pin
Tim Deveaux14-Jun-01 14:59
Tim Deveaux14-Jun-01 14:59 
GeneralRe: fine, don't answer my question, see if i care Pin
Amit Jain15-Jun-01 4:13
Amit Jain15-Jun-01 4:13 
GeneralSerialization question Pin
mr200314-Jun-01 4:15
mr200314-Jun-01 4:15 
GeneralRe: Serialization question Pin
Ben Burnett14-Jun-01 8:01
Ben Burnett14-Jun-01 8:01 
GeneralRe: Serialization question Pin
markkuk14-Jun-01 20:46
markkuk14-Jun-01 20:46 
Questionhow to set the IP address during programming Pin
14-Jun-01 3:07
suss14-Jun-01 3:07 
AnswerRe: how to set the IP address during programming Pin
Carlos Antollini14-Jun-01 4:26
Carlos Antollini14-Jun-01 4:26 
AnswerRe: it's tough! Pin
Masaaki Onishi14-Jun-01 6:55
Masaaki Onishi14-Jun-01 6:55 
GeneralRe: it's tough! Pin
15-Jun-01 1:53
suss15-Jun-01 1:53 
GeneralRe: it's tough! Pin
Masaaki Onishi15-Jun-01 3:59
Masaaki Onishi15-Jun-01 3:59 
GeneralCompare structures Pin
User 665814-Jun-01 1:36
User 665814-Jun-01 1:36 

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.