Re: MFC resources
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 20:54:14 -0500
I agree. Why is the notion of editing resources something you care about? If someone
changes your executable, the most likely thing that will happen is that it will break.
Note that you have to deal with issues of localization in the presence of checksums, so
the checksums have to be stored in the resources as well. If you pick something
well-known like SHA-1 then anyone can recompute them.
It is reasonably safe to assume that you have no control over someone editing resources.
BUt as Tom says, they get what they deserve.
joe
On Tue, 30 Oct 2007 15:01:28 -0700, "Tom Serface" <tom.nospam@xxxxxxxxxxxxx> wrote:
You could build some sort of checksum into your code based on the resourcesJoseph M. Newcomer [MVP]
and check that at runtime. It would make starting up a little more time
consuming, but ...
I think if a user modifies the .EXE they sort of get what they get. They
can always reinstall.
Tom
"GT" <tihenea@xxxxxxxxxxx> wrote in message
news:uHty1hyGIHA.3768@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Is there a way to mark an executable (mfc app) in such a way that no
tool can easily edit the resources? As it is I can just use vs.net 2005 to
open the .exe file and then I can not only see all the resources, but I
can also change them. There has to be a way to just tell the compiler or
the linker to include them in such a form so they cannot be edited?
Thanks,
G.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: MFC resources
- From: Tom Serface
- Re: MFC resources
- References:
- MFC resources
- From: GT
- MFC resources
- Prev by Date: Re: ListViewControl - Custom Draw
- Next by Date: Re: CFrameWnd client area rect
- Previous by thread: MFC resources
- Next by thread: Re: MFC resources
- Index(es):
Relevant Pages
|