New topic: Determine compiler version in code?
<http://forums.realsoftware.com/viewtopic.php?t=46093> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message MarkHolbrook Post subject: Determine compiler version in code?Posted: Fri Nov 30, 2012 10:13 am Joined: Wed Mar 01, 2006 6:48 pm Posts: 199 Hi All, Lots of compilers I've used have a way of determining the compiler version in code. For example Delphi compilers define a "VER###" string. We've used this to make certain Delphi units work across compiler versions. I know that generally this is not something you really want to do but sometimes you need to do it. For example I have a program that extracts weather data from a JSON feed. (see this thread: http://forums.realsoftware.com/viewtopic.php?t=45282). This program worked fine under RB2011R4.3. It has not worked since that version due to some changes in the HTTP socket. Under 2011R4.3 a call to the JSON feed returns a page received. Under anything newer page received never gets called. Since I cannot change the code providing the JSON feed (I have notified them of potential problems with their feed) I'm forced to make my code work with it. This leaves me with two choices. I either continue to use 2011R4.3 for this project OR if I had a way to determine in the code that the compiler version was 2011R4.3 or 2012R1.1 then I could have the code compiled differently to get around this issue. I've searched but I cannot see that RB has anything like this. _________________ Colorado, USA Primary: BioMedical/Custom Applications - www.sysdyn.com Secondary: Handheld/Custom Applications - www.mrhswco.com Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
