I’m porting a piece of code from VC6 to VS2008. The code typedefs HSPRITE as int. But Windows SDK 6.1 already declared HSPRITE through DECLARE_HANDLE. I don’t want to rename HSPRITE in my code since it will consume a lot of time to rename it in .cpp files. So, how can I undeclare HSPRITE?
I’m porting a piece of code from VC6 to VS2008. The code typedef s
Share
Best is what @ybungalobill says. If you absolutely cannot use his answer, you can also trick windows.h into not declaring it, like this: