Page 1 of 1

C/C++ program resources & VC++...

Posted: Thu Feb 11, 2010 8:50 pm
by ATC
Hey guys,

Never considered this before (never needed to, really), but does adding project resources end up causing the VS/VC++ compiler/linker to slip in any Windows specific code to the executable? I know certain things definitely will, like Win32 components. I'm, on the other hand, talking about string tables/lists, files, etc. I compiled a console app that I added a resource file and one bitmap to, and skimmed through it in PE Browser to see if anything caught my eye. Didn't really notice anything other than some XML/manifest which I can remove (if needed). Just curious what the implications of using the project resources/tools will be. Anyone know if this can cause problems on other platforms?

Re: C/C++ program resources & VC++...

Posted: Thu Feb 11, 2010 10:53 pm
by neon
Hello,

It does not. It just includes the resource as one would expect.

Re: C/C++ program resources & VC++...

Posted: Thu Feb 11, 2010 11:37 pm
by ATC
Oooh! Great! :D Thanks!

Nice to know. I was worried I might go do a bunch of stuff and later get the unpleasant surprise of some Windows API-related code getting linked in behind the scenes. Had stuff like that happen to me before, and it's always a pain. Sometimes I think the absolute worst "bugs" aren't even in your code; they're the problems with files/directories, linkers and compiler switches. :? Can't stand those "WTF moments" where nothing is apparently wrong, then you find out 2 hours later you forgot to check some "magic" box. :lol:

Re: C/C++ program resources & VC++...

Posted: Fri Feb 12, 2010 2:15 am
by Solar
Keep your files under version control. They can't change without you noticing (and approving), that way. (Among several other advantages.)

Re: C/C++ program resources & VC++...

Posted: Fri Feb 12, 2010 2:23 pm
by ATC
Yup! :wink: Problem is, sometimes you want those changes because you think you're doing it correctly or you don't set things up correctly in the first place. Version control is a great tool, but can't save you from yourself! :lol: The programmer is often his own worst enemy and biggest bug producer, though it's always more convenient to blame these dumb computers! :wink: