- 博客(9)
- 收藏
- 关注
原创 C#中App.config的使用
1.在App.config添加设置<?xml version="1.0" encoding="utf-8" ?><configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup> <appSettings> <add key="Serv
2020-09-01 08:51:22
494
原创 app.config配置文件的使用
添加引用 System.Configuration;命名空间 using System.Configuration;在APP.config添加如下代码:<appSettings> <add key="IP" value="1" /> <add key="Server" value="2" /> </appSettings>获取配置文件的值:string IP= ConfigurationManager.AppSettin.
2020-08-20 09:45:25
250
原创 Excel宏工具的使用
使用宏对单元格的增删改查Option ExplicitPublic i As IntegerPublic Function setupCellColor(s As Worksheet, i As Integer) Dim c As Range Dim j As Integer Set c = s.Range("a1") Do If c.Value = "$PA-ET V1" Then If c.
2020-08-06 08:47:52
352
原创 C#界面画图与晶圆数据分析
画图Graphics g = pictureBox1.CreateGraphics();;g.Clear(Color.Black);pictureBox1.Width = (iXmax - iXmin + 1) * iXpading + 1;pictureBox1.Height = (iYmax - iYmin + 1) * iYpading + 1;Font myFont = new Font("宋体", (float)(iXpading - 1), GraphicsUnit.World);.
2020-07-23 17:04:25
2627
3
翻译 非MFC的DLL中使用CString类
1.头文件加入/* 非MFC DLL中使用CString *///#define _AFXDLL#include <afx.h>注意:要定义在 #include<windows.h>之前,否则会报错2.cpp 文件里加入/* 非MFC DLL中使用CString */// The following symbol used to force inclusion of this module for _USRDLL #ifdef _X86_extern "C" {
2020-07-14 13:42:17
179
原创 C#调用VC++6.0(MFC)的DLL
一、VC++6.0(MFC)生产DLL创建工程:新建WIN32 Dynamic-link Library工程bai,工程名为MyDll,选择A simple DLL project类型在StdAfx.h中添加:extern "C" __declspec(dllexport) int fun(int a, int b);在MyDll.cpp中添加:int fun(int a,int b){ return a+b+5;}编译即可生产DLL文件二、C#调用VC++6.0的
2020-07-14 09:55:45
726
原创 SQL指令增删改查
-查询语句--select t1 as "用户名",t2 as "姓名",t3 as "性别" from d--添加语句--insert into d(t1,t2,t3,t4,t5,t6,t7)values('ints11','刘德华','男','50','来自上海','2000','2020-06-29 12:12:12')--修改语句--update d set t3='男',t4='30'--删除语句--delete from d where t1='ints11'--查询NU...
2020-07-10 09:58:48
120
原创 C#实现窗口消息方法
1.定义消息public const string MSG_TEST = "Msg_Test";2.注册消息 [DllImport("user32.dll", CharSet = CharSet.Unicode)] static extern uint RegisterWindowMessage(string lpProcName); uint Msg_Test = Regist...
2019-06-10 10:55:07
1915
原创 C++消息机制,两个exe之间的通讯
1.定义消息static const UINT Msg_Test = ::RegisterWindowMessage(MSG_TEST);2.注册消息static const UINT MsgEapTestStart = ::RegisterWindowMessage(EAP_TEST_START);3.发送消息::SendNotifyMessage(HWND_BROADCAST,Ms...
2019-06-10 10:36:54
2177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人