windows.h for mac?

Nov 5, 2015 at 7:45pm
Hello,

I got an error message by including windows.h in xcode.
Is there any other library that has same function as windows.h in xcode?

Thank you for the help in advance
Nov 5, 2015 at 8:16pm
windows.h is for the Windows operating system. If you want to write programs that work on most systems you should use cross-platform libraries.
Last edited on Nov 5, 2015 at 8:17pm
Nov 5, 2015 at 10:27pm
Hi Peter87,

I am new to c++ programming.
Could you please tell me how I utilize cross-platform libraries in xcode?

Thank you
Nov 6, 2015 at 5:47am
I don't know exactly how to do it in xcode (I have never used it). The libraries that you should use depends on what you want to do. I don't think any single library covers all functionality in the WinAPI.
Last edited on Nov 6, 2015 at 5:47am
Nov 6, 2015 at 12:44pm
closed account (48T7M4Gy)
windows.h is the (c++) header file for all functions in the Windows API. Because the API is the interface to the underlying Windows operating system it is of no use with an unmodified Mac.

You could probably write C++ programs using the windows.h files using xCode, but I doubt whether it would compile so it's not the way to go.

There are a few threads around this forum recently that covered suggestions on designing platform independent GUI's. - WxWidgets and others

Apple have Swift et al but that's platform specific to Apple 'stuff' eg, OSX, IOS and favous the use of Objective-C

http://www.cplusplus.com/faq/intro/#gui
Last edited on Nov 6, 2015 at 12:50pm
Topic archived. No new replies allowed.