Re: MFC resources

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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 resources
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.

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: How can I access images in the Resources folder?
    ... Usually a "resource" is embedded in the EXE file and is read directly from ... if this file is supposed to be in a folder under the current directory ... wish one day to have both external files and embedded resources in your EXE ... Private Sub KaartenComboBox_SelectedIndexChanged(ByVal sender As ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB res file
    ... The res file becomes part of the exe file during the build ... > The Api does provide a means to modify resources in a module that is ... > a separate dll) but it has some drawbacks, ... > A) The aforementioned Api methods are tedious. ...
    (microsoft.public.vb.general.discussion)
  • Re: Windows Task Manager.......can someone advise on how to interpert the information?
    ... A _process_ is usually an exe file. ... A process contains virtual memory, ... code, resources and data. ... of the parent process. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Application that makes EXE
    ... It is merely changing the image or appending text. ... the purpose of the code was just to show a sample for the simple (but ... I don't know what the OP really wants; if he wants to build a new EXE file ... resources and adjusting the resource with specific information has not this ...
    (microsoft.public.vc.mfc)
  • Re: Size of EXE
    ... jsut until today this has worked fine. ... MV> It has 88% fri system resources. ... MV> This eventhough the was no other programs running on the machine (besides scheduled job ... MV> Will this happen when I reach a specific size of the EXE file? ...
    (borland.public.delphi.ide)