load string from stringtable inside a windows service
- From: Janma <rohitku@xxxxxxxxx>
- Date: Thu, 12 Feb 2009 02:08:07 -0800 (PST)
I am using a windows service and am calling an mfc function which
writes to log. The function is inside another MFC App project. Inside
that function i am loading a string from stringtable and writing it to
the logfile. The issue is that the string is not getting written to
the log. If before writing to the log, i display the string in
messagebox, it shows up correctly. but its not showing in the log
file.
In DLL we do a AFX_MANAGE_STATE(AfxGetStaticModuleState()). Do we have
to do that in service also?
Can anyone tell why this is happening?
Thanks,
Rohit
.
- Follow-Ups:
- Re: load string from stringtable inside a windows service
- From: Mihai N.
- Re: load string from stringtable inside a windows service
- From: Joseph M . Newcomer
- Re: load string from stringtable inside a windows service
- From: Ajay Kalra
- Re: load string from stringtable inside a windows service
- From: Tom Serface
- Re: load string from stringtable inside a windows service
- Prev by Date: Re: Can't compile VC++ program that call a VB DLL
- Next by Date: XP/Windows classic style
- Previous by thread: Re: CScrollView: How to Tell If Scroll Bar Visbile
- Next by thread: Re: load string from stringtable inside a windows service
- Index(es):
Relevant Pages
|