Vote UpVote

C++Builder code snippet - getting the current user name for Windows and OSX

Sip from the Firehose – I was reading a StackOverflow question and answer in the Delphi group and spotted this one: "How to get the currently logged in username". Here is a C++Builder XE5 version of the same code for Windows and Mac OSX. //--------------------------------------------------------------------------- #include <fmx.h> #pragma hdrstop #include "DesktopMainForm.h" #if defined(TARGET_OS_MAC) || defined(TARGET_OS_IOS) #include <Posix.Unistd.hpp> #endif //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.fmx" TForm1 *Form1; ...
Favorite? Off-Topic? David Intersimone @ 2014-02-08 20:43


Visits: 207
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)