[Mod Note: Split from here: http://cboard.cprogramming.com/cplus...ion-error.html
Please don't resurrect old threads. Instead, create a new one and put in a link to the old.]
Not to bring up dead threads, but could you post code? I can't get the code to work, even when I moved the #define to be under the function.