Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tired22

    Retrieving the User Name from the registry

    I just figured it out. For anyone who may run into this in the future, I used the following include statement: #include <cstdlib> and used the following statement to retrieve the environment variable: char* user = getenv("username");
  2. tired22

    Retrieving the User Name from the registry

    Okay, Thanks. But is there a way I can access that environment variable inside from inside a C++ program? Also, is it possible to read data from a cookie file from inside a program? That's actually what I'm trying to do. The problem is that the cookie files are in Documents and...
  3. tired22

    Retrieving the User Name from the registry

    Is it possible to retrieve the user name for the current user from the registry? I'm not even sure where in the registry it can be found.

Part and Inventory Search

Back
Top