摘要:
客户端: // CilentAndService.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h" #include<iostream>#include<winsock.h>#pragma comment(lib,"ws2_32.lib")using namesp 阅读全文
摘要:
void CCommonFuntion::GetCornerPoint(AcGePoint3dArray& inputptArr, AcGePoint3d& lefdownPt, AcGePoint3d& lefupPt, AcGePoint3d& rigthupPt, AcGePoint3d& r 阅读全文
摘要:
.h文件: #pragma once#include <string>#include <vector> class FileHelper{public:/** 读文件* outContent : 返回文件内容* in_outLen : in : outContent的内存长度 out:已读取到ou 阅读全文
摘要:
//打开文件夹对话框的回调函数int CALLBACK OpenFolderProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData){ if (uMsg == BFFM_INITIALIZED) { //输出选择的文件夹 SendMessage 阅读全文
摘要:
void CFileRenameDlg::_execute(const CString& cmd){ SECURITY_ATTRIBUTES sa; HANDLE hRead,hWrite; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurit 阅读全文
摘要:
头文件: #pragma once#ifndef FILEZIPPER_HPP#define FILEZIPPER_HPP #include <vector>#include <string> #include "zip.h"#include "iowin32.h"#include "zlib.h" 阅读全文
摘要:
.h文件: //与点与直线的位置关系: >0在右侧;=0在线上;<0在左侧 static float relationshipWithLinePosition(AcGePoint3d&pt, AcGePoint3d& linept1, AcGePoint3d& linept2); static fl 阅读全文
摘要:
//作用:判断点是否在多边形内//p指目标点, ptPolygon指多边形的点集合, nCount指多边形的边数bool COperaDeleteEntByPL::PtInPolygon (AcGePoint2d p, AcGePoint2dArray& ptPolygon, int nCount) 阅读全文
摘要:
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 阅读全文
摘要:
void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase( 阅读全文