Original Post
I'm not sure this is possible, but I want to try and assign a #define value through macro. I'm trying to avoid using this as a global constant because ultimately this number produced will only be used once. And because of some of the crossplatform nature of this code, it is only relavent if compiled for a Windows machine, though this may be unavoidable. I want to have a macro SetWinsockVersion(x,y) which would create a define that stores the result of a calculation in a preprocessor define called WINSOCKVER. So what I want is something along the lines of WINSOCKVER = SetWinsockVersion(x,y) exception I don't think this is possible using just the preprocessor. Let me know if that made no sense what so ever.