Pretty offten some programms from other oses use in their code different kind of variables for their internal purposes, and offten in let's say games, you have Screen, Point, EventHandler and co, which all the time conflicts with SDK ones. Currently, i have just 2 ways to fix it: 1. Disable it in SDK. That way fast, as need to change only in one place, but its bad just because you can forget about that commenting and have lots of errors later, while you will trying to understand why. 2. Change them in the code of the apps itself. That more or less kind of ok way (as we didn't touch SDK), just madness slow and very boring. Imagine hundreds of files, where Screen vairable used, and i need manually check every source code, found Screen words, check if it not something like ScreenXXXXX or xxxxScreenxxxx, or just some plain-comment-text, and change it on something like ScreenA or kind, if it what i search for (so i can't automatise it, as there is many different scenearios when it should't be changed). Have anyone any ideas how it can be easy workorounded, so no more manuall changes every will be made , and everything will works as should and in SDK, and in the apps code itself ? I think that maybe it possible in the SDK files, one time add some #ifdefs maybe or kind.. Any ideas are welcome.
Mon, 2012-05-07 12:41#1
how to avoid apps<->SDK variables conflicts in best way ?