¡@

Home 

c++ Programming Glossary: mac

Detecting endianness programmatically in a C++ program

http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program

time for OS which support multi architecture fat binary on Mac os x for example this will work for both ppc i386 whereas it..

Finding current executable's path without /proc/self/exe

http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe

seem entirely reliable. If you ever had to support say Mac OS X which doesn't have proc what would you have done Use #ifdefs.. share improve this question Some OS specific interfaces Mac OS X _NSGetExecutablePath man 3 dyld Linux readlink proc self..

Programmatically find the number of cores on a machine

http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine

exists what about determining it per platform Windows nix Mac c multicore share improve this question C 11 http en.cppreference.com.. numCPU sysinfo.dwNumberOfProcessors Linux Solaris AIX and Mac OS X for all OS releases 10.4 i.e. Tiger onwards per comments.. per comments numCPU sysconf _SC_NPROCESSORS_ONLN FreeBSD MacOS X NetBSD OpenBSD etc. int mib 4 size_t len sizeof numCPU set..

Difference between float and double

http://stackoverflow.com/questions/2386772/difference-between-float-and-double

double 1 the above example gives 9.000000000000000066 on Mac but all these floating point types suffer from round off errors..

What is the difference between an int and a long in C++?

http://stackoverflow.com/questions/271076/what-is-the-difference-between-an-int-and-a-long-in-c

IA 32 4 bytes Linux Intel 64 8 bytes Linux IA 64 8 bytes Mac OS X IA 32 4 bytes Mac OS X Intel 64 8 bytes share improve..

C++ Dynamic Shared Library on Linux

http://stackoverflow.com/questions/496664/c-dynamic-shared-library-on-linux

MyClass create myClass DoSomething destroy myClass On Mac OS X compile with g dynamiclib flat_namespace myclass.cc o myclass.so..

Use C++ with Cocoa Instead of Objective-C?

http://stackoverflow.com/questions/525609/use-c-with-cocoa-instead-of-objective-c

vanilla in its implementation on Linux and Windows but on Mac OS X it seems like additional Apple specific pieces of code.. be wrong. I am trying to find a path to write code on the Mac that would be easy to keep cross platform. Having to write code.. bill. Cross platform toolkits are generally despised by Mac users because they do not get all the L F details exactly right..

How to Compile for OS X in Linux or Windows?

http://stackoverflow.com/questions/693952/how-to-compile-for-os-x-in-linux-or-windows

I would like to port my C C apps to OS X. I don't have a Mac but I have Linux and Windows. Is there any tool for this c.. written to help get you set up cross compiling for the Mac I can't say how good they are or how applicable to your project... open source software then you may wish instead to create a MacPorts portfile documentation here and allow your users to build..

How to generate a stacktrace when my gcc C++ app crashes

http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes

many different users and it also runs on Linux Windows and Macintosh all versions are compiled using gcc . I would like my.. share improve this question For Linux and I believe Mac OS X if you're using gcc or any compiler that uses glibc you..

Simple way to unzip a .zip file using zlib

http://stackoverflow.com/questions/10440113/simple-way-to-unzip-a-zip-file-using-zlib

is not possible then I need to find a way for windows and mac. c zip zlib unzip share improve this question zlib handles..

openCV 2.4.3 iOS framework compiler trouble recognising some c++ headers

http://stackoverflow.com/questions/13905471/opencv-2-4-3-ios-framework-compiler-trouble-recognising-some-c-headers

recognising some c headers openCV 2.4.3 Xcode 4.5.2 mac osx 10.8.2 I am trying to get openCV working with iOS. I am..

Capture Screen Image in C++ on OSX

http://stackoverflow.com/questions/1537587/capture-screen-image-in-c-on-osx

get access to an image of the current screen display on a mac Preferably in C not Objective C. c osx screen capture share..

C++: Get MAC address of network adapters on Vista?

http://stackoverflow.com/questions/221894/c-get-mac-address-of-network-adapters-on-vista

way to get a list of the local MAC addresses on a Vista machine Backwards compatibility with XP is a plus I'd rather have.. than lots of ugly #ifdef's . Thanks c windows vista mac address share improve this question Could you use the WMIService.. Could you use the WMIService I used it to get the mac address of a machine in pre Vista days though. share improve..

Best programming language and framework for cross platform desktop application development? [closed]

http://stackoverflow.com/questions/4160162/best-programming-language-and-framework-for-cross-platform-desktop-application-d

almost native look and feel some problems with cocoa on mac Cons most extra plugins are commercial reputation for bad code..

How to identify platform/compiler from preprocessor macros? [duplicate]

http://stackoverflow.com/questions/4605842/how-to-identify-platform-compiler-from-preprocessor-macros

to identify platform compiler from preprocessor macros duplicate This question already has an answer here C compiling.. cross platform code which should compile at linux windows mac os. On windows I must support visual studio and mingw. There.. #include windows.h #endif But how do I recognize linux and mac os OS What are defines names or etc I shold use c macros cross..

How to play mp3 file in c++?

http://stackoverflow.com/questions/4732278/how-to-play-mp3-file-in-c

linux FMOD In case you are programming only on windows mac osx BASS I would also look for some native APIs in Windows if..

Printing double without losing precision

