- 博客(20)
- 资源 (5)
- 收藏
- 关注
原创 Debug下关闭CAD出错
错误提示所在文件:crt0dat.c错误提示所在位置:void __cdecl __crtExitProcess ( int status ){ __crtCorExitProcess(status); /* * Either mscoree.dll isn't loaded,
2012-11-19 10:55:56
969
原创 「is a」&&「has a」
is a,是这个类的一种,继承(是某种东西,或是某种的东西的子类)has a, 含有这个类,包含 (包含某种东西)
2012-11-09 09:50:20
1569
转载 安装软件配置VC++环境时常出现的问题--Error 1935.安装程序集
装很多软件是都要配置VC++环境的,但由于系统注册表限制,很多时候软件安装过程中会报如下错误安装 vc++2005 运行库 Error 1935.安装程序集 Microsoft.vc80.atl,type="win32",version="8.0.50727.762",publicekeytoken="1fc8b3b9a1e 18e3b",processorArchitecture="x86"
2012-10-26 12:43:27
82071
3
原创 AcDbPolyline延伸与直线求交,取延伸方向最近点
基础知识:AcDbPolyline中每个点的Bulge,负数为顺时钟,正数为逆时钟//extendStart 是否延伸前端//sPt,ePt; 与直线的两个交点AcGePoint3d getExtendClosePt(bool extendStart,const AcDbPolyline* pl,const AcGePoint3d& sPt,const AcGePoint3d& eP
2012-10-11 17:15:48
2337
转载 LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
LNK1112: module machine type 'x64' conflicts with target machine type 'X86' The problem has been solved. Many thanks to steve.Here is the solution, for those might have the same problem :)
2012-08-23 09:56:47
1571
原创 std::sort 函数
//反序排序vector delIndexs;std::sort(delIndexs.begin(),delIndexs.end(),std::greater());
2012-07-31 15:11:43
558
转载 Difference between attachment & overlay
Attachment means that any xrefs inserted into your drawing will carry through to the next drawing if you xref your drawing into another drawing. Thus creating nested xrefs.Overlay means that a
2012-07-05 09:05:07
734
原创 Arx 多义线(AcDbPolyline)绘制实心圆
Acad::ErrorStatusaddVertexAt(unsigned int index, const AcGePoint2d& pt, double bulge = 0., double startWidth = -1., double endWidth = -1);index Input index (0 based) before which to ins
2012-06-28 19:18:32
3813
原创 Arx 新建布局(Creating new Paperspace)
bool AddPaperLayout( AcDbObjectId& idLay,LPCTSTR lpszLayName ,LPCTSTR lpszMediaName/* = _T("A3")*/){ AfxIsValidString(lpszLayName); AfxIsValidString(lpszMediaName); const ACHAR* LayoutName = lpsz
2012-06-28 14:26:27
4588
原创 VBS 文件设置环境变量
新建一个文本文件,把后缀改为.vbs,然后把下面的代码复制进文件内,就可以新增和修改环境变量newPath = "C:\Program Files\MySoftware"dim wshSet wsh = WScript.CreateObject("WScript.Shell")//新增wsh.Environment("system").Item("mySoftware")= newPath
2012-06-28 09:17:25
3892
原创 MFC 使用技巧
在主菜单中选择“Format”->"Tab Order",或者按快捷键Ctrl+D,对话框模板上就会显示各个控件的Tab顺序数字
2012-06-17 18:41:44
696
原创 VC 命令行打印PDF文件
CString param; param.Format(_T("/t %s"),sFilePath); SHELLEXECUTEINFO ShExecInfoPrintf = {0}; ShExecInfoPrintf.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfoPrintf.fMask = SEE_MASK_NOCLOSEPROCESS;
2012-06-08 14:27:33
7938
原创 VC 得到系统所有打印机和默认打印机
//得到所有打印机DWORD dwSize,dwPrinters; ::EnumPrinters(PRINTER_ENUM_CONNECTIONS | PRINTER_ENUM_LOCAL,NULL,5,NULL,0,&dwSize,&dwPrinters); BYTE *pBuffer=new BYTE[dwSize]; ::EnumPrinters(PRINTER_ENUM_CONNE
2012-06-08 14:22:45
12786
原创 CAD二次开发 对状态栏(StatusBar)的操作
//创建进度条函数int acedSetStatusBarProgressMeter(const ACHAR* pszLabel, int nMinPos, int nMaxPos);//设置进度条位置函数int acedSetStatusBarProgressMeterPos(int nPos);//删除进度条函数void acedRestoreStatusBar();//设置状态栏
2012-05-29 18:02:46
3694
原创 AcDbCurve::extend 延长指定多义线的前后长度
int myExtendPolyline(AcDbPolyline* pl,double sOff,double eOff){ ASSERT(pl); if (pl->numVerts() < 2) { return 0; } if (sOff > 0) { AcGePoint3d sPt,sPt2; pl->getStartPoint(sPt); pl->getPo
2012-05-23 09:29:23
2104
转载 深入浅出ShellExecute
Q: 如何打开一个应用程序?ShellExecute(this->m_hWnd,"open","calc.exe","","", SW_SHOW );或ShellExecute(this->m_hWnd,"open","notepad.exe", "c:\\MyLog.log","",SW_SHOW );正如您所看到的,我并没有传递程序的完整路径。Q: 如何打开
2012-05-18 16:05:36
442
原创 Android & IPhone Fling 游戏求解算法
//运行结果从下往上看// Fling.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include const int xCount = 7;const int yCount = 8;using namespace std;
2012-05-03 09:41:45
762
原创 PDF文件预览控件
Adobe 有自带的预览PDF文件的Active控件,你只要导入就可以使用这个控件预览你的PDF文件了。添加Active控件:在VC6.0中可以通过“project”-> “Add To Project”-> “Components and Controls”导入ActiveX控件VS系列中可以通过“project”-> “Add Class”->“MFC Class
2012-04-05 15:41:39
8502
转载 WindowsAPI使用详解——GetVersion|GetVersionEx 获取操作系统版本和名称
Windows API 中有两个函数可以得到系统版本信息:GetVersion和GetVersionEx。 GetVersion这个函数曾经困扰了很多程序员,其本来设计的是在DWORD返回值中用低位的那个字表示MS-DOS的版本号,高位的那个字表示Windows版本号。对于每个字来说,高位字节代表主要版本号,低位字节代表次要版本号。可是因为编写此函数的程序员犯了一个错误,使得此函
2012-04-05 15:11:36
802
转载 没有Microsoft sql Management studio解决办法
SQLServer2005开发版安装问题安装完成后没有SQL Server Management Studio有两种可能性,一种是SQL Serve版本问题;一种是安装顺序问题;一、 你安装的SQLServer2005开发版安装问题安装完成后没有SQL Server Management Studio是SQL Server 2005 Express Edit
2012-04-04 11:31:33
871
Symbian OS C++手机应用开发第三卷(英文)
2009-09-11
ADO更新补丁KB983246
2012-11-21
PDF 不能打印
2012-01-12
Office强力卸载工具
2012-10-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