摘要: QString modulePathName = QCoreApplication::applicationDirPath() + "\\控件名称.oxc";//控件路径 bool bReg = true; HINSTANCE hLib = LoadLibraryEx((LPCWSTR)module 阅读全文
posted @ 2021-09-18 11:25 久龄 阅读(13) 评论(0) 推荐(0) 编辑
摘要: // 加解密都用此方法QString toXOREncryptUncrypt(QString src, const QChar key){ for (int i = 0; i < src.count(); i++) { src[i] = src.at(i).toLatin1() ^ key.toLa 阅读全文
posted @ 2021-09-07 15:39 久龄 阅读(79) 评论(0) 推荐(0) 编辑
摘要: CRingWait.h #pragma once#ifndef RINGWAIT1_H#define RINGWAIT1_H#include <qdialog.h>#include <QtMath>#include <QDialog>#include <QPainter>#include <QTim 阅读全文
posted @ 2021-08-17 18:33 久龄 阅读(323) 评论(0) 推荐(0) 编辑
摘要: .bat文件: rem 关闭Windows外壳程序explorertaskkill /f /im explorer.exerem 清理系统图标缓存数据库attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"del /f "%userpro 阅读全文
posted @ 2021-08-11 10:51 久龄 阅读(333) 评论(0) 推荐(0) 编辑
摘要: ShellExecuteW(NULL, _T("open"), _T("regsvr32.exe"), _T(“要注册的控件.ocx -s”), NULL, SW_HIDE); 阅读全文
posted @ 2021-06-30 16:09 久龄 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 创建bat文件,然后粘贴下面代码: @echo offecho "开始删除Navicat Premium 12注册表试用期记录文件,请稍等……"echo "正在删除 HKEY_CURRENT_USER\Software\PremiumSoft\Data "reg delete "HKEY_CURRE 阅读全文
posted @ 2021-06-01 18:19 久龄 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 封装类: using PDM.Models;using Sapi.Services;using Sapi.Utility;using System;using System.Linq;using System.Text;using System.Collections.Generic;using I 阅读全文
posted @ 2020-11-25 17:32 久龄 阅读(299) 评论(0) 推荐(0) 编辑
摘要: SymbolMatchingalgorithm.h头文件 #pragma once#include <string>#include <map> class CSymbolMatchingalgorithm{public: CSymbolMatchingalgorithm(); ~CSymbolMa 阅读全文
posted @ 2020-07-28 10:38 久龄 阅读(16) 评论(0) 推荐(0) 编辑
摘要: // 获取交点 bool CCommonFunction::getCross(AcGePoint3d& line1_pt1, AcGePoint3d& line1_pt2, AcGePoint3d& line2_pt1,AcGePoint3d& line2_pt2, AcGePoint3d& pt) 阅读全文
posted @ 2020-07-01 17:23 久龄 阅读(32) 评论(0) 推荐(0) 编辑
摘要: //若点a大于点b,即点a在点b顺时针方向,返回true,否则返回falsebool PointCmp(AcGePoint2d& a,AcGePoint2d& b,AcGePoint2d& center){ if (a.x >= 0 && b.x < 0) return true; if (a.x 阅读全文
posted @ 2020-07-01 17:21 久龄 阅读(24) 评论(0) 推荐(0) 编辑