Apparently in the messages below, there still seems to be some belief that a Console application which is converted to a Windows is functionally the same. Not true, here are the differences (they are important, I'm looking for an answer how these would be addressed): 1) stdin, stdout and stderr are sent to devnull. This isn't just a question of command line parsing, many console apps act as "filters" (think Unix/Linux type apps like grep). These need to be rewritten to handle input/output.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Lpstr Lp CmdLine
dx9 pong game
Author 212 October 28, 2023 08:53 PM I am trying to get paddles to move in a pong game using dx9 I put y variables in the WM_KEYDOWN function but they don't seem to work even though exit(0) works.
Making a Simple Screensaver for Windows 95 using C++
In the world of modern computing, where screensavers have become an afterthought due to advancements in display technology and power-saving features, it’s fun to take a trip down memory lane and explore how screensavers were created in the early days of computing. In this article, we’ll dive into the nostalgic world of Windows 95 and learn how to make a simple Screensaver using C++.
DirectX12学习笔记-创建窗口-CSDN博客
创建窗口就是纯的Win API,我设想的窗口是这样的: 我们调用WinMain启动窗口,然后在WinMain初始化和启动消息循环。 消息会传入OnEvent, WndProc是窗口过程函数(每个窗口都有一个WndProc函数,用于接收和处理窗口相关的消息,如鼠标点击、键盘输入、窗口大小调整等。) #pragma once #include<Windows.h> namespace LocalRenderer { class Window { MSG msg; public: HWND WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); void OnEvent(MSG& msg) const; static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); }; } //然后就实现窗口吧 #include"Window.h" #include...
TouchGFX之画布控件_Stone_lu。的博客-CSDN博客
TouchGFX的画布控件,在使用相对较小的存储空间的同时保持高性能,可提供平滑、抗锯齿效果良好的几何图形绘制。 TouchGFX 设计器中可用的画布控件: Line Circle Shape Line Progress 圆形进度条 存储空间分配和使用 为了生成反锯齿效果良好的复杂几何图形,需要额外的存储空间。 为此,CWR必须具有专门分配的存储缓冲区,以便在渲染过程中使用。 CWR与TouchGFX的其余部分一样,没有动态存储空间分配。 在TouchGFX Designer中,可以在屏幕属性中重写画布缓冲区大小 需要的CWR存储空间的量取决于要在应用中绘制的最大图形大小。 但是,您可以保留比最复杂形状所需内存空间更少的内存。 为了应对这种情况,CWR将图形绘制分割成较小的帧缓存部分,在这种情况下,由于有时需要不止一次地渲染图像,因此渲染时间稍长。 在模拟器模式下运行时,可以更细致地查看存储空间消耗并进行微调。 只需向main.cpp中添加函数CanvasWidgetRenderer::setWriteMemoryUsageReport(true),具体操作如下:...
使用C++界面框架ImGUI开发一个简单程序 - 二次元攻城狮 - 博客园
ImGui 是一个用于C++的用户界面库,跨平台、无依赖,支持OpenGL、DirectX等多种渲染API,是一种即时UI(Immediate Mode User Interface)库,保留模式与即时模式的区别参考保留模式与即时模式。ImGui渲染非常快,但界面上有大量的数据集需要渲染可能会有一些问题,需要使用一些缓存技巧。缓存只是避免数据的更新逻辑耗时太久影响渲染,实际渲染过程不存在瓶颈。 本文最终实现的应用效果如下: ImGui有master、docking两个分支,链接如下: 主分支:https://github.com/ocornut/imgui/tree/master docking分支:https://github.com/ocornut/imgui/tree/docking 推荐使用docking分支(支持窗口停靠),本文也是使用的docking分支,先把项目下载下来。 下载示例 从github下载示例,打开examples文件夹下的项目,有很多示例可以选:...
基于FFMPEG+SDL的简单的视频播放器分析 - HolyZion - 博客园
前言 最近看了雷霄骅前辈的博客《最简单的基于FFMPEG+SDL的视频播放器 ver2 (采用SDL2.0)》,参照他的代码,在windows端实现了一个简单的视频播放器,代码的有部分改动,但是整体的思路和实现的功能是一样的。下面将对实现的源码进行分析,并对其中的一些细节进行记录。 源码分析 引入头文件 引入头文件。 #include <iostream> #include <windows.h> extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libswscale/swscale.h" #include "libavutil/imgutils.h" #include "SDL2/SDL.h" } .......
Windows内核开发_windows 内核开发-CSDN博客
Windows内核开发 对话框是一种很特殊的窗口,体现在消息的处理上 WndProc(...){ ... DefWindowProc(...); } 缺省函数(...){ ... 自定义函数(...); ....
Pong and Direct X9
Hee is my code for a pong game using directx9, I am unable to move the paddles up an down I just need a little help.
Windows编程_熠熠晨曦_的博客-CSDN博客
Windows编程基础 应用程序分类 在Windows这个操作系统平台上,共有三类应用程序 控制台程序Console Dos程序,本身没有窗口,通过Windows DOS窗口执行 窗口程序 库程序 存放代码、数据的程序,执行程序时可以从中取出代码执行和获取数据 静态库程序:扩展名LIB,在编译链接程序时,将代码放入到执行文件中 动态库程序:扩展名DLL,在程序执行时从中获取代码 应用程序对比 入口函数 控制台程序 - main 窗口程序 - WinMain 动态库程序 - DllMain 静态库程序 - 无入口函数 文件存在方式 控制台程序、窗口程序 - EXE文件 动态库程序 - DLL文件 静态库程序 - LIB文件 开发工具和库 编译工具 编译器CL.EXE 将源代码编译成目标代码.obj 链接器LINK.EXE 将目标代码、库链接生成最终文件 资源编译器RC.EXE (.rc)将资源编译,最终通过链接器存入最终文件 路径 :C:\Program Files (x86)\Microsoft Visual Studio \VC\bin 库和头文件 Windows库(动态库)...
Windows API应用程序开发--按钮和下拉框
一、工程创建 打开VS,左上角文件-新建-项目。 筛选语言为C++,平台为Windows,项目类型为桌面,选择Windows桌面向导,下一步。 Windows桌面向导 对项目命名,选定项目路径为先前的文件夹,创建。 在应用程序类型中选择桌面应用程序(.exe),勾选空项目,确定。 应用程序类型 在解决方案资源管理器窗口中,选中创建的项目,右击,添加-新建项,分别选择C++文件(.cpp) 和 头文件(.h),改名,添加。 添加文件 二、控件的创建 1、控件 窗口控件种类繁多,按钮、编辑框、列表框、组合框(下拉框)、滚动条等。实际上,它们都属于父窗口的子窗口,因此在创建时,同样是使用CreateWindow / CreateWindowEx函数。在窗口样式的指定时,将其指定为WS_CHILD就可以使其成为一个子窗口。标准的子窗口控件,也称为通用控件(Common Control)。 对窗口样式指定的选项很多,样式参考。 2、创建控件 创建控件通常在WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)函数内。...
使用windows钩子(HOOK)实现DLL注入_hook注入_大草原的小灰灰的博客-CSDN博客
DLL注入 在Windows中,每个进程有自己私有的地址空间。当我们用指针来引用内存的时候,指针的值表示的是进程自己的地址空间中的一个内存地址。进程不能创建一个指针来引用属于其他进程的内存。因此,如果进程有一个缺陷会覆盖随机地址处的内存,那么这个缺陷不会影响到其他进程所使用的内存。 独立的地址空间对开发人员和用户是非常有利的。对开发人员来说,系统更有可能捕获错误的内存读/写。对于用户来说,操作系统变得更加健壮了,因为一个应用程序的错误不会导致其他应用程序或操作系统崩溃。 所谓DLL注入就是将一个DLL放进某个进程的地址空间里,让它成为那个进程的一部分。可以通过很多种方式来实现DLL注入。 HOOK技术 这篇文章主要介绍下通过HOOK技术来实现DLL注入 windows窗口程序 先创建一个windows窗口程序 新建一个win32项目 新建一个源文件,写一个windows窗口程序 #include <windows.h> typedef BOOL(*P)(); //窗口处理函数 LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg,...
C++ 窗体程序初步(全网最全)
官方入门文档:[Create a traditional Windows Desktop application (C++)](https://docs.microsoft.com/en-us/cpp/windows/walkthrough-creating-windows-desktop-applications-cpp#:~:text=From the main menu%2C choose,Desktop Wizard then choose Next.) IDE的选择 窗体程序的开发我会推荐大家使用微软旗下的Microsoft Visual Studio 打开网页后下拉到最下方,选择对应版本就可以直接下载 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-LN78QTeB-1660453573869)(https://f.pz.al/pzal/2022/08/14/2faeac26253ef.gif)] 下载后双击运行,选择如下图的所需配置项(没有python需求的可以不勾选python,对窗体程序开发并没有影响) 然后点击下载并安装...
Vulkan 101 Tutorial
This article was originally posted on my blog at http://www.jhenriques.net/development.html. Vulkan 101 Tutorial Welcome. In this tutorial we will be learning about Vulkan with the steps and code to render a triangle to the screen. First, let me warn you that this is not a beginner's tutorial to rendering APIs. I assume you have some experience with OpenGL or DirectX, and you are here to get to know the particulars of Vulkan.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Lpstr Lp
Contact Lpstr Lp, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack