-
采用 Windows 表单的简单计算器
翻译 maninwest@Codeforge作者:Yvan Rodrigues@CodeProject 使用代码 using System;
using System.Windows.Forms;
namespace RedCell.App.Calculator.Example
{
public partial class Form1 : Form
{
private double accumulator = 0;
private char lastOperation;
public Form1()
{
InitializeComponent();
}
private void Operator_Pressed(object sender, EventArgs e)
{
// An operator was pressed; perform the last operation and store the new operator.
char operation = (sender as Button).Text[0];
- 2022-06-29 09:36:47下载
- 积分:1
-
MFC中的串口小程序的实现 基于对话框的
MFC中的串口小程序的实现 基于对话框的-MFC applet in the realization of serial
- 2022-08-12 17:43:31下载
- 积分:1
-
watchDog可偵測程式是否關閉
可將執行中的程式,關閉,及重開。亦可以透過socket連線,來偵測是否程式已死當。其相關重要功能:重開機功能://重新開機void CWatchDogDlg::setSystemReboot(){msg = "準備關機重開!";::SendMessage(this->GetSafeHwnd(),MSG_STATUS_TOTAL,(WPARAM)&msg,0);CExitWindows m_ExitWindows;//m_ExitWindows.Restart(); m_ExitWindows.ForceReStart();}關閉程式:///關閉程式bool CWatchDogDlg::closeExeProcess(CString processName){processName.MakeLower();HANDLE hSnapShot;PROCESSENTRY32 pEntry;pEntry.dwSize =sizeof(pEntry);BOOL hRes;bool Found = FALSE;//Get the snapshot of the systemhSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);//Get firs
- 2022-02-16 07:28:21下载
- 积分:1
-
图像分割中的一个很好的代码,来自于国外的网站,在国外的研究中对其进行了研究和分析…
一个很好用图像分割代码,在国外网站下来的,研究图形的可能用到-Image Segmentation by a good code from the site in foreign countries to study the possibility of using graphics
- 2023-08-08 09:15:04下载
- 积分:1
-
将数据库数据传给Excel
将数据库数据传给Excel-database data transmission Excel
- 2022-09-16 12:20:04下载
- 积分:1
-
透视投影的有趣算法
透视投影的有趣算法-interesting perspective projection algorithm
- 2023-07-16 14:05:03下载
- 积分:1
-
使用临界区实现进程间的同步-c++
使用临界区来实现线程的同步运行,使用了windows api,演示了临界区是如何让线程实现同步的。
- 2022-03-11 06:55:36下载
- 积分:1
-
MS OCR VC程序
图形文字识别(OCR)是常用的东西。微软早在Office2003中推出了一个OCR模块,对中文有很好的支持(不亚于国内的一个品牌产品)。可能有许多人都注意到这个好东西了,但是MS_OCR在VC++上的接口和用法一直没见披露。
这里发布一个用MS_OCR做的示范程序,识别能力还不错,支持多种图形格式(bmp,jpg,tif)。
- 2022-04-13 14:00:03下载
- 积分:1
-
COBF (aka C
COBF (aka C-Obfuscator) is a program which manipulates C or C++ sourcefiles in a way that they aren t readable by human beings but they remain compilable. The benefit of COBF lies in the distribution of programs (freeware, shareware, commercial software etc.): The distribution as a executable binary is often too inflexible (especially for Unix or Windows NT, because it is normally not feasible to support all possible platforms) on the other side one might not give away the sourcecode (e. g. it looks poor [badly commented, Spaghetti code], or you just want to prevent plagiarism). Here COBF can play an important role: It removes all comments and sourcecode formattings and renames all variable and function identifiers. See files.txt for a complete list of the files provided with the cobf zip archive! See doc/ for the COBF manual!
- 2022-07-21 12:34:20下载
- 积分:1
-
用Delphi开发的三维屏保程序
用Delphi开发的三维屏保程序-with Delphi 3D screensaver
- 2022-05-16 13:57:57下载
- 积分:1