003
15.12.2004, 19:20 Uhr
RedEagle
|
C++: |
#include <windows.h> #include <iostream> using namespace std;
void schreiben() { WritePrivateProfileString("Allgemein", "Vorname", "Udo", "C:\\test.ini"); WritePrivateProfileString("Allgemein", "Name", "Schmidt", "C:\\test.ini"); }
///////////////////////////////////////////////////////////////////////////////////////
void lesen() { char vorname[500]; char name[500]; DWORD size=500; GetPrivateProfileString("Allgemein", "Vorname", "NULL", vorname, size, "C:\\test.ini"); GetPrivateProfileString("Allgemein", "Name", "NULL", name, size, "C:\\test.ini");
cout<<vorname<<endl; cout<<name; }
|
-- MFG RedEagle |