Simple Save/Load

Posts 1–9 of 9 · Page 1 of 1
Simple Save/Load
Need:
Code:
int WritePrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName)
{
    TCHAR lpString[10];
    wsprintf( lpString, L"%i", nInteger );
    return WritePrivateProfileString( lpAppName, lpKeyName, lpString, lpFileName );
}
Save:
Code:
wchar_t a[10];
for(int i = 1; i < Menus.D3D.Set.NumberOfItems;i++)
	{
		wsprintf(a, L"D3D%i",i);
		WritePrivateProfileInt(L"D3D", a, Menus.D3D.Opt[i].Value, L"Safelist.ini");
	}
Load:
Code:
wchar_t a[10];
for(int i = 1; i < Menus.D3D.Set.NumberOfItems;i++)
	{
		wsprintf(a, L"D3D%i",i);
		Menus.D3D.Opt[i].Value = GetPrivateProfileInt(L"D3D", a, Menus.D3D.Opt[i].Value,L"Safelist.ini");
	}
Enjoy.
Creditz: Me,MSDN
but im 100% sure, im not the first one who made it

with some skillls(fucking easy) u can safe/load float and double values.
I think save is with a "v" not a "f" /

Good job though.
Quote Originally Posted by Drake4 View Post
I think save is with a "v" not a "f" /

Good job though.
it is
Quote Originally Posted by Drake4 View Post
I think save is with a "v" not a "f" /

Good job though.
haha true xD for me its late (GMT +1) want to sleep now >.<
Quote Originally Posted by kotentopf View Post
haha true xD for me its late (GMT +1) want to sleep now >.<
Lol k good night. And btw , this saves an ini so it will load the hack settings you saved?

Last time mines worked but it never saved to the settings i put.

nice im gonna add this.
I'm gonna try also. Great release kotentopf!
yet i was the only 1 to thank, way to go seeplusplus, you sir, are a leecher.
Quote Originally Posted by DeadLinez View Post
yet i was the only 1 to thank, way to go seeplusplus, you sir, are a leecher.
i thought the same thing lol
and also i add this :}
nice release
credited!!!
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us