上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 客户端: // CilentAndService.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h" #include<iostream>#include<winsock.h>#pragma comment(lib,"ws2_32.lib")using namesp 阅读全文
posted @ 2020-06-09 11:00 久龄 阅读(73) 评论(0) 推荐(0) 编辑
摘要: void CCommonFuntion::GetCornerPoint(AcGePoint3dArray& inputptArr, AcGePoint3d& lefdownPt, AcGePoint3d& lefupPt, AcGePoint3d& rigthupPt, AcGePoint3d& r 阅读全文
posted @ 2020-06-05 11:35 久龄 阅读(48) 评论(0) 推荐(0) 编辑
摘要: .h文件: #pragma once#include <string>#include <vector> class FileHelper{public:/** 读文件* outContent : 返回文件内容* in_outLen : in : outContent的内存长度 out:已读取到ou 阅读全文
posted @ 2020-06-04 09:40 久龄 阅读(25) 评论(0) 推荐(0) 编辑
摘要: //打开文件夹对话框的回调函数int CALLBACK OpenFolderProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData){ if (uMsg == BFFM_INITIALIZED) { //输出选择的文件夹 SendMessage 阅读全文
posted @ 2020-06-03 17:17 久龄 阅读(169) 评论(0) 推荐(0) 编辑
摘要: void CFileRenameDlg::_execute(const CString& cmd){ SECURITY_ATTRIBUTES sa; HANDLE hRead,hWrite; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurit 阅读全文
posted @ 2020-06-03 12:25 久龄 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 头文件: #pragma once#ifndef FILEZIPPER_HPP#define FILEZIPPER_HPP #include <vector>#include <string> #include "zip.h"#include "iowin32.h"#include "zlib.h" 阅读全文
posted @ 2020-05-19 19:02 久龄 阅读(253) 评论(0) 推荐(0) 编辑
摘要: .h文件: //与点与直线的位置关系: >0在右侧;=0在线上;<0在左侧 static float relationshipWithLinePosition(AcGePoint3d&pt, AcGePoint3d& linept1, AcGePoint3d& linept2); static fl 阅读全文
posted @ 2020-05-09 17:13 久龄 阅读(164) 评论(0) 推荐(0) 编辑
摘要: //作用:判断点是否在多边形内//p指目标点, ptPolygon指多边形的点集合, nCount指多边形的边数bool COperaDeleteEntByPL::PtInPolygon (AcGePoint2d p, AcGePoint2dArray& ptPolygon, int nCount) 阅读全文
posted @ 2020-04-21 15:28 久龄 阅读(394) 评论(0) 推荐(0) 编辑
摘要: double xmult(double x1, double y1, double x2, double y2, double x0, double y0) { return (x1 - x0)*(y2 - y0) - (x2 - x0)*(y1 - y0); } double area_trian 阅读全文
posted @ 2020-03-23 09:58 久龄 阅读(39) 评论(0) 推荐(0) 编辑
摘要: void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase( 阅读全文
posted @ 2020-03-10 16:04 久龄 阅读(56) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页