自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 428

原创 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 229

原创 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 319

原创 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 2442 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 157

原创 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 678

原创 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 105

原创 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 1859

原创 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 2106

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除