3,596 questions with C++-related tags

Sort by: Updated
1 answer

Project won't build on someone elses computer.

I have a C++ Universal Windows project that builds and runs on my system, and also on another laptop. But when I send it to my teacher, he is getting the following error: The BaseOutputPath/OutputPath property is not set for project .... Please make…

Universal Windows Platform (UWP)
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,596 questions
asked 2021-09-23T06:12:52.797+00:00
Gavin Williams 761 Reputation points
commented 2021-09-28T08:37:55.03+00:00
RLWA32 41,996 Reputation points
1 answer

How to Convert this DPI Matrix transform code into C++?

Here is the code - public class DpiDecorator : Decorator { public DpiDecorator() { this.Loaded += (s, e) => { System.Windows.Media.Matrix m =…

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,476 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,489 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,596 questions
asked 2021-09-25T18:42:56.343+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2021-09-28T02:06:36.893+00:00
Xiaopo Yang - MSFT 11,746 Reputation points Microsoft Vendor
1 answer

Windows doesn't get the full date & time for the System.GPS.Date property

I've recently noticed one of my applications wasn't showing the correct date & time for the System.GPS.Date property (PKEY_GPS_Date) for photos (.jpg) that have GPSDateStamp & GPSTimeStamp EXIF properties. I've verified the files do have correct…

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,596 questions
asked 2021-09-26T23:37:34.687+00:00
David Lowndes 4,711 Reputation points
commented 2021-09-27T23:25:20.53+00:00
David Lowndes 4,711 Reputation points
3 answers

Visual Studio IDE Code snippet to convert field from upper case to lower case

I would like to accomplish the following in a C++ class via a Visual Studio 2019 IDE code snippet: Link here, reproduced below: which creates a variable name (to hold a constant) in UPPERCASE letters and creates related function names in…

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,596 questions
asked 2021-09-26T17:56:39.23+00:00
Tryer_Git 1 Reputation point
answered 2021-09-27T15:22:48.223+00:00
Tryer_Git 1 Reputation point
1 answer

ScreenBurn FrameMovement for All Desktop View

Hello, in my company we are having a trouble about screen burn. We want to take the whole desktop view with all windowses and shrink it for some percentage and then move clockwise. I tried this with MoveWindow api for only one window and it's…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
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,476 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,596 questions
asked 2021-09-01T14:50:23.777+00:00
commented 2021-09-27T07:58:59.553+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
3 answers

Read access violation

Hi , I run my cpp code and receive run-time error: 'read access violation' I've a variable oByte with the type PUCHAR I want assign this variable to another called TEMP that its type is UCHAR . The oByte is the pointer which its value is the…

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,596 questions
asked 2021-09-25T14:25:59.523+00:00
kaveh rahimi 61 Reputation points
answered 2021-09-26T23:51:43.797+00:00
WayneAKing 4,921 Reputation points
1 answer

how i learn to developed cross platform mobile application using c++ in visual studio?

Hi everyone I want to developed cross platform mobile application using c++ which is available in visual studio. please help me how I learn it?

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,596 questions
asked 2021-09-26T16:45:36.9+00:00
BHAVESH THAKKAR 1 Reputation point
answered 2021-09-26T18:36:10.487+00:00
Castorix31 82,326 Reputation points
2 answers One of the answers was accepted by the question author.

How to get VC++ 2017 compiler to implicitly cast string literal to CString

Hello! First qn here. Thanks for trying to help. I'm resuscitating a VC++ project I did 20 years ago. As I recompile .cpp into a new VS 2017 project, it seems that the VC++ 2017 compiler does not C In other words, CString A = "String…

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,596 questions
asked 2021-09-25T21:24:23.743+00:00
Ivan Starr 21 Reputation points
commented 2021-09-26T07:52:24.07+00:00
Viorel 113.8K Reputation points
2 answers

Expected a declaration

Hi , I debug the code below: include <windows.h> include <iostream> typedef VOID(CALLBACK * mPCH341_NOTIFY_ROUTINE) ( // É豸ʼþ֪ͨ»Øµ÷³ÌÐò ULONG iEventStatus); // É豸ʼþºÍµ±Ç°×´Ì¬(ÔÚÏÂÐж¨Òå): 0=É豸°Î³öʼþ,…

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,596 questions
asked 2021-09-21T14:33:32.75+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-25T11:50:19.55+00:00
juha partanen 6 Reputation points
1 answer

LNK2005 error

Hi , I debug the below code and receive LNK2005 error "main already defined in ConsoleApplication2.obj". I cannot understand its reason. Please help Thanks include <windows.h> include <iostream> pragma comment(lib,…

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,596 questions
asked 2021-09-22T17:10:25.737+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-24T08:22:43.733+00:00
Minxin Yu 10,461 Reputation points Microsoft Vendor
1 answer

LNK1266 error

Hi , I debug my project and I receive 'LNK1266' error my consoleapplication6 is: // 2004.05.28, 2004.10.20, 2005.01.08, 2005.03.25, 2005.04.28, 2005.07.18, 2005.07.28, 2005.09.19, 2007.12.19, 2008.10.15 //**************************************** …

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,596 questions
asked 2021-09-12T19:42:21.68+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-24T07:04:58.44+00:00
juha partanen 6 Reputation points
2 answers

C1075 error

Hi , I'm noob in 'c++' I debug my code and receive 'C1075' error. '{': no matching token found. I've used an anonymous namespace. I don't know why I receive this error. Please help me. Thanks

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,596 questions
asked 2021-09-22T22:28:24.023+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-23T21:32:54.013+00:00
Sam of Simple Samples 5,516 Reputation points
1 answer

Program not run when clicking "Start Without Debugging" on CMake project using WSL2

I am using Visual Studio 2019 to create a CMake project that runs WSL2 to compile my program. However, when I create the project and then try to start without debugging (Debug > Start Without Debugging), the program builds, and then it isn't run. I…

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,596 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
959 questions
asked 2021-09-19T18:03:51.627+00:00
Ayush Garg 1 Reputation point
commented 2021-09-23T08:29:10.887+00:00
PengGe-MSFT 3,341 Reputation points
1 answer One of the answers was accepted by the question author.

How to read char** from c++ .dll to string in c#

I have a DLL file and need to call functions from the file. From the .h file can see the content as follows: struct CContourManager_Dll { char** m_strOrganNameList; int m_nOrganNameListSize; void* m_pContourManager; …

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,489 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,596 questions
asked 2021-09-22T16:21:50.473+00:00
BananaLin 41 Reputation points
commented 2021-09-23T05:14:59.353+00:00
BananaLin 41 Reputation points
3 answers

syntax error : int should be preceded by ;

hi , i need help ,thank you i got some problem and whis code i write: // ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there. // include <iostream> include <stdio.h> using namespace…

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,596 questions
asked 2021-09-11T14:22:49.1+00:00
rafa memekodon 1 Reputation point
commented 2021-09-23T01:08:26.32+00:00
YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
2 answers

Linkage problem

Hi , I have read your answer about my problem and didn't understand it . you told that application type is wrong . I have a header file the visual studio makes two errors about linkage . I don't know which type of application must I use for a header…

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,596 questions
asked 2021-09-08T17:52:10.517+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-23T01:05:15.267+00:00
YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
1 answer

Clear file from memory cache

I'm developing in C++ and C# and working with larger files (tens to hundreds of GB) and performance is a major issue. However, once a file has been read it is cached in memory and subsequent reads no longer go to disk. This makes it difficult to gauge…

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,489 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,596 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,112 questions
asked 2021-09-15T20:03:24.367+00:00
Millman, Mark 1 Reputation point
commented 2021-09-23T01:04:01.76+00:00
YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

CFile - Binary Write

Hello Everybody, I am creating and writing a binary file, and am curious about a particular behavior. I am writing a struct data to the file, and the unitialized fields always come up as 0xCC in the binary file. #pragma pack(push, 1) struct…

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,596 questions
asked 2021-09-22T16:20:22.013+00:00
bryon 101 Reputation points
commented 2021-09-22T17:04:10.157+00:00
bryon 101 Reputation points
0 answers

Need support to build ISO C++03 standard in Visual Studio 2017.

My current project strictly requires building ISO C++03 standard due to safety restriction. I am currently using in Visual Studio 2017, but the property shows only /std:c++14, /std:c++17 only. How can I compile and build to ISO C++03 standard on…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,765 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,596 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
989 questions
asked 2021-09-21T12:03:10.867+00:00
Hong, Juyeon 1 Reputation point
commented 2021-09-22T11:24:04.897+00:00
WayneAKing 4,921 Reputation points
1 answer

UWP C++/WinRT full duplex communications with a TCP server

I am trying to write code in UWP C++/WinRT for full duplex client side communications with a TCP server. The TCP server is working. I can even get my code to process a message if I code it for request/response in one button click. But I have some…

Universal Windows Platform (UWP)
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,596 questions
asked 2021-09-20T23:38:00.793+00:00
David Hoffman 121 Reputation points
answered 2021-09-22T10:08:16.877+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor