积极答复者
在读文件中strStringItem="groupwnd"处并未显示错误,但在写文件中就出现错误,为什么呀?

问题
-
在读文件中strStringItem="groupwnd"处并未显示错误,但是在写文件中此处就出现错误,为什么呀?是不是写浮动页面信息的代码有缺什么呀?
void CMainFrame::WriteFloatPageInfo()
{
#ifdef GROUPWINDOW
CString strStringItem;
CString strValue;
CString m_strSection;
m_strSection = m_pFloatPageInfo[0].name;//写入所在的组合窗口索引
strStringItem = "groupwnd";
strValue.Format("%d",m_pFloatPageInfo[0].group);
AfxGetApp()->WriteProfileString(m_strSection, strStringItem,strValue);
#endif
}
谢谢
答案
-
你可以把程序升级到Visual Studio 2008, 这样你可以方便修改和运行程序,并且也可以得到更好的支持。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 anmy 2009年12月16日 9:53
-
不需要。 所谓Windows API 的容器基本上就是C:\Windows\System32\ 下的那些动态库。 如果想调用Windows API,只要有Platform SDK就可以了。Platform SDK中含有那些DLL中包含的函数的生命、静态链接库lib 等。使用时,在你的源代码文件中include 适当的头文件即可,链接时需要指明要链入哪些lib。因为Visual Studio(只要不是Express版本) 在安装时都已经安装了Platform SDK,所以你不需要额外安装什么东西。
- 已标记为答案 anmy 2009年12月24日 2:42
全部回复
-
哦,谢谢您,为什么在装vc6时出现很多无法打开的文件?是这个软件有问题吗?您能发给我一个官方原英文版的vc6吗 ?如果有的话,您发给我一个,好吗?我的qq邮箱是465774584@qq.com ,谢谢!
-
你好!
现在VC6.0已经不支持了。建议你使用Visual Studio 2008 或者是更高的版本。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
你可以把程序升级到Visual Studio 2008, 这样你可以方便修改和运行程序,并且也可以得到更好的支持。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 anmy 2009年12月16日 9:53
-
是的,需要做一些修改。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
不需要。 所谓Windows API 的容器基本上就是C:\Windows\System32\ 下的那些动态库。 如果想调用Windows API,只要有Platform SDK就可以了。Platform SDK中含有那些DLL中包含的函数的生命、静态链接库lib 等。使用时,在你的源代码文件中include 适当的头文件即可,链接时需要指明要链入哪些lib。因为Visual Studio(只要不是Express版本) 在安装时都已经安装了Platform SDK,所以你不需要额外安装什么东西。
- 已标记为答案 anmy 2009年12月24日 2:42