示例#1
0
int IGetProfileInt(const char * szKey, int iDefault)
{
	char	aszPath[512];

	VGetIniFile(aszPath, sizeof(aszPath));
	return GetPrivateProfileInt(s_aszApp, szKey, iDefault, aszPath);
}
示例#2
0
void VGetProfileSz(const char * szKey, const char * szDefault,
	char * szOut, int cbOut)
{
	char	aszPath[512];

	VGetIniFile(aszPath, sizeof(aszPath));
	GetPrivateProfileString(s_aszApp, szKey, szDefault,
		szOut, cbOut, aszPath);
}
int IGetProfileInt(const char * szKey, int iDefault)
{
#ifdef TARGET_WIN
	char	aszPath[512];
	VGetIniFile(aszPath, sizeof(aszPath));
	return GetPrivateProfileInt(s_aszApp, szKey, iDefault, aszPath);
#else
    return iDefault;
#endif
}
void VGetProfileSz(const char * szKey, const char * szDefault,
	char * szOut, int cbOut)
{
	char	aszPath[512];
#ifdef TARGET_WIN
	VGetIniFile(aszPath, sizeof(aszPath));
	GetPrivateProfileString(s_aszApp, szKey, szDefault,
		szOut, cbOut, aszPath);
#else
    strcpy(szOut, szDefault);
#endif
}