Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: non-closable dialog Pin
20-Dec-01 9:39
suss20-Dec-01 9:39 
GeneralEnumerating Catalogs using OLE DB Pin
PaulJ20-Dec-01 6:39
PaulJ20-Dec-01 6:39 
GeneralRe: Enumerating Catalogs using OLE DB Pin
Rashid Thadha20-Dec-01 6:48
Rashid Thadha20-Dec-01 6:48 
GeneralRe: Enumerating Catalogs using OLE DB Pin
PaulJ20-Dec-01 7:07
PaulJ20-Dec-01 7:07 
Questionhow to use LoadResource() Pin
Kuniva20-Dec-01 3:34
Kuniva20-Dec-01 3:34 
AnswerRe: how to use LoadResource() Pin
Pierre Heler-Caruel20-Dec-01 4:28
Pierre Heler-Caruel20-Dec-01 4:28 
Generali tried Pin
Kuniva20-Dec-01 8:00
Kuniva20-Dec-01 8:00 
GeneralRe: i tried Pin
Pierre Heler-Caruel20-Dec-01 20:51
Pierre Heler-Caruel20-Dec-01 20:51 
Hi,

sorry to hear it didn't work.

Normally, you should name your Resource Ids as usual (i.e. no quotes) and use MAKEINTRESOURCE(ResourceId) as this is the usual way.
Having said that, there are two things you can try:
1) Ensure the Type of Resource for the file matches the type you use in FindResource(). My recommendation would be to define your own resource-type (for instance "SCREEN_SAVER") when you import the file in your project. Then use that name (note the quotes) as the Resource-type
2) Visual Studio has a funny way of not rebuilding correctly if you have changed the resource (this doesn't happen all the time though... I guess it's a "feature";)
So instead of just doing a compile (F7) do a clean then rebuild all of your project and try again.

BTW if you send me your .rc file and the associated file to import, I can give it a shot for you.

Let me know.

Cheers,

Pierre Heler-Caruel
GeneralRe: i tried Pin
Kuniva21-Dec-01 2:53
Kuniva21-Dec-01 2:53 
GeneralRe: i tried Pin
Pierre Heler-Caruel21-Dec-01 4:18
Pierre Heler-Caruel21-Dec-01 4:18 
GeneralRe: i tried Pin
Kuniva21-Dec-01 6:16
Kuniva21-Dec-01 6:16 
AnswerRe: how to use LoadResource() Pin
Joaquín M López Muñoz20-Dec-01 4:28
Joaquín M López Muñoz20-Dec-01 4:28 
Answeri tried Pin
Kuniva20-Dec-01 6:20
Kuniva20-Dec-01 6:20 
AnswerRe: how to use LoadResource() Pin
Derek Waters20-Dec-01 11:02
Derek Waters20-Dec-01 11:02 
GeneralRe: how to use LoadResource() Pin
Kuniva21-Dec-01 2:53
Kuniva21-Dec-01 2:53 
GeneralRe: how to use LoadResource() Pin
Derek Waters1-Jan-02 10:48
Derek Waters1-Jan-02 10:48 
GeneralRe: how to use LoadResource() Pin
Kuniva2-Jan-02 5:04
Kuniva2-Jan-02 5:04 
Question"With" statement in MFC? Pin
User 665820-Dec-01 3:29
User 665820-Dec-01 3:29 
GeneralRe: "With" statement in MFC? Pin
User 665820-Dec-01 7:12
User 665820-Dec-01 7:12 
GeneralRe: "With" statement in MFC? Pin
Chris Losinger20-Dec-01 7:28
professionalChris Losinger20-Dec-01 7:28 
GeneralRe: "With" statement in MFC? Pin
User 665820-Dec-01 7:45
User 665820-Dec-01 7:45 
AnswerRe: "With" statement in MFC? Pin
Chris Losinger20-Dec-01 3:43
professionalChris Losinger20-Dec-01 3:43 
GeneralRe: "With" statement in MFC? Pin
Nemanja Trifunovic20-Dec-01 7:16
Nemanja Trifunovic20-Dec-01 7:16 
AnswerRe: "With" statement in MFC? Pin
Alvaro Mendez20-Dec-01 12:08
Alvaro Mendez20-Dec-01 12:08 
Generalproblem with delete Pin
Arjan Schouten20-Dec-01 3:15
Arjan Schouten20-Dec-01 3:15 

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.