标签:
杂谈 |
标签:
杂谈 |
CString::Compare
int Compare( LPCTSTR lpsz ) const;
返回值
CString s2( 'abd' );
ASSERT( s1.Compare( s2 ) == -1 );
ASSERT( s1.Compare( 'abe' ) == -1 );
CString::CompareNoCase
int CompareNoCase( LPCTSTR lpsz ) const;
返回值 字符串一样 返回0
CString::Collate
int Collate( LPCTSTR lpsz ) const;
同CString::Compare
CString::CollateNoCase
int CollateNocase( LPCTSTR lpsz ) const;
标签:
杂谈 |
因为C、C++的编译器对函数名的修饰不同,为了保证在C、C++中编写的函数能够被互相调用,所以采用这个链接指示符
以int func(int, int)为例,C的编译器会将名字改编为_func, 而C++的编译器会改编为_func_int_int 或_funcii(各编译器不同)。
如果这个函数在C中编译成库,目标文件中函数名为_func,当这个函数中C++中被调用时,C++
的编译器就会到目标文件中
寻找_funcii,结果找不到,出错。
所以为了防止这种问题,在C++调用时,将函数声明前加个extern 'C' 告诉C++的编译器,不要
对名字再进修饰,而直接去找_func。
同样在C++中编译的函数,如果想让C来使用,通常也加上extern 'C'在编译时将函数名按C的风格进行修饰。
通常C中编写的函数如果有在其它语言中使用的可能,通常会有下面形式的声明:
#ifdef
extern 'C' {
#endif
#ifdef
#endif
即在声明时已经加上extern 'C' 而不需要调用时麻烦。例如在VC++中调用C的库函数就不用作特别的声明。
extern 'C'的使用要点
1. 可以
标签:
杂谈 |
记自己曾经在一次面试中因多态的概念被鄙视了一下,看到有位兄台写的不错转载一下,望后辈们多学多看,有备无患!
实实在在说多态(C++篇)
1.
2.
3.
4.
5.
6.
7.
7.1.
7.2.
7.3.
7.4.
8.
9.
&
标签:
杂谈 |
Using
http://www.manusoft.com/Resources/ARXTips/Index.stm
Despite the minor numerical change from Visual C/C++ version 7 to 7.1, Microsoft made some major changes in the compiler and linker in order to become more C++ standard compliant. These changes make it virtually impossible to use 7.1 to build for ObjectARX 2004 and earlier ObjectARX versions. The new compiler chokes on the earlier versions of ATL and MFC libraries because they were not standard compliant, yet these are required when building for ObjectARX because of its reliance upon Autodesk libraries. What's more, the tricks outlined
标签:
杂谈 |
This page documents some ObjectARX programming tips and tricks that I've learned over the years. Most of the information presented here is the result of my own programming work, but some input comes from discussions on newsgroups or other forums. Contributors are listed at the end of each page, and their contributions are denoted with a superscripted number in brackets (e.g. [1]) in the area where they contributed information.
NOTICE: The contents of this page are Copyright 2004 - 2009 ManuSoft, All Rights Reserved. The contents of this page may not be reproduced under any circumstances without permission from the author! Permission to print one hardcopy of this page for individual use is hereby granted.
DISCLAIMER: ManuSoft is in no way responsible for either the accuracy or
标签:
杂谈 |
对策:
标签:
杂谈 |
发现加密后部分图形丢失了,其最主要的一个原因是该部分图纸由专业软件绘制的专业实体(自定义实体),如天正、清华斯威尔、天喻等软件都使用了自定义专业实体,这些专业实体只能由各自软件解释和显示,离开这些软件环境,他们是不能显示的。即使你不加密,在没有安装这些软件的计算机中也不能显示图形。
处理对策:先在您使用的专业软件里用他们提供的功能把专业实体变成AutoCAD本土实体(即裸体AutoCAD绘制的物体),如天正的布图菜单里【另存旧版】和【分解对象】(不是普通的炸碎和普通的存为R14\2000老版本啊).
标签:
杂谈 |
标签:
杂谈 |
V4.20
V4.13
V4.12
V4.11
V4.10
标签:
杂谈 |
1、需要您安装了AutoCAD,目前支持的版本是2004\2005\2006.对更多版本CAD的支持即将推出。
2、只要AutoCAD能打开的文件,就能加密。目前,若您的dwg文件是2007\08\09\10版本AutoCAD的格式,需要在高版本CAD把图纸转存为2004格式文件。在CAD中点【选项】【文件存贮】选择【存为2004格式文件】也一劳永逸地解决此问题。
3、尽管对被加密的文件大小没有限制(测试加密 37M 地形图,用前年买的同方双核CPU2.3、内存1G,耗时6分钟),但强力建议dwg文件不要超过2M,不要在一个dwg文件中放几十张图,最好每张图纸一个文件。
4、在加密操作时不要动CAD,即不要操作CAD.