Content
How to set accented characters on a Button in MFC application
Hi, I'm developping a little MFC project to drive an Arduino board. I try to change caption in a Button but accented characters (french) are displayed as garbage. My code: void…
How to change gamma and brightness values for multi monitor setups
I'm trying to add a functionality to my app with which you can change gamma and brightness of any monitor connected. For gamma I was looking at GetDeviceGammaRamp / SetDeviceGammaRamp, but on that page it says: "We strongly recommend that you don't…
Disable auto-saving when using Quick Replace (Ctrl+H)
In a recent Visual Studio, version 17.7.4, C++ programming, when using Quick Replace (Ctrl+H), the files that get modified are saved immediately after the modification takes place. Is there any option that can disable this behavior? Thanks.
Problems with starting a working build (Cocos-2d)
Hello everyone. I'm working on developing a game on Cocos2d, it's my own project, and a thing happened: After updating the build, I tried to run the .exe, and I got a blue screen when running with error "VIDEO_SHEDULER_INTERNAL_CODE" After…
How do i use winrt/c++ add my apps to " System ->Notifications->Notifications from apps and other senders" in windows11 ?
How do i use winrt/c++ add my apps to " System ->Notifications->Notifications from apps and other senders" in windows11 ?
Tengo falla de la funcion FTPGetFile del Wininet cuando el servidor FTP es un Linux
Tengo falla de la función FTPGetFile del Wininet cuando el servidor FTP es un Linux, la respuesta es no se encuentra el archivo, cuando el Servidor FTP es Windows funciona. No encuentro en todo internet (llevo 3 días) respuesta a este problema. Espero…
How to check the size of the memory block available to an .exe?
Visual Studio 2022 Visual C++ So other than checking for bad_alloc with try catch, is there a way to look and the memory space available to an .exe and print out a value for the size of the available block of memory that the current .exe file can access?
OLEDB stopped working after October updates including current SQL Server update
I have been using the same OLE_DB code via ATL classes for accessing SQL Server for several years. It worked without issue until the October updates. After the last update it now fails with an internal assert (from atldbcli.h) ATLASSUME(m_pAccessor !=…
VC runtime redistributable
Hello, What type of license needs to be bought to commercially redistribute the VC runtime without any restrictions? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 Is it free if we own a Visual Studio 2022…
C++ exe not running inside Docker container
I have a C++ project written in C++ 98 on Windows platform. I'm trying to run its executables inside docker container but the exe is not running. Its not showing any error as well. I have checked the exe with Dependency Walker and all the dependent DLLs…
MICROSOFT VISUAL C++ 2010 X64 REDISTRIBUTABLE Expire Date
Where i find the end of service date 'MICROSOFT VISUAL C++ 2010 X64 REDISTRIBUTABL' Is this following the EOS of visual studio 2010? or Does it have a separate EOS period? Visual studio 2010's EOS comes out, but I can't find exactly…
fail to draw bitmap correctly with Bitblt()
Part of callback function of a child window: case WM_MOVE: hdc = GetDC(hChild); hdcMem = CreateCompatibleDC(hdc); SelectObject(hdcMem, hBitmap2); BitBlt(hdc, 0, 0, width / 4, height / 4, hdcMem, or_x, or_y,…
How do I solve E_INVALIDARG error on ID3D11Device::CreateVertexShader method?
I'm getting an E_INVALIDARG error when creating the vertex and pixel shaders. I tried two methods, both of which failed. There is no error when compiling the shaders, so I assume the files are okay. Here are the shader files code: // VERTEX SHADER…
REST interface // Newtonsoft.Json.dll // Problem with System.Net.Http
Hello, System.Net.Http.Formatting Newtonsoft.Json.dll NuGet\Install-Package Newtonsoft.Json -Version 6.0.1 https://www.nuget.org/packages/Newtonsoft.Json/ Messages //Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0' //A dependency on it…
creating a C++/windows/desktop project it dosn't show any form
After creating a project in C# I get the form. In C++ I doesn't
How can I fix PCH memory errors after c++20?
Greetings, I come to you with memory management issues. After C++20 came out, we have assigned this to be the standard language to our projects. We've been using PCH for a good while already, and until C++20 came out, there hasn't been any…
Problems overriding CMDIChildWndEx::OnUpdateFrameTitle() ???
Different views of my MFC document are shown with tabs. These views (of the same document) are going to be very different and I want to label them (schematically) xyz.mz:1/alice xyz.mz:1/bob xyz.mz:3/charlie A very helpful answer to…
How to manage CView window titles in MFC?
In an MFC application in C++, with tabbed CView windows, a title appears in the tab. Nosing around, I find that this is the Window Text associated with the CView's parent window. The title can change: for example when a file is saved, the title…
Direct2D Drawing Gradient Thickness Curves
I've asked this question before, but GDI+ can only achieve gradient thickness curves by adjusting the thickness of each curve segment. I'm not happy with that, and I think it should be possible to solve this problem with Direct2D. (Previous questions:…
Running External Application in a Microsoft::VisualStudio::CppUnitTestFramework Test
I am writing a test project for an MFC application using Microsoft::VisualStudio::CppUnitTestFramework, with a single step to verify end-to-end integration of the said application with all external parties (SQL Server and other entities). I need to start…