Strange compile problem
-
I have a managed class called
ConfigManager
, with a static method:static void StartService() {...}
. When I compile, the compiler changes the method name tostatic void StartService**A**() {..}
. If I change the method name toStartServiceBlaBla
, the compiler doesn't change it. Any one has an idea? Thanks, Yaakov -
I have a managed class called
ConfigManager
, with a static method:static void StartService() {...}
. When I compile, the compiler changes the method name tostatic void StartService**A**() {..}
. If I change the method name toStartServiceBlaBla
, the compiler doesn't change it. Any one has an idea? Thanks, YaakovWhen you include windows.h it defines some macros. One of them is like this: #define StartService StartServiceA This is used to replace the windows function StartService with the non-unicode version of it. To get around this problem you can either rename your function or include the following line after you include windows.h. #undef StartService
-
When you include windows.h it defines some macros. One of them is like this: #define StartService StartServiceA This is used to replace the windows function StartService with the non-unicode version of it. To get around this problem you can either rename your function or include the following line after you include windows.h. #undef StartService