Search found 103 matches
- Sun Oct 12, 2008 2:52 am
- Forum: wxWidgets Development (Chinese)
- Topic: 读写INI文件怎么指定INI文件的位置在自己程序
- Replies: 5
- Views: 4544
读写INI文件怎么指定INI文件的位置在自己程序
我用如下代码读写设置,发现代码是工作正常了,但是INI文件不知道创建到哪里去了。我想指定INI文件创建在自己程序目录下,要如何做呢? // No description void SafeBoxOpenVDiskDlg::ReadSettings() { /* TODO (#1#): Implement SafeBoxOpenVDiskDlg::ReadSettings() */ //读出设置 wxFileConfig fc("vopen"); bool b; fc.Read("min",&b); chkMin->SetValue(b); } /...
- Mon Oct 06, 2008 11:31 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
按照微软网站上提供的解决link2005错误的方法,解决了第二个问题。 微软提供的方法是: ------------------------------------------------------------ 解决方案一:强制链接器按照正确的顺序链接库 1. 在“项目”菜单上,单击“设置”。 2. 在“项目设置”对话框的“以下项目的设置”视图中,单击以选中出现链接错误的项目配置。 3. 在“链接”选项卡上,单击以选中“类别”组合框中的“输入”。 4. 在“忽略库”框中,插入库名(例如,Nafxcwd.lib;Libcmtd.lib)。 注意:等效的链接器命令行是:/NOD:<library...
- Mon Oct 06, 2008 10:44 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
- Mon Oct 06, 2008 10:37 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
- Fri Oct 03, 2008 1:01 am
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
- Fri Oct 03, 2008 12:31 am
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
- Thu Oct 02, 2008 12:24 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 怎么找到这些lib文件?
- Replies: 7
- Views: 5471
怎么找到这些lib文件?
我用的IDE是wxDev-C++。以前一直用它默认的gcc来编译。今天想给换成VC2005的编译器来编译,结果编译能通过,但是链接不成功,找不到这些lib文件,我看了一下wxDev-C++的安装目录下并没有这些文件。我下载了wxMSW2.8.9安装后也没有找到这些lib文件。请问在哪里能够找到这些文件呢?还是说需要我用wxMSW的代码来自己编译出这些文件呢?如果是后者,我是不是需要用VC2005来编译出这些静态链接库呢? wxmsw28.lib wxmsw28_gl.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregex.lib wxexp...
- Mon Sep 29, 2008 5:28 am
- Forum: wxWidgets Development (Chinese)
- Topic: 如何检测内存泄露
- Replies: 9
- Views: 6917
想要检测内存泄露最好的方法就是那些集成在IDE中的插件,例如BoundsChecker,和VC++配合得很好。直接对EXE文件检测,难度很高,效果也很不好,目前最有名的IBM purify,也是仅能对VC++编译出的Debug版的EXE实现检测而已,对VC Release版程序都没有效果,更不要说gcc编译出的程序了。 当然IBM purify 有Linux版,对gcc编译出的可执行程序检测,只要编译时带上-g选项即可。 Windows下,对VC++的Release版EXE,或Gcc编译出的Exe,还没有太好的检测工具。当然,你的帖子是在讨论wxWidgets,那么我有一种方法,如果你的平台是...
- Tue Sep 23, 2008 10:52 pm
- Forum: wxWidgets Development (Chinese)
- Topic: 如何检测内存泄露
- Replies: 9
- Views: 6917
- Fri Aug 15, 2008 9:42 am
- Forum: C++ Development
- Topic: problem with 64bit integer
- Replies: 2
- Views: 1742
problem with 64bit integer
I want to show a 64bit integer as follows:
But, the result of this code is 4GB,Anybody who can tell me the reason?
Code: Select all
unsigned long long ull=0x7fffffffffffffffULL;
s=wxString::Format("%llu",ull);
MessageBox(0,s,s,MB_OK);
- Fri Aug 15, 2008 12:12 am
- Forum: wxWidgets Development (Chinese)
- Topic: 64位整形的格式化
- Replies: 1
- Views: 2712
64位整形的格式化
代码如下:
unsigned long long ull=0x7fffffffffffffffULL;
s=wxString::Format("%llu",ull);
MessageBox(0,s,s,MB_OK);
运行结果出来,却超不过4GB,这是什么原因呢?
unsigned long long ull=0x7fffffffffffffffULL;
s=wxString::Format("%llu",ull);
MessageBox(0,s,s,MB_OK);
运行结果出来,却超不过4GB,这是什么原因呢?
- Fri Aug 15, 2008 12:10 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxString to char*
- Replies: 5
- Views: 4758
- Thu Jul 31, 2008 2:15 pm
- Forum: C++ Development
- Topic: How to link a static library into my program by Dev-C++?
- Replies: 3
- Views: 7127
- Thu Jul 31, 2008 2:38 am
- Forum: wxDev-C++
- Topic: About handle of Instance and threadID
- Replies: 1
- Views: 2383
About handle of Instance and threadID
how can I retrieve the handle of my application's instance in my wxWidgets program? and threadID.
just like this in MFC:
AfxGetApp()->m_hInstance
AfxGetApp()->m_nThreadID
just like this in MFC:
AfxGetApp()->m_hInstance
AfxGetApp()->m_nThreadID
- Thu Jul 31, 2008 2:32 am
- Forum: wxWidgets Development (Chinese)
- Topic: 应用程序句柄
- Replies: 1
- Views: 2747
应用程序句柄
wxWidgets程序里如何获取程序实例句柄和主线程ID,
就像是MFC里面的:
AfxGetApp()->m_hInstance,AfxGetApp()->m_nThreadID
就像是MFC里面的:
AfxGetApp()->m_hInstance,AfxGetApp()->m_nThreadID