avatar
Articles
287
Tags
106
Categories
25

Theqiqi_blog
Search

Theqiqi_blog

3.使用c语言在windows中写入数据到程序中
Created2024-08-04|c+windows+hacking|C•Windows•Hacking
[toc] 使用c语言在windows中写入数据到程序中1. C语言中写数据使用赋值符号=代码演示: 12345678910111213141516171819//Messageb.c#include <stdio.h>#include <windows.h>int main(int argc, char** argv){ int i = 666; label: printf("var i vulue is %d\n", i); printf("var i address is 0x%p\n", &i); int* p = &i; printf("var i vulue is %d\n", *p); printf("var i address is 0x%p\n", p); printf("point p address is 0x%p\n", &p); ...
2.使用c语言在windows中读取程序的数据
Created2024-08-03|c+windows+hacking|C•Windows•Hacking
[toc] 使用c语言在windows中读取程序的数据1. C语言通过指针来获取地址的数据 完整代码: 123456789101112131415//Message.c#include <stdio.h>int main(int argc, char** argv){ int i = 666; printf("var i vulue is %d\n", i); printf("var i address is 0x%p\n", &i); int *p = &i; printf("var i vulue is %d\n", *p); printf("var i address is 0x%p\n", p); printf("point p address is 0x%p\n", &p); getchar(); return 0;} 为了方便测试,在 ...
1.使用c语言开发第一个windows程序
Created2024-08-02|c+windows+hacking|C•Windows•Hacking
[toc] 使用c语言开发第一个windows程序1. C语言使用标准库函数c语言中使用标准库只需在源文件中包含对应的头文件,以下是一个代码示例 1234567#include <stdio.h> int main(int argc,char** argv) { printf("print function from <stdio.h>\n"); return 0; } 2.C语言使用Windows函数调用Windows平台的相关函数需要包含相关头文件,windows.h里有一些基本的函数,以下为完整代码,功能为弹出一个消息框 12345678#include <stdio.h>#include <windows.h> int main(int argc,char** argv) { printf("print function from <stdio.h>\n"); MessageBoxA(0,"Messag ...
C语言将驱动打包到exe程序中
Created2024-06-06|C语言的万种用法|C•Windows
[toc] C语言将驱动文件打包到exe程序中1.使用WinHex将二进制文件复制在WinHex选中编辑->复制选快->c源码 2.将二进制代码粘贴到c语言源码中3.编写c语言代码写入文件源码 123456789101112131415161718192021222324252627282930//main.c#include <windows.h>#include <stdio.h>#include "DriverBuffer.h"#define DRIVER_FILE_NAME L"DEMO.sys"#define DRIVER_FILE_PATH L"D:\\Users\\3\\Desktop\\DEMO.sys"DWORD WriteDriverFile(WCHAR* DriverFilePath){ HANDLE hFile = CreateFileW(DriverFilePath, GENERIC_ALL,FILE_SHARE_READ | FILE_SHARE_ ...
win32程序中使用Dialog作为主窗口
Created2024-06-06|C语言的万种用法|C•Windows•Desktop
[toc] 1.在main函数中创建Button1234567891011121314151617181920212223242526#include <windows.h>int main(int argc, char* argv[]) { HWND hwnd = GetConsoleWindow(); //Create a Button HWND hwndButton = CreateWindowW( L"BUTTON", // Predefined class; Unicode assumed L"OK", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 10, // x position 10, // y position 100, ...
11切换字体
Created2024-03-28|raylib|cmake•C++•vcpkg•raylib•graphi
🎯 raylib 完全可以使用系统字体(Windows 自带字体)而且非常简单,只需要: 找到系统字体路径 用 LoadFont() 或 LoadFontEx() 加载 用 DrawTextEx() 绘制 一个完整、可直接运行的 C 语言示例。 🪟 Windows 系统字体路径Windows 字体都在: 1C:\Windows\Fonts\ 常见字体: 字体名 文件名 微软雅黑 msyahei.ttc / msyh.ttc 宋体 simsun.ttc 黑体 simhei.ttf Consolas consolas.ttf Arial arial.ttf 可以直接加载这些字体文件。 📝 示例:使用 Windows 系统字体(C 语言)12345678910111213141516171819202122232425#include "raylib.h"int main(void){ InitWindow(800, 450, "raylib system font example" ...
10raymath
Created2024-03-28|raylib|cmake•C++•vcpkg•raylib•graphi
🎯 raymath — C 语言示例(最常用功能)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859#include "raylib.h"#include "raymath.h"int main(void){ InitWindow(800, 450, "raymath example"); SetTargetFPS(60); // --- 向量示例 --- Vector3 a = { 1.0f, 2.0f, 3.0f }; Vector3 b = { 4.0f, 5.0f, 6.0f }; Vector3 add = Vector3Add(a, b); Vector3 sub = Vector3Subtract(a, b); Vector3 mul = Vecto ...
09raudio — 音频系统
Created2024-03-28|raylib|cmake•C++•vcpkg•raylib•graphi
🔊 raylib raudio — 音频系统示例(C 语言)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162#include "raylib.h"#include <stdlib.h>int main(void){#ifdef _WIN32 system("chcp 65001 > nul");#endif InitWindow(800, 450, "raylib raudio example"); InitAudioDevice(); // 必须初始化音频系统 SetTargetFPS(60); // --- 加载音效(短音频,WAV 最常用) --- Sound fxJump = LoadSound(u8"resources/leaflocation.wav&q ...
08rmodels — 3D 模型与网格
Created2024-03-28|raylib|cmake•C++•vcpkg•raylib•graphi
🗿 raylib rmodels — 3D 模型与网格示例(C 语言)c 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859#include "raylib.h"int main(void){ InitWindow(800, 450, "raylib rmodels example"); SetTargetFPS(60); // --- 摄像机设置 --- Camera3D camera = { 0 }; camera.position = (Vector3){ 4.0f, 4.0f, 4.0f }; // 摄像机位置 camera.target = (Vector3){ 0.0f, 1.0f, 0.0f }; // 看向模型中心 camera.up ...
07rtext — 文本与字体
Created2024-03-28|raylib|cmake•C++•vcpkg•raylib•graphi
📝 基础示例:默认字体 + 自定义字体123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#include "raylib.h"int main(void){ InitWindow(800, 450, "raylib rtext example"); SetTargetFPS(60); // 1. 默认字体(内部自带) const char *msg1 = "Hello, raylib! 默认字体"; // 2. 加载自定义 TTF 字体 Font font = LoadFont("resources/JetBrainsMono-Regular.ttf"); // 换成你自己的 TTF const char *msg2 = "使用自定义 TTF 字体"; while (!WindowShouldC ...
1…192021…29
avatar
Theqiqi
Articles
287
Tags
106
Categories
25
Follow Me
Announcement
This is my Blog
Recent Post
101.使用Grop网站提供的api2026-01-03
光猫开telnet与配置2025-04-13
9.压测2025-03-27
8.Linux Socket并发模型http服务器2025-03-27
7.web服务器中收发REST接口2025-03-27
Categories
  • C with Socks16
  • C_Sound10
  • C_Windows_Graphi9
  • Cpp5
  • Cpp_Socket4
  • C语言在Windows中实现抓包4
  • C语言的万种用法9
  • Debian1
Tags
lib Graphi sql graphi Ninja epoll jsp mysql android Sound Hacking UltraISO qemu WindowsDriver javascript GUI OperatingSystem Python Websocket Capture Socket assembly Ethernet Makefile Socks compiled glfw3 nasm rufus linux WindowsDrive link system x86汇编程序 c first pragram Linux OpenGl UDP vcpkg
Archives
  • January 20261
  • April 20251
  • March 202595
  • February 202523
  • September 20242
  • August 202471
  • June 20242
  • March 202443
Info
Article :
287
UV :
PV :
Last Update :
©2020 - 2026 By Theqiqi
Framework Hexo|Theme Butterfly
Search
Loading the Database