how to add dll file to Windows Application Packaging Project
Hi there, I have a c++ win32 application, and I wan't to pack it to msix, i found this tutorial. but my project has some dll file that is other project's compiled product. the solution like this: when I add the DLL1's project reference visio studio…
关于在 Win32 程序中的 element 的 TextPattern 的支持问题
win32 程序通过 UI Automation 获取界面上已经显示的 element 后,检查到它不支持 TextPattern,但是用inspect工具却发现它支持 TextPattern。这是为什么呢?
VS2019 C++在使用的时候代码不高亮,也不能自动补全
VS2019 C++在使用的时候代码不高亮,也不能自动补全,想知道为什么,替换为VS2022 也还是不行。
如何解决在win7上提示无法定位程序输入点PssQuerySnapshot于动态链接库KERNEL32.DLL上
在win10上开发的程序,打包放到win7上无法运行,但PssQuerySnapshot所在的头文件ProcessSnapshot.h只支持win8以上,有没有什么方法解决
如何在VS2022的c++控制台项目中最大化控制台
在 Windows 11 专业工作站版23H2…
VS2022 C++ GetLastError()的编译问题
一段祖传代码要移植到VS2022,结果编译出现error,请大神帮忙看一下 代码如下: #ifdef errno #undef errno #endif #define errno GetLastError() 这段代码本身是没有问题的,即将errno强行指向GetLastError()。 但是编译时出现下面的异常: error: error: E0461-非常量引用的初始值必须为左值 C2440 无法从“DWORD”转换为“int…
Why SetWindowCompositionAttribute makes text also transparent
When I called SetWindowCompositionAttribute to make the main window blurred, text of controls on it also became transparent and thus hard to read. I want to keep the text pure black without transparency while the main window is blurred and…
碰到一个神奇的崩溃,只要在窗口上晃一会鼠标就崩溃了
我写了一个C++库,并在其中启动了一个死循环回调WPF传入的函数,奇怪的是,我只要在窗口上晃一会儿鼠标,回调就崩溃了 项目地址:https://github.com/githowe/CallbackTest
IMFStreamSink的ProcessSample运行约30秒后就不再运行了
每次启动应用程序运行约30秒后就不再继续调用ProcessSample了,ProcessSample代码: STDMETHODIMP VideoStreamSink::ProcessSample(IMFSample* pSample) { cout << "处理样本" << endl; cout << "请求样本" << endl; HRESULT hr =…
VS2022中打开一个C++项目后报几千个错误,但是能编译通过,“转到定义”功能也正常,换成VS2019就没有任何问题?
VS2022中打开一个C++项目后报几千个错误,但是能编译通过,对于一些像是“未定义标识符”的变量,按F12键也能转到定义。 但是在同一台电脑同一个Windows10下用VS2019打开项目就没有任何错误没有任何红色波浪线,intellisense一切正常。 我家里的电脑是Windows11,也是同时安装了VS2022和VS2019(就是因为VS2022出现这个情况才装了VS2019),也是同样的问题。 我记得是VS2022自动更新到17.12.1这个版本后就出现这些问题了。 我尝试过“重新扫描解决方案”…
关于IMFStreamSink的ProcessSample方法的几个疑问
我正在开发将视频帧渲染至内存的程序,在处理样本时,有以下疑问: 1.传入的样本是解码后的数据吗 2.单个视频帧会不会分成多个样本 3.媒体会话在是按帧率调用ProcessSample还是连续调用
Media Foundation自定义流接收器时,媒体类型需要设置哪些属性
我正在开发一个自定义流接收器,以将视频渲染至内存中。 现在碰到的问题是,在发送MEStreamSinkRequestSample事件后,程序出现异常: 0x00007FFC7988B699 (KernelBase.dll)处(位于 PlayerTest.exe 中)引发的异常: WinRT originate error - 0xC00D36E6 :…
VBS Enclave Loading issue
VBS Enclave Loading issue According to the VBS Enclaves development guide, Enclave Dll files in production environments require trusted signatures in order to load successfully: learn.microsoft.com/en-us/windows/win32/trusted-execution/vbs-en... We have…

Microsoft Media Foundation outputs an exception when playing local video
When I use Microsoft Media Foundation to play a local video, a Microsoft C++ exception bad_hresult is displayed in the output window. I want to know if it will affect the video playback. For demonstration, I wrote a simple example: #include…

在使用Agility SDK时,按照文档配置完成之后,不能识别CLSID_D3D12DSRDeviceFactory
问题代码如下: ATL::CComPtr<ID3D12DSRDeviceFactory> pDSRDeviceFactory; D3D12GetInterface(CLSID_D3D12DSRDeviceFactory, IID_PPV_ARGS(&pDSRDeviceFactory)); 错误输出如下: 错误 LNK2001 无法解析的外部符号…
VS2022 debug模式下代码运行错误,怎么回事,如何解决?
我把代码给你,你看看怎么回事?GITHUB网址:https://github.com/lixiang1234/TEST
1>LINK : fatal error LNK1104: 无法打开文件“c.lib”
报错: 生成开始于 22:13... 1>------ 已启动生成: 项目: sca, 配置: Debug x64 ------ 1>LINK : fatal error LNK1104: 无法打开文件“c.lib” 1>已完成生成项目“sca.vcxproj”的操作 - 失败。 ========== 生成: 0 成功,1 失败,1 最新,0 已跳过 ========== ========== 生成 于 22:13 完成,耗时 00.611 秒…
ext-ms-win-oobe-query-l1-1-0.dll
I built a dll with c++/cli in release version ,and use it in a simple C# console project, when it run ,it occur one issue of System.IO.FileNotFoundException,when i checked it Denpendencies ,that a dll called ext-ms-win-oobe-query-l1-1-0.dll loss, and…
vs2022调用Gdiplus的Graphics类,但是提示“不允许使用不完整的类型Gdiplus::Graphics”,各种配置都加好了
#include <windows.h> #include <gdiplus.h> #include <iostream> using namespace Gdiplus; #pragma comment(lib, "Gdiplus.lib") // 全局变量用于存储 GDI+ 的令牌 ULONG_PTR gdiplusToken;