还是配置项读写问题 本帖最后由 ggqyt 于 2011-03-27 18:20:25 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TCHAR szProfile[]=_T("0x86"); int nValue; WritePrivateProfileString(_T("Test"),_T("Test"),szProfile,_T("d:\\Profile.ini")); nValue = GetPrivateProfileInt(_T("Test"),_T("Test"),0,_T("d:\\Profile.ini")); cout<<hex<<nValue; TCHAR szHex[10]={0}; _stprintf_s(szHex,10,_T("%x"),0x86); int nValue; WritePrivateProfileString(_T("Test"),_T("Test"),szHex,_T("d:\\Profile.ini")); TCHAR szHex[10]={0}; GetPrivateProfileString(_T("Test"),_T("Test"),0,szHex,10,_T("d:\\Profile.ini")); unsigned char byTest; _stscanf(szHex,"%x",&byTest); listbox为什么不响应WM_PAINT 消息 做一个自动聊天的程序遇到的问题 [原创/探讨]Windows 核心编程研究系列之一(改变进程 PTE) 请教socket在网线断开情况下的处理,急用! 一个菜鸟问题! 如何方便的定位 ★★★关于 LoadLibary的问题...★★★ 我有个VC问题求教各位大虾,我是妹妹,谢谢了!! 通过 CreateProcess 启动控制台程序 telnet, telnet 一运行就立即退出了, 为什么 ? 你遇到过吗 ? 急 真奇怪,我的抓屏程序得到的图形中为什么没有鼠标;请高手回答 获取进程ID 以下两种方法有什么不同 如何确定jpeg的压缩质量
TCHAR szProfile[]=_T("0x86");
int nValue;
WritePrivateProfileString(_T("Test"),_T("Test"),szProfile,_T("d:\\Profile.ini"));
nValue = GetPrivateProfileInt(_T("Test"),_T("Test"),0,_T("d:\\Profile.ini"));
cout<<hex<<nValue;
_stprintf_s(szHex,10,_T("%x"),0x86);
int nValue;
WritePrivateProfileString(_T("Test"),_T("Test"),szHex,_T("d:\\Profile.ini"));
TCHAR szHex[10]={0};
GetPrivateProfileString(_T("Test"),_T("Test"),0,szHex,10,_T("d:\\Profile.ini"));
unsigned char byTest;
_stscanf(szHex,"%x",&byTest);