http://stackoverflow.com/questions/4738768/printing-double-without-losing-precision

v We need the 1 as to the digits10 has been truncated. For mac it is 15 Where the actual number of decimal digits required..

How to get IOStream to perform better?

http://stackoverflow.com/questions/5166263/how-to-get-iostream-to-perform-better

to perform any conversion as well as being uniform across machines. It's a good default to use. Synchronization I could not.. apple darwin10 g 4.2.1 GCC 4.2.1 Apple Inc. build 5664 mac mini 4GB ram idle except for this test with a 168MB datafile..

Compiling OpenCV code on a 64-bit mac

http://stackoverflow.com/questions/5781198/compiling-opencv-code-on-a-64-bit-mac

OpenCV code on a 64 bit mac I recently inherited some OpenCV code. I installed openCV on.. inherited some OpenCV code. I installed openCV on my mac built in in XCode and then compiled and successfully ran my..

How to be notified of file/directory change in C/C++, ideally using POSIX

http://stackoverflow.com/questions/61253/how-to-be-notified-of-file-directory-change-in-c-c-ideally-using-posix

way I only really care about Windows and Linux but I use mac so I thought posix may help c c posix share improve this..

imread not working in Opencv

http://stackoverflow.com/questions/7417637/imread-not-working-in-opencv

occurred on a Windows 32bit system. On a linux and on a mac it worked. I can't tell why it didn't work but we had a small.. for that. We fixed this problem with the following macros maybe you could try this out and use ourImread from then..

Can i use the latest features of C++11 in XCode 4 or OSX Lion? [duplicate]

http://stackoverflow.com/questions/7482026/can-i-use-the-latest-features-of-c11-in-xcode-4-or-osx-lion

the new features from C 11 available when programming C on mac osx lion so ditching xcode is also an option if that is needed...

Cross platform programming

http://stackoverflow.com/questions/836469/cross-platform-programming

be sure to use g for C projects that has bitten me on my mac before... . Stay close to your home directory ~ . Doing your..

static variable link error [duplicate]

http://stackoverflow.com/questions/9282354/static-variable-link-error

class member 5 answers I'm writing C code on a mac. Why do I get this error when compiling Undefined symbols for..

Secure a DLL file with a license file

http://stackoverflow.com/questions/106347/secure-a-dll-file-with-a-license-file

into unsigned shorts in different places. As Larry said a MAC address is fairly common. There are lots of examples of how..

How to hide a string in binary code?

http://stackoverflow.com/questions/1356896/how-to-hide-a-string-in-binary-code

and constant within the system for example by hashing the MAC address of a network adapter. Create the key by choosing bytes..

C++: Get MAC address of network adapters on Vista?

http://stackoverflow.com/questions/221894/c-get-mac-address-of-network-adapters-on-vista

Get MAC address of network adapters on Vista We are currently using.. do you know of a reliable way to get a list of the local MAC addresses on a Vista machine Backwards compatibility with XP..

Uniquely identify PC based on software/hardware

http://stackoverflow.com/questions/3636115/uniquely-identify-pc-based-on-software-hardware

but a Win32 or other option is fine. I was thinking about MAC address but what about laptops which can routinely disable the.. share improve this question I would just go with the MAC address method when the wireless LAN cards are turned off they.. Connections. You should therefore still be able to get the MAC. Consider this Any time you'd be able to contact your webserver..

platform independent GUI

http://stackoverflow.com/questions/6055305/platform-independent-gui

of the code to be portable for all the OS unix windows MAC . GTK and GLib looks as a good solution. I want to use native..

How to get hardware MAC address on Windows

http://stackoverflow.com/questions/823553/how-to-get-hardware-mac-address-on-windows

to get hardware MAC address on Windows I'm playing around with retrieving the MAC.. address on Windows I'm playing around with retrieving the MAC address from the NIC there are a variety of ways to get it this.. method which seems the most bulletproof but if the MAC address has been set via the registry http www.mydigitallife.info..

Generating a Hardware-ID on Windows

http://stackoverflow.com/questions/910619/generating-a-hardware-id-on-windows

that is not easily spoofable with for example changing the MAC Address c windows unique uuid copy protection share improve.. a unique Guid per machine in the registry at HKEY_LOCAL_MACHINE Software Microsoft Cryptography MachineGuid share improve..

MSVC++ variadic macro expansion

http://stackoverflow.com/questions/9183993/msvc-variadic-macro-expansion

__VA_ARGS__ 5 4 3 2 1 #define FULLY_EXPANDED count ... MAC ## count __VA_ARGS__ #define SEMI_EXPANDED count ... FULLY_EXPANDED.. VA_NARGS __VA_ARGS__ __VA_ARGS__ #define ACTUAL_MACRO x parent GetProperty x #define MAC1 a ACTUAL_MACRO a #define.. #define ACTUAL_MACRO x parent GetProperty x #define MAC1 a ACTUAL_MACRO a #define MAC2 a b MAC1 a ACTUAL_MACRO b #define..

Unique hardware ID in Mac OS X

http://stackoverflow.com/questions/933460/unique-hardware-id-in-mac-os-x

hardware ID. It doesn't have to be anything fancy Ethernet MAC address hard drive serial CPU serial something like that. I've..