Visual Studio
文章平均质量分 86
^ω^w^ω^
这个作者很懒,什么都没留下…
展开
-
C# MSFT_PhysicalDisk class
代码: //MSFT_PhysicalDisk类的网页:https://docs.microsoft.com/en-us/previous-versions/windows/desktop/stormgmt/msft-physicaldisk //MSFT_PhysicalDisk类的调用方法 ManagementScope scope = new ManagementScope(@"\\.\root\microsoft\window...原创 2021-04-20 10:59:41 · 385 阅读 · 0 评论 -
C++显示文字到桌面
源码:官网:https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdesktopwindow// couttest.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <iomanip>//#define _AFXDLL#include <afxver_.h>#inclu原创 2020-10-14 16:54:00 · 2796 阅读 · 1 评论 -
麦克风录音
源码:// SoundRecard.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <windows.h>#include <Mmsystem.h>#include <string>#pragma comment(lib, "winmm.lib")using namespace std;HWAVEIN hWaveIn; ...原创 2020-10-14 16:20:49 · 213 阅读 · 0 评论 -
WiFi信息
官网范例:https://docs.microsoft.com/en-us/windows/win32/api/wlanapi/nf-wlanapi-wlangetavailablenetworklist简单范例:#ifndef UNICODE#define UNICODE#endif#include <windows.h>#include <iostream>#include <wlanapi.h>#include <objbase.h>原创 2020-10-10 11:12:51 · 277 阅读 · 0 评论 -
C++获取电池信息
#include <iostream>#include <Windows.h>#include <powerbase.h>#include <string>using namespace std;int main(int argc, char* argv[]) { /*SYSTEM_POWER_STATUS sysPower...原创 2020-04-14 17:25:41 · 1306 阅读 · 1 评论 -
C#语言编写电池充电状况
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Resources;using DllComponent;using DllLog;namespace HelloWorld{...原创 2020-04-14 17:05:54 · 514 阅读 · 0 评论 -
VS C++打包配置文件生成exe运行程序
1、点击项目菜单,选择属性,如下图2、在C/C++下的选择代码生成选项下的运行库设置成多线程调试/MTD,如下图3、点击应用,然后确定原创 2020-04-14 17:41:45 · 6497 阅读 · 1 评论 -
VS2017 MFC 添加视频控件
1、创建一个基于对话框的MFC应用程序2、删除不需要的控件:todo、确定、取消3、添加Static Text、Edit Control、Button控件 Static Text:控件名字改名为"影片" Button:控件名字改名为"准备就绪"4、添加视频播放控件"Windows Media Player" a、在对话框中点击右键,在弹出窗口选择"插入ActiveX控件"选项 b、在"插入ActiveX控件"弹窗中选择"...原创 2020-09-14 15:36:30 · 3670 阅读 · 2 评论 -
C++修改日期
//用法:CDate.exe 20170530 (其中CDate.exe为生产的编译名)//使用SetSystemTime函数会有一个时区差,也可以使用SetLocalTime函数修改,用法一样#include <windows.h>#include <iostream>#include <string>#include <stdlib.h&...原创 2019-05-31 10:38:38 · 310 阅读 · 0 评论