Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenPrinter Pin
Member 81460314-Jan-04 7:36
Member 81460314-Jan-04 7:36 
GeneralResource File Pin
Anthony988714-Jan-04 4:53
Anthony988714-Jan-04 4:53 
GeneralRe: Resource File Pin
Prakash Nadar14-Jan-04 6:14
Prakash Nadar14-Jan-04 6:14 
GeneralRe: Resource File Pin
David Crow14-Jan-04 6:45
David Crow14-Jan-04 6:45 
Generalasking for help Pin
projectjak14-Jan-04 4:24
projectjak14-Jan-04 4:24 
GeneralRe: asking for help Pin
Prakash Nadar14-Jan-04 6:16
Prakash Nadar14-Jan-04 6:16 
GeneralRe: asking for help Pin
David Crow14-Jan-04 6:52
David Crow14-Jan-04 6:52 
GeneralProblem finding imported resources in MCF project Pin
Ricardo Briceno14-Jan-04 4:13
Ricardo Briceno14-Jan-04 4:13 
Hi,

I'm having problems importing and using a WAV file within my MCF project.

IN VC++ 6, I went to the resource tab and imported the WAV file. I can actually see the declaration of the resource in the .rc file

But when I use FindResource(), this function does not find it so it returns NULL.

-- Here is the declaration in the .rc file:

IDR_WAVE1 WAVE DISCARDABLE "res\\ring1.wav"

-- Here is how I'm trying to find that resource:

HRSRC hResInfo;
HINSTANCE Nl=AfxGetInstanceHandle();
hResInfo = FindResource(Nl,"IDR_WAVE1","WAVE");

It seems that it finds the type "WAVE" but not the resource name "IDR_WAVE1" because the error returned by GetLastError() is the 1814 = No resource name found.

I appreciate any hint or suggestion. Thank you in advance.

R.B.
GeneralRe: Problem finding imported resources in MCF project Pin
Michael Dunn14-Jan-04 4:37
sitebuilderMichael Dunn14-Jan-04 4:37 
GeneralNon-/Volatile Registers Pin
Alexander M.,14-Jan-04 3:09
Alexander M.,14-Jan-04 3:09 
GeneralRe: Non-/Volatile Registers Pin
Prakash Nadar14-Jan-04 6:19
Prakash Nadar14-Jan-04 6:19 
GeneralRe: Non-/Volatile Registers Pin
Alexander M.,15-Jan-04 5:03
Alexander M.,15-Jan-04 5:03 
GeneralRe: Non-/Volatile Registers Pin
Prakash Nadar15-Jan-04 16:01
Prakash Nadar15-Jan-04 16:01 
QuestionDelete contents of a file??? Pin
ttran770014-Jan-04 3:00
ttran770014-Jan-04 3:00 
AnswerRe: Delete contents of a file??? Pin
David Crow14-Jan-04 3:14
David Crow14-Jan-04 3:14 
AnswerRe: Delete contents of a file??? Pin
El'Cachubrey14-Jan-04 3:32
El'Cachubrey14-Jan-04 3:32 
AnswerRe: Delete contents of a file??? Pin
Alexander M.,14-Jan-04 4:10
Alexander M.,14-Jan-04 4:10 
GeneralHelp!!!Property page Pin
El'Cachubrey14-Jan-04 2:42
El'Cachubrey14-Jan-04 2:42 
GeneralRe: Help!!!Property page Pin
David Crow14-Jan-04 2:49
David Crow14-Jan-04 2:49 
GeneralRe: Help!!!Property page Pin
El'Cachubrey14-Jan-04 3:14
El'Cachubrey14-Jan-04 3:14 
GeneralPointer to user-defined fields Pin
derzellner14-Jan-04 2:26
derzellner14-Jan-04 2:26 
GeneralRe: Pointer to user-defined fields Pin
l a u r e n14-Jan-04 9:50
l a u r e n14-Jan-04 9:50 
GeneralCDHTMLDialog with Frameset Pin
Kene14-Jan-04 2:21
Kene14-Jan-04 2:21 
QuestionHow to replace a variable everywhere in a big project ? Pin
Pierre_114-Jan-04 2:09
sussPierre_114-Jan-04 2:09 
AnswerRe: How to replace a variable everywhere in a big project ? Pin
Kene14-Jan-04 2:26
Kene14-Jan-04 2:26 

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.