科学网

 找回密码
  注册
illegal use of this type as an expression
陈芳林 2010-3-18 20:28
answer on internet: This is C, you can't mix declarations and statements. Move this to the start of the block where the rest of the variables are.
个人分类: VC|8633 次阅读|没有评论
error LNK2005: xxx already defined in libcmt.lib(xxx.obj) MSVCRT.lib
陈芳林 2010-1-6 17:07
参考: 这个错误是微软设计错误,因此如果遇到这个错误,我们只能躲过这个链接错误。具体的办法就是将那个提示出错的库放到另外一个库的前面。另外选择不同的C函数库,可能会引起这个错误。MS, C有两种C函数库,一种是普通的函数库:LIBC.LIB,不支持多线程。另外一种是支持多线程的:msvcrt.l ...
个人分类: VC|10328 次阅读|没有评论
fatal error C1083: Cannot open precompiled header file
陈芳林 2010-1-6 10:09
遇到fatal error C1083: Cannot open precompiled header file,说找不到.pch文件的问题,网上一般给出的解决方案是:工程的属性里:使用选项Use Precompiled Header (/Yu)。这其实是为了避免问题而不用的方式,相当于因为刀会伤手,就不用刀切菜,改用手掰。 预编译头文件(precompiled header) ...
个人分类: VC|20509 次阅读|3 个评论
vs2008 warning D9035 'Wp64'
陈芳林 2008-11-11 17:14
开始用visual studio.NET 2008,但将vs2005的程序转到2008上,出现了如下warning: Warning1Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future releasecl 原因: vs2008不再建议使用/wp64检测 ...
个人分类: VC|7358 次阅读|没有评论
VS2005中UNICODE和ANSI以及MBCS的问题
陈芳林 2008-10-23 17:31
转自: http://starspiritray.blogcn.com/diary,14051732.shtml 我们在编写Visual C++ 2005程序时候经常会碰到(如下错误),很迷惑 'CreateWindowExW' : cannot convert parameter 1 from 'const char ' to 'LPCWSTR' &nbs ...
个人分类: VC|6090 次阅读|没有评论
fatal error C1853
热度 1 陈芳林 2008-9-16 16:17
出现问题: fatal error C1853: 'ReleaseLabelFingerMatch.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) 在C/C++的预编译头文件的设置中去掉使用预编译头文件,既可解决。 ...
个人分类: VC|8405 次阅读|没有评论 热度 1
clapack 'char' should be preceded by
热度 2 陈芳林 2008-9-16 15:01
我从http://www.netlib.org/lapack/faq.html下载 lapack-pc-wfc.zip并且成功用watcom fortran编译出lapack.lib. 但是,当我试图将该库直接引用到我的C++工程的时候,用了相应的头文件lapack.h,我的程序立刻出现如下诸多错误。 ......clapack.h(3592) : error C2144: syntax error : ...
个人分类: VC|10956 次阅读|没有评论 热度 2
[转]VS2005发布程序
陈芳林 2008-7-10 16:59
转自: http://blog.csdn.net/guanchanghui/archive/2007/10/14/1824036.aspx 目前 硬件配置在提高,软件开发环境也在不停的升级,vs2008 beta2 Enterprise Edition已经发布,使用的结果感觉非常满意,比vs2005进步不少,首先在IDE环境的启动速度上比05要快,MFC的空间数量上也增加了几个,最重要的是vs2008 ...
个人分类: VC|8219 次阅读|没有评论
[转]MFC中获取各种类指针的方法
陈芳林 2008-6-8 22:22
转自: http://blog.163.com/liuguangqian_866/blog/static/4303660120082335727161/ 要获得另一窗体视图类中的某控件指针,首先获得视图指针是难点,获的视图指针再用GetDlgItem函数就容易获得控件指针 获得各种指针如下 1) 在View中获得Doc指针 2) 在App中获得Main ...
个人分类: VC|5289 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-28 04:00

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部