Re: resource files

Tech-Archive recommends: Fix windows errors by optimizing your registry



might be silly

Why? For me, patching the production binaries _of your own_ is silly, if you
can rebuild.

Patching the binaries _of another parties_ is not silly, but possibly not legal
either :-)

Is there any rebuild command.I normally use build -cwZ.

For me, "build -c" is enough.

By the way one way of doing it(actually I am doing it in this way)
1.set a compilation flag in source file as you said.Depending upon that my
variables are set in the resource file.For this I need to have 2 source files
if I am right?

....or uncomment the entry in the single SOURCES file before full rebuild, or
set the environment variable.

Is there any other way of doing it.like after I build my driver if I run
some script or something the company name ,product name etc should be
changed.ie,when I right click my driver properties I should see 2 different
entries.

In SOURCES:

!IFDEF VERSION_B
C_DEFINES=$(C_DEFINES) -DVERSION_B
!ENDIF

In .RC file:

#ifdef VERSION_B
#else
#endif

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: Parser error in Global.asax
    ... end of the file), save it and rebuild. ... In every project I try to compile and run, I'm getting a parser error on ... details and modify your source file appropriately. ... Parser Error Message: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How Javac works
    ... For every generated file you would have to keep a record of its timestamp and the timestamp of all its dependencies. ... Then when building again if any timestamp has changed then you rebuild. ... changed from mto m, or the value of some static final has changed, e.g. flipping DEBUGGING = true to DEBUGGING = false. ... So while A may depend on B and B is up to date with its source file there may be a hundred files that B depends on that are out of date but they won't be checked because the analysis stops at B because B was up to date. ...
    (comp.lang.java.programmer)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • How to modify and rebuild source code (like Calibrui)?
    ... User Interface Component": ... I need to make a small change to calibrui.cpp, so I edited the source file ... I guess I don't know how to "rebuild the ... calibrui.rc, makefile, makefile.inc, and sources. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: The Sci-Fi Rejection Letter That Time Forgot
    ... nations have stockpiled arsenals of these incredible bombs and the time the story is set. ...
    (rec.arts.sf.written)