Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Save/Load Menu


    a1fahrrad
     Share

    Recommended Posts

    You need 2 Funktions:

     

    BOOL WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName)
    {
    TCHAR lpString[ 1024 ];
    wsprintf( lpString, "%d", nInteger );
    return WritePrivateProfileString( lpAppName, lpKeyName, lpString, lpFileName );
    }

     

    UINT WINAPI GetPrivateProfileInt(
     __in  LPCTSTR lpAppName,
     __in  LPCTSTR lpKeyName,
     __in  INT nDefault,
     __in  LPCTSTR lpFileName
    );

     

    How to Use:

     

    void Load()
    {
    	Chams = GetPrivateProfileIntA("D3D", "Chams", Chams, "Bsp.txt");
    }
    
    void Save()
    {
     WritePrivateProfileInt("D3D", "Chams", Chams, Bsp.txt"));
    }

     

    Credits:

    To the one who made the WritePrivatProfileInt Funktion

    MSDN xD

    a1fahrrad (4 writing the Tutorial)

    Link to comment
    Share on other sites

    Its an code from the MSDN.

    http://msdn.microsoft.com/en-us/library/ms724345(VS.85).aspx <= GetPrivateProfileInt

    http://msdn.microsoft.com/en-us/library/ms725501(VS.85).aspx <= WritePrivateProfileString (it's same as WritePrivateProfileInt , just changed one parameter in the function from LPCTSTR to int).

     

    So it's code from microsoft itself.

    Edited by silex
    • Upvote 1
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...