Click here to Skip to main content
15,912,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FindFirstFile and CFileFind Pin
Chris Losinger16-May-05 9:22
professionalChris Losinger16-May-05 9:22 
GeneralRe: FindFirstFile and CFileFind Pin
David Crow16-May-05 10:32
David Crow16-May-05 10:32 
GeneralRe: FindFirstFile and CFileFind Pin
Blake Miller17-May-05 5:20
Blake Miller17-May-05 5:20 
GeneralRe: FindFirstFile and CFileFind Pin
David Crow17-May-05 5:30
David Crow17-May-05 5:30 
GeneralTimestamp challenges Pin
rexpiper16-May-05 8:58
rexpiper16-May-05 8:58 
GeneralRe: Timestamp challenges Pin
David Crow16-May-05 10:39
David Crow16-May-05 10:39 
QuestionBinary resource in Windows service? Pin
RoyceF16-May-05 5:47
RoyceF16-May-05 5:47 
AnswerRe: Binary resource in Windows service? Pin
James R. Twine16-May-05 6:21
James R. Twine16-May-05 6:21 
   This might sound like a stupid question, but is it an MFC-based service?  For example, if this is an ATL-based service, functions like that will fail because you are likely to not have a real MFC CWinApp around.

   You DID check the pointer returned by AfxGetApp to ensure that it is not NULL right?

   Move away from the MFC-based resource functions and take a look at the native Win32 ones, like FindResourceEx(...) and LoadResource if you have no useful MFC "state" available in your service.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: Binary resource in Windows service? Pin
RoyceF16-May-05 8:01
RoyceF16-May-05 8:01 
GeneralRe: Binary resource in Windows service? Pin
James R. Twine16-May-05 8:40
James R. Twine16-May-05 8:40 
GeneralRe: Binary resource in Windows service? Pin
RoyceF16-May-05 11:28
RoyceF16-May-05 11:28 
GeneralRe: Binary resource in Windows service? Pin
James R. Twine17-May-05 0:42
James R. Twine17-May-05 0:42 
GeneralRe: Binary resource in Windows service? Pin
RoyceF17-May-05 5:13
RoyceF17-May-05 5:13 
GeneralRe: Binary resource in Windows service? Pin
Blake Miller17-May-05 5:23
Blake Miller17-May-05 5:23 
GeneralRe: Binary resource in Windows service? Pin
James R. Twine17-May-05 8:24
James R. Twine17-May-05 8:24 
GeneralRe: Binary resource in Windows service? Pin
RoyceF17-May-05 8:41
RoyceF17-May-05 8:41 
GeneralRe: Binary resource in Windows service? Pin
RoyceF17-May-05 8:42
RoyceF17-May-05 8:42 
GeneralRe: Binary resource in Windows service? Pin
James R. Twine17-May-05 12:17
James R. Twine17-May-05 12:17 
GeneralRe: Binary resource in Windows service? Pin
RoyceF17-May-05 12:30
RoyceF17-May-05 12:30 
GeneralRe: Binary resource in Windows service? Pin
RoyceF17-May-05 12:43
RoyceF17-May-05 12:43 
GeneralGetTextExtentExPoint Pin
webmaster123446365316-May-05 4:42
susswebmaster123446365316-May-05 4:42 
GeneralRe: GetTextExtentExPoint Pin
Chris Losinger16-May-05 4:52
professionalChris Losinger16-May-05 4:52 
GeneralRe: GetTextExtentExPoint Pin
ucc80116-May-05 20:27
ucc80116-May-05 20:27 
QuestionHow Can I check file permissions? Pin
Dimitris Vikeloudas16-May-05 4:18
Dimitris Vikeloudas16-May-05 4:18 
GeneralPlease help me Pin
microsoftcertificate16-May-05 3:54
sussmicrosoftcertificate16-May-05 3:54 

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.