Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary resource in Windows service? Pin
James R. Twine16-May-05 6:21
James R. Twine16-May-05 6:21 
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 
   When you said an "MFC based service" before, do you really mean a MFC service, or an ATL service with "support MFC" checked.  If you have the latter, you need to "fool" MFC by doing the following:
CWinApp waWA;

waWA.m_hInstance = _Module.GetModuleInstance();
afxCurrentInstanceHandle = _Module.GetModuleInstance();    // Or ::GetModuleHandle( NULL )
afxCurrentResourceHandle = _Module.GetResourceInstance();  // Or ::GetModuleHandle( NULL )
   Then things that refrence the global CWinApp instance will work correctly.  Kludgy, but that is what you get for mixing MFC and ATL with VC++ 6.0! Smile | :)

   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
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 
GeneralRe: Please help me Pin
microsoftcertificate16-May-05 6:22
sussmicrosoftcertificate16-May-05 6:22 
GeneralRe: Please help me Pin
Christian Graus16-May-05 14:25
protectorChristian Graus16-May-05 14:25 
GeneralRe: Please help me Pin
ucc80116-May-05 20:31
ucc80116-May-05 20:31 
GeneralBrowsing workgroups Pin
badzio16-May-05 3:33
badzio16-May-05 3:33 
GeneralRe: Browsing workgroups Pin
David Crow16-May-05 3:38
David Crow16-May-05 3:38 
GeneralRe: Browsing workgroups Pin
badzio16-May-05 21:54
badzio16-May-05 21:54 
GeneralRe: Browsing workgroups Pin
David Crow17-May-05 3:52
David Crow17-May-05 3:52 

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.