Hi
I want to load some settings from an ini-file.
Usualy I use GetPrivateProfileString(....) to read from the ini but if i use the irrlicht_engine ms vc++ tells me that 'GetPrivateProfileString ' is an undeclared identifier althought i included stdio.h & stdlib.h .
So what did i wrong ? or is there an other possibility to read inis
How to read from an ini-file
Last edited by disanti on Tue Feb 22, 2011 8:01 am, edited 1 time in total.
If you want to use GetPrivateProfileString() or similar ini functions, you must include <windows.h>.
Something must be wrong with the setup of your project or of your VC++ environnement. You shouldn't get these errors. With the VC++ wizard, try to create a simple windows application, and include <windows.h>. If it is working you have a problem with your project. If not, you have a problem with the setup of your VC++. Maybe you should reinstall or download the lastest PlatformSDK from Microsoft web site (don't do this if you don't have a broadband internet connection, it's a rather big download). The PlatformSDK contains all latest headers, librairies, ... for VC++.
Hope this help.
Something must be wrong with the setup of your project or of your VC++ environnement. You shouldn't get these errors. With the VC++ wizard, try to create a simple windows application, and include <windows.h>. If it is working you have a problem with your project. If not, you have a problem with the setup of your VC++. Maybe you should reinstall or download the lastest PlatformSDK from Microsoft web site (don't do this if you don't have a broadband internet connection, it's a rather big download). The PlatformSDK contains all latest headers, librairies, ... for VC++.
Hope this help.