#include "stdafx.h&rdquo; #include &ldquo;stdio.h&rdquo; #include &ldquo;string.h&rdquo; #include <windows.h> #include <wininet.h> #include &ldquo;tlhelp32.h&rdquo; #pragma
转载 精选 2012-02-15 09:08:52
1090阅读
头文件 *** 1 #pragma once 2 #pragma once 3 #include "stdio.h" 4 #include "windows.h" 5 #include "tchar.h" 6 #include "shlwapi.h" 7 #pragma comment(lib,"s ...
转载 2021-08-19 18:35:00
270阅读
2评论
结论:WIN32 : 跨平台时使用,如果一个工程使用了windows api,那么它在引入windows api相关的头文件后,必须预定义WIN32以启。_WIN64:编...
原创 2022-09-23 13:37:40
884阅读
#include<windows.h> #include<iostream> #include<string> using namespace std; //只能处理目录:lpPath只能是路径 void find(char *lpPath) { char szFind[MAX_PATH]; char szFile[MAX_PA
转载 2012-11-27 21:10:00
169阅读
2评论
#include <iostream> #include <Windows.h> #pragma comment(lib, "user32.lib") #pragma comment(lib, "advapi32.lib") int main() { // https://docs.microsof
转载 2020-09-03 15:11:00
683阅读
2评论
winshow// ShowWin.h: interface for the CShowWin class. // ////////////////////////////////////////////////////////////////////// #include <windows.h> #include&
原创 2014-11-03 18:11:05
964阅读
使用 CreateToolhelp32Snapshot #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <Psapi.h> int main() { HANDLE hSnap = CreateToolhe ...
转载 2021-08-03 16:31:00
455阅读
2评论
#include //设置本程序进程基本为实时执行,快速退出。 SetPriorityClass(GetC
原创 2023-06-25 06:50:02
205阅读
CTabCtrl使用方法: http://www.codeguru.com/cpp/controls/controls/tabcontrols/article.php/c5239/ 按钮CButton使用方法: http使用方法://www.vckbase.com/document/viewdoc/?id=1414 菜单: http://www.vckbase.com/document/listd
转载 2010-06-02 00:23:00
154阅读
2评论
1. API之网络函数 WNetAddConnection 创建同一个网络资源的永久性连接 WNetAddConnection2 创建同一个网络资源的连接 WNetAddConnection3 创建同一个网
Win32串口编程作者:韩耀旭下载源代码  在工业控制中,工控机(一般都基于Windows平
原创 2023-07-13 16:13:38
902阅读
1点赞
win32线程池代码(WinApi/C++)健壮, 高效,易用,易于扩, 可用于任何C++编译器//说明, 这段代码我用了很久, 我删除了自动调整规模的代码(因为他还不成熟)/**************************************************************...
转载 2015-05-13 23:47:00
117阅读
2评论
补发:发表于2021-11-08忘了同步到上了链接Windows编程应用程序分类控制台程序ConsoleDOS程序,本身没有窗口,通过Windows DOS窗口执行
原创 2022-11-21 12:19:19
809阅读
项目场景:Win32调用C++/WinRT DLLWin32调用C++/WinRT DLL问题描述:Win32调用C++/WinRT DLL原因分析:提示:这里填写问题的分析:例如:Handler 发送消息有两种方式,分别是 Handler.obtainMessage()和 Handler.sendMessage(),其中 obtainMessage 方式当数据量过大时,由于 MessageQuene 大小也有限,所以当 message 处理不及时时,会造成先传的数据被覆盖,进而导致数据丢失。
原创 2021-09-03 13:55:49
770阅读
c++使用win32桌面应用程序,实现helloworld和login。
说明: c++使用win32桌面应用程序,实现helloworld和login 效果图: step1:helloworld C:\Users\wangrusheng\source\repos\WindowsProject1\WindowsProject1\WindowsProject1.cpp // WindowsProject1.cpp : 定义应用程序的入口点。 // #include
WinAPI: SetTimer、KillTimer - 创建与移除高性能定时器 摘要: //创建定时器函数的声明: SetTimer( hWnd: HWND; {与定时器相关联的窗口句柄} nIDEvent: UINT; {指定一个非 0 的定时器标识符} uElapse: UINT; {指定间隔时间, 单位是毫秒} lpTimerFunc: TFNTimerProc {每到时间后, 要调用的
转载 精选 2013-03-06 15:59:48
1645阅读
在Windows平台上,从原来使用C/C++编写原生EXE程序,到使用Python编写一些常用脚本程序,成熟的模块的使用使得编程效率大大提高了。不过,python模块虽多,也不可能满足开发者的所有需求。而且,模块为了便于使用,通常都封装过度,有些功能无法灵活使用,必须直接调用Windows API来实现。要完成这一目标,有两种办法,一种是使用C编写Python扩展模块,或者就是编写普通的DLL通过
转载 2023-07-02 17:26:01
458阅读
1.一个最简单的窗体的创建 ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ; 使用 nmake 或
原创 2022-05-23 15:10:43
452阅读
#include "pthread.h" #include "implement.h" int pthread_attr_init (pthread_attr_t * attr) /* * * DOCPUBLIC * Initializes a thread attributes object wi
转载 2020-04-04 22:42:00
455阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5