3,601 questions with C++-related tags

Sort by: Updated
0 answers

how to read config file in IISModule?

how to read txt or other config file in IIS Module? it seems can not read txt file there is no permission to read any file.in the dll file I can not read the config file.(not read each website but one file) I put it in inetmgr1 folder or local folder can…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-19T12:28:52.6+00:00
mc 3,906 Reputation points
commented 2024-06-19T12:41:59.6566667+00:00
RLWA32 42,001 Reputation points
1 answer

Disabling autocompletion from anything else than Tab in VS 2022

Although I set "Default IntelliSense completion mode" to Tab-only in Text Editor/Advanced, Visual Studio keeps replacing text as I type with its first suggestion when I press e.g. space or dot. I do not want the editor to ever autocomplete…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,775 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-18T09:34:12.84+00:00
Coco_l_asticot 0 Reputation points
commented 2024-06-19T11:01:39.5033333+00:00
Coco_l_asticot 0 Reputation points
0 answers

Documentation clarification for MF_MT_AUDIO_AVG_BYTES_PER_SECOND for AAC encoder

The documentation here: https://learn.microsoft.com/en-us/windows/win32/medfound/aac-encoder States that for AAC encoding the valid values for **MF_MT_AUDIO_AVG_BYTES_PER_SECOND **are 12000, 16000, 20000, 24000. It then says that * 6 those values should…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,481 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-19T03:01:32.6166667+00:00
mb 0 Reputation points
commented 2024-06-19T05:38:00.4766667+00:00
Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
3 answers

How to Detect Initial DPI changes in a WPF Application while Scaling according to Per Monitor Aware in Variable Dynamic Screen Resolution?

In daily life we have to deal with a lot of different types of display size it may be mobile or may be a 4k monitor. The screen resolution vary from display to display. Here another important factor is DPI (Display per inch) which is mainly a scaling…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,946 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,697 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,500 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-05-27T23:46:16.7233333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-19T03:43:39.36+00:00
Hongrui Yu-MSFT 600 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

failed to load dll

but when I register it .and

Internet Information Services
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-16T01:25:33.6566667+00:00
mc 3,906 Reputation points
edited the question 2024-06-19T02:57:53.68+00:00
mc 3,906 Reputation points
2 answers

How to initialize inner class that has a c-tor with more than one parameter

Hi to all, I'm trying to write a simple code and it won't compile! Any ideas? #include <stdio.h> class RegClass { public: RegClass(int param, char * theName) { printf("c-tor (%d,%s)\r\n", param, theName); } }; class Test { public: int…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-18T14:25:23.7266667+00:00
S. Beniashvili 0 Reputation points
edited an answer 2024-06-19T01:16:49.1366667+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor
2 answers

Get deleted item from recyclebin

Task: I need to get deleted item having SHITEMID data. SHITEMID is defined as: typedef struct _ITEMIDLIST { SHITEMID mkid; }ITEMIDLIST; defined in C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\shtypes.h I have the following code to get…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-11T13:21:13.9233333+00:00
Flaviu_ 931 Reputation points
commented 2024-06-18T18:15:17.91+00:00
RLWA32 42,001 Reputation points
2 answers One of the answers was accepted by the question author.

Direct2D drawing quality is inconsistent

This is the result drawn in the window(HwndRenderTarget) This is the result of drawing in WicBitmapRenderTarget

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,481 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-17T03:24:16.3466667+00:00
HoWe Yu 41 Reputation points
accepted 2024-06-18T17:43:56.8966667+00:00
HoWe Yu 41 Reputation points
1 answer One of the answers was accepted by the question author.

How to initialize inner class that has a c-tor with parameters

Hi to all, I'm trying to write a simple code and it won't compile! Any ideas? #include <stdio.h> class RegClass { public: RegClass(int param) { printf("c-tor (%d)\r\n", param); } }; class Test { public: int a; RegClass Reg(5); }; int…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-18T12:50:32.0766667+00:00
S. Beniashvili 0 Reputation points
commented 2024-06-18T13:14:35.3733333+00:00
S. Beniashvili 0 Reputation points
0 answers

Finding window element using MSAA

I'm trying to detect the "Previous" and "Next" buttons of the Spofity MiniPlayer window using MSAA, however, sometimes these buttons don't get detected, I don't understand why, it's like luck, I need to reopen the window uncountable…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,481 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-14T20:07:42.4333333+00:00
Laila 0 Reputation points
commented 2024-06-18T07:55:27.1+00:00
Jeanine Zhang-MSFT 9,351 Reputation points Microsoft Vendor
2 answers

How to modify the value of a preprocessor based on the value returned by a command or script?

On visual Studio 2022 how to have a preprocessor value defined based on the result returned by a script? What i tried: Solution Explorer > Properties > Build Events > Pre-Build Event > Command Line > "python script.py >…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,775 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-14T00:07:35.4566667+00:00
Leo Purktz 0 Reputation points
commented 2024-06-18T06:53:51.6766667+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor
2 answers

C++ Inner class construction problem

Hi to all, I can't figure out what is the problem with the following simple C++ code! the inner RegClass class within Test class won't construct. Any ideas? #include <stdio.h> class RegClass { public: RegClass() {…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-17T15:32:34.9566667+00:00
S. Beniashvili 0 Reputation points
answered 2024-06-18T02:17:27.5266667+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor
1 answer

C++20 Modules in Shared Libraries

Hello, Follow-up question to https://learn.microsoft.com/en-us/answers/questions/1665106/how-to-use-c-20-modules-in-shared-libraries I’ve been exploring the use of C++20 modules in shared libraries and I understand the typical approach involves providing…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-13T09:43:29.3+00:00
Michael Brunner 20 Reputation points
edited a comment 2024-06-18T01:39:16.0333333+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor
0 answers

How to Utilize SetColor(Windows::UI::Colors::Red) from a Non-UWP and Non-C++/WinRT DLL File

Hi, I have developed a C++ DLL without utilizing UWP or C++/WinRT. Within this DLL, I am employing Windows::Devices::Lights::LampArray^ lamp to retrieve information about the lamp, such as lamp->IsConnected, lamp->LampCount, and…

Universal Windows Platform (UWP)
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,481 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-16T19:14:55.05+00:00
sunil maurya 21 Reputation points
edited a comment 2024-06-17T09:52:58.8666667+00:00
Junjie Zhu - MSFT 16,151 Reputation points Microsoft Vendor
0 answers

How to fix "module was not instrumented." Reason:"path_is_excluded" error in Microsoft.CodeCoverage.Console tool?

I'm receiving the following problem while trying to instrument my dll with Microsoft.CodeCoverage.Console tool. module was not instrumented. Reason: path_is_excluded." I'm using Microsoft.CodeCoverage.A console tool for calculating code coverage.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,535 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,775 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
334 questions
asked 2024-06-13T06:50:10.2966667+00:00
R M 0 Reputation points
edited a comment 2024-06-17T09:37:25.4333333+00:00
Anna Xiu-MSFT 27,216 Reputation points Microsoft Vendor
3 answers

There is a red wavy line but there is no error. Bug or settings?

void ff(int* p) { std::cout<< *p; }; void ff(unsigned int i) { i++; } void func(void (&&fp)(int*)) { int i = 6; fp(&i); } //no other overloaded versions of func ...... func(ff); I compiled with no error or warning, but there is a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,775 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-16T06:08:44.82+00:00
zzzhhh 40 Reputation points
answered 2024-06-16T08:52:08.86+00:00
RLWA32 42,001 Reputation points
2 answers One of the answers was accepted by the question author.

Why isn't my c++ dll properly loading into my c# exe?

I'm continually getting this error message but I can't find the source. Here's a link to the .dll class I want to utilize: link And here's the c# class I'm calling it from: link

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,500 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-13T13:31:40.4133333+00:00
Forrest Crawford 40 Reputation points
accepted 2024-06-14T22:23:38.3766667+00:00
Forrest Crawford 40 Reputation points
0 answers

Sending PCIe Message TLP (Vendor Defined Message) from windows Kernel mode driver

Hi, I'm trying to write a custom driver on windows 10 (with KMDF) to frame & send PCIe TLP packets to PCIe EndPoint with user-defined payload. I'm able to do PCIe CfgRead, CfgWrite operations with READ_REGISTER_ULONG and WRITE_REGISTER_ULONG APIs.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,775 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
35 questions
asked 2024-06-11T17:01:52.9166667+00:00
Srinath Prakash 0 Reputation points
edited the question 2024-06-14T09:19:58.2066667+00:00
Srinath Prakash 0 Reputation points
1 answer

Control Flow guard

Hello Team, Control flow guard is only for visual c++ based application or for all c++ compilers or it will works for all like c#, .net based application.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,535 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,500 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-07T11:13:32.64+00:00
Mashuk Raza 20 Reputation points
commented 2024-06-14T01:55:26.78+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor
0 answers

Problem signing a hash using the Wincrypt lib

Hello devs. I need to read the user certificates installed in Windows and use them to make a signature in a hash of a file previously calculated in sha256 with the private key of the chosen certificate. To do this, I developed the following code inspired…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,601 questions
asked 2024-06-13T18:30:13.1666667+00:00
William Coelho 0 Reputation points
commented 2024-06-14T01:52:27.8266667+00:00
Minxin Yu 10,466 Reputation points Microsoft Vendor