All Questions
Tagged with windows visual-c++
2,291
questions
0
votes
1
answer
22
views
Can anyone explain this error message ? C5275
I am facing a bad situation while trying to build an assembly DLL from C++ code, for .NET 7.0.
The compiler reports the messages below, even before it attempts to compile. (By the way, this should be ...
0
votes
0
answers
33
views
How can I declare a pointer to a constant struct literal that uses a flexible array in C if possible? [duplicate]
So I wanted to store some constant text and data for parts of a level in a game in a struct, then put pointers for all those structs in a struct for each level, and pointers for all the level structs ...
0
votes
0
answers
131
views
Boost 1.85.0 Not Building with VS2022 17.10.3
I'm trying to build Boost C++ library 1.85.0 using Visual Studio 2022 17.10.3 using the following command through Developer Command Prompt.
.\b2 -j8 toolset=msvc-14.3 variant=debug link=static address-...
0
votes
1
answer
57
views
How do I read the cycle counting register on Windows ARM64
Just bought a windows laptop sporting the Snapdragon Elite processor and trying to get acquainted with the ARM instruction set via some C-code. First attempt is to read from the cycle counter register ...
0
votes
0
answers
30
views
Hiding non-exported symbols in static libraries on Windows
I have a set of C files that are compiled and linked into a library. If I create a normal dynamic library (.so, .dylib or .dll) I can make sure only those functions marked as EXPORTED are visible to ...
0
votes
0
answers
25
views
CoInitializeEx Success but OleSetClipboard faild in a DLL in a UI thread
I do this at the beginning of a UI thread function. This means that after this line a Window is created with CreateWindow and the wndproc has his own message loop:
HRESULT hrComResult = ::...
9
votes
1
answer
1k
views
First std::mutex::lock() crashes in application built with latest Visual Studio 2022
Recently I installed the latest Visual Studio 2022 v17.10 to build my programs, and initially all went well. But after some other program installation, my programs started failing immediately on start ...
0
votes
0
answers
73
views
How encodings work during compilation with different compilers?
I compile this code with Cyrillic characters:
setlocale(LC_ALL, "");
string mystr = "русские символы";
cout << mystr << endl;
And a problem arises with different ...
0
votes
1
answer
102
views
How to include Visual C++ Redistributable (VCRedist) in a Flutter Windows app for Microsoft Store?
I have developed a Windows application using Flutter and I want to distribute it through the Microsoft Store. I have created an installer and generated an MSIX package from it. However, my application ...
0
votes
0
answers
44
views
EventID 1002 When Microsoft Store Updates Application, using C++ MFC
I have a C++ MFC application, which hangs when the application is updated via the Microsoft Store. After the update the application is not running.
How can I ensure the application keeps running after ...
0
votes
0
answers
30
views
Compile Octave 9.1 API on windows via Visual Studio 2022
So i would like to use Octave 9.1 API in my C++ code in Visual Studio 2022.
To perform it i need the correct .lib and .dll files.
I try to search a precompiled version of it or a step by step tutorial ...
0
votes
0
answers
42
views
select the correct Visual Studio Version for setuptools
I do want to compile a a library in C++ for Python. Running python setup.py install --user returns the following warning
cl: 'utf-8' codec can't decode byte 0x81 in position 62: invalid start byte
...
0
votes
0
answers
67
views
Disabling a physically connected devices which are involved in an IO operation
Problem statement:
I'm trying to disable a device using the setup apis, but sometimes I'm experiencing an error due to it is involved in IO operations. Im looking for a way to make a device behave ...
0
votes
0
answers
45
views
How to compile Qt lupdate with clang-based parser via MSVC?
I work on Windows 11 with CMake 3.29 and MSVC from Visual Studio 2022.
I want to compile Qt 6.7 with LLVM 18. The Qt Linguist TS-Update Tool lupdate should support the clang-based parser. I compile Qt ...
0
votes
0
answers
76
views
What is the difference between OleInitialize and CoInitializeEx
Based on the document of OleInitialize (https://learn.microsoft.com/en-us/windows/win32/api/ole2/nf-ole2-oleinitialize), it said OleInitialize will call CoInitializeEx internally.
Then what is the ...