This question already has answers here:
Where can I get windows.h for Mac?
(3 answers)
Closed 4 months ago.
Is there any equivalent to windows.h for mac?
I've been googling it but I can't find anything.
I don't know if it matters but I am currently using Mountain Lion.
There is no direct equivalent. That is, no file for file substitute. It's a different platform after all. You will simply have to work with their API. And without knowing exactly what it is you want to do and what functionality you intend to use, it's hard to provide any additional information.
There is the Carbon API. Or better said, there was. Specifically since Mountain Lion, this API has been deprecated. The aforementioned link mentions some alternatives to deprecated functionality, though the Objective-C route might be a more easily manageable alternative.
Related
This question already has answers here:
Where are the man pages for C++? [closed]
(8 answers)
Closed 8 years ago.
I have some experience with Bash, Perl and R. I find it is very convenient to get help info with these three programming languages. However, when I start with C++, I fail to find such a help system. Did I miss something? Or, there is no such system at all?
Another problem puzzling me is C++ libraries. How to start to learn a new library? Is there a convenient way to get all the member functions for a new class? Or, do we have to read the header files to get the methods for the class?
Thanks!
If you have experience with bash, then you must be familiar with unix or linux systems, you can use man command like man 2 fwrite to find the standard c library manual for fwrite function.
However, for c-plus-plus, the manual is not inside the man directory by default (so far as I know).
You can download c-plus-plus manual from 'http://gcc.gnu.org/mirrors.html' to use manual for c++ standard library. Or try to use dash on Mac computer or Velocity on Windows platform instead. Besides, reading the manual from 'http://en.cppreference.com/w/' is my favorite way.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What XML parser should I use in C++?
It is generally required to parse application settings from local XML file under Linux platform and nothing more.
Requirements:
1. Can be used for commercial product
2. Free of charge
3. Easy to install (1 header file will be great)
4. Easy to use
5. Very stable
6. Unicode support
I think expat does everything you want.
I use Apache's xerces-c. It never gave me problems and you can find some useful info on Google, like: Tuto1.
Also, it is free of charge and you can use it commercial products.
have a look at boost::property_tree http://www.boost.org/doc/libs/1_52_0/doc/html/property_tree.html
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
High resolution timer with C++ and Linux?
double hires_time_in_seconds();
I'm looking for this function for Windows, Linux too if you have it.
It is mentioned in http://gafferongames.com/game-physics/fix-your-timestep/.
I've looked on the web.
I know it's not a standard function but if anybody has an implementation that they want to share, that would be great.
Failing that, I need something as fine grained as possible to do synchronization in a client server game.
It's not a real function, it's just a self-descriptive placeholder name used in that blog post's example code.
For Windows, you'll want to use QueryPerformanceCounter along with QueryPerformanceFrequency. For Unix-based OSes, you'll want to use gettimeofday(3).
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Objective C for Windows
I know there are several posts about this but I don't feel that any of them fit my scenario. I have been asked to learn Objective-C and write a report over its differences from C/C++ along with develop a presentation for my Programming Languages class. I would like to write a simple program using Objective-C but I do not have access to a Mac. I have a Windows machine and I am looking for an IDE that is not too complex (no need for source control or anything like that) but something that has a compiler (debugger is a plus). Any recommendations on what IDE to use for this? Thanks ahead of time.
Try GnuStep which has an IDE called ProjectCenter. It is aimed at reproducing the NextStep/OpenStep programming experience on multiple platforms, including Windows.
Take a look at MinGW. It contains all the compilers from the GNU Compiler Collection, which includes also the objective-c compiler.
Take at look at GNUstep.
I personally never tested it, but it's supposed to suport AppKit, which is the UI Framework for Mac OS X.
This question already has answers here:
Closed 12 years ago.
Possible Duplicates:
Detect Antivirus on Windows using C#
How to detect if a virusscanner and/or firewall is installed? (And a few other security-related Q's.)
is there a way to detect currently instaled av without searching for known processes?
Yes there is. You can use WMI, I assume you are asking about Windows, to check installed instances of an anti-virus program. It is quite simple from C# and this link gives a good explanation of how to do it. It is also possible to access WMI from C++ and that is explained here. Also for anything WMI related I highly recommend the WMI Studio.
It depends on the AV software and the OS but it looks like you can use WMI. Here's an example on using WMI script - using WMI from C++ is outside of my knowledge, sorry.
http://blogs.msdn.com/b/alejacma/archive/2008/05/12/how-to-get-antivirus-information-with-wmi-vbscript.aspx