Samstag, 3. November 2012
Using '_MSC_VER' to check Microsoft Visual Studio version
If you develop applications for Windows using a Microsoft Visual C++ Compiler, you may use the macro '_MSC_VER' to check what compiler (version) you are using. Newer compilers have more possibilities of course or (more worse) things have just changed. So if you want (or must) support older ones you have to split your code.
The (current) values are:
MSVC++ 12.0 _MSC_VER = 1800 (Visual Studio 2013)
MSVC++ 11.0 _MSC_VER = 1700 (Visual Studio 2012)
MSVC++ 10.0 _MSC_VER = 1600 (Visual Studio 2010)
MSVC++ 9.0 _MSC_VER = 1500 (Visual Studio 2008)
MSVC++ 8.0 _MSC_VER = 1400 (Visual Studio 2005)
MSVC++ 7.1 _MSC_VER = 1310 (Visual Studio 2003)
MSVC++ 7.0 _MSC_VER = 1300 (Visual Studio 2002)
MSVC++ 6.0 _MSC_VER = 1200
MSVC++ 5.0 _MSC_VER = 1100
And here is a simple example how to use it:
#if (_MSC_VER >= 1600) /*Visual Studio 2010*/
typedef /*unsigned*/ char mychar8; /**< defines the utf-8 character type. */
typedef wchar_t mychar16; /**< defines the utf-16 character type. */
#else /*(_MSC_VER >= 1600)*/
typedef /*unsigned*/ char mychar8; /**< defines the utf-8 character type. */
typedef unsigned short mychar16; /**< defines the utf-16 character type. */
#endif /*(_MSC_VER >= 1600)*/
Dienstag, 25. September 2012
Internetcafes: Sind anonyme W-LAN-Hotspots zulässig?
Das Landgericht (LG) München I hat sich in einem jüngst veröffentlichten Urteil damit befasst, ob die Betreiber von kostenlos nutzbaren W-LAN-Hotspots, wie man sie in Hotels, Cafés oder Gaststätten findet, zur Erhebung und Speicherung von Nutzerdaten verpflichtet sind.
Sehr interessant, hier klicken und bei http://www.e-recht24.de weiterlesen ...
Sonntag, 9. September 2012
Mac OS X keyboard shortcuts
It's very useful, if you know where to find all the existing Mac OS keyboard shortcuts!
As far as I know the only complete list, can be found here:
http://support.apple.com/kb/HT1343
And of course it's highly reliable, because it's from Apple Support !
As far as I know the only complete list, can be found here:
http://support.apple.com/kb/HT1343
And of course it's highly reliable, because it's from Apple Support !
Dienstag, 7. August 2012
How to do a screen shot (screen capture, print screen) on Mac OS X
Since several month now I am working on a MacBook Pro.
Mostly using Windows 7, first via Boot Camp now via Parallels.
But I am also using more and more it's native operating system
(Mac OS X Version 10.6.8) and also Mac OS Applications.
The first trivia I had to check out was how to do a "screen shot"
("screen capture", "print screen") - I found this very simple ways:
Screen shot of complete desktop:
(On Windows 7, I mostly used the 'Snipping Tool')
Mostly using Windows 7, first via Boot Camp now via Parallels.
But I am also using more and more it's native operating system
(Mac OS X Version 10.6.8) and also Mac OS Applications.
The first trivia I had to check out was how to do a "screen shot"
("screen capture", "print screen") - I found this very simple ways:
Screen shot of complete desktop:
- Hold down 'Shift key' + 'Apple key ⌘'
- Press 'Key 3'
- Done - you will find the picture on your desktop
Screen shot of part of desktop:
- Hold down 'Shift key' + 'Apple key ⌘'
- Press 'Key 4'
- The cursor will change to a 'cross selection'-style
- Select any portion of the screen (with two clicks)
- Done - you will find the picture on your desktop
Screen shot of a application window:
- Hold down 'Shift key' + 'Apple key ⌘'
- Press 'Key 4'
- Press 'Space Bar'
- The cursor will change to a 'camera'-style
- Select the application window (one click)
- Done - you will find the picture on your desktop
And yes, this is very very easy to do ! :-)
Dienstag, 31. Juli 2012
How to use your Android phone as a Wi-Fi hotspot -- for free | Computerworld Blogs
Just found this - it's worth checking it:
How to use your Android phone as a Wi-Fi hotspot -- for free | Computerworld Blogs
but keep in mind this may be illegal - so it's on your own risk!
How to use your Android phone as a Wi-Fi hotspot -- for free | Computerworld Blogs
but keep in mind this may be illegal - so it's on your own risk!
Abonnieren
Posts (Atom)