U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » More small gems
More small gems [message #18504] Sat, 04 October 2008 15:24 Go to previous message
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
Dear all

Here I enclose you more functions that I have prepared taking code from Upp itself, but that are not declared. There is also something from myself:

String GetComputerName()
- Returns computer name

String GetUserName()
- Returns user name

String GetEnvironmentVariable(const char *str)
- Return the environment variable

String GetDesktopManager()
- Returns Windows, Gnome, Kde or Unknown

Sorry: I have only tested GetDesktopManager() in Ubuntu and Windows. Please check it in other desktop like Kde.

Best regards
Koldo
  • Attachment: Funs.cpp
    (Size: 1.19KB, Downloaded 562 times)


Best regards
IƱaki

[Updated on: Sun, 05 October 2008 09:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: DirectoryUp doesn't seem to work.
Next Topic: Small Upp gems. Native icons in TreeCtrl
Goto Forum:
  


Current Time: Tue Jun 16 03:35:04 GMT+2 2026

Total time taken to generate the page: 0.00902 seconds