3,559 questions with C++-related tags

Sort by: Updated
0 answers

struct timeval (winsock2.h) - Y2K38

I wondering that timeval struct still using long (32bit) members causing the Y2K38 issue... Is there a plan to make that Y2K38 compatible or should I use alternatives to the timeval struct and why is this not marked as deprecated in winsock2.h? 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,559 questions
asked 2021-09-08T11:44:04.303+00:00
Harald-René Flasch 1 Reputation point
commented 2021-09-10T10:10:20.773+00:00
Harald-René Flasch 1 Reputation point
3 answers

File corrupt

Hi , I have 'ch341dll.lib' file when I open it in c++ I receive error LNK1127. How can I take 'ch341dll.lib' file. because the error says that this file is corrupt. Please help 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,559 questions
asked 2021-09-08T21:49:30.85+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-10T06:06:48.867+00:00
YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
2 answers

Library definition

Hi , I want to add a library to my project (the library is 'CH341DLL.LIB') and don't know which sort of file extension have I to use and how and where can I add it? Please explain by example 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,559 questions
asked 2021-09-09T13:27:38.727+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-10T03:07:35.577+00:00
Sam of Simple Samples 5,516 Reputation points
3 answers

How can I use strcpy_s in my Visual Studio code?

Hello, We are using standard string functions like strcpy, memcpy, strcat in our embedded projects, We came to know there are more safer functions available called strcpy_s, memcpy_s, strcat_s etc. that can be supported by C11 standards, I have done my…

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,559 questions
asked 2021-09-09T05:47:39.017+00:00
Bhatt, Nirav - Xylem 1 Reputation point
commented 2021-09-10T02:31:17.793+00:00
Sam of Simple Samples 5,516 Reputation points
0 answers

How quickly disconnect http connection in MFC

Hi In my app I need to get http message head information but some servers not support head method and I have to use GET, but in get message body is going to download so How to quickly can close the connection? is enough to call CHttpFile::Close…

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,559 questions
asked 2021-09-08T04:53:39.913+00:00
drjackool 956 Reputation points
commented 2021-09-09T09:14:14.307+00:00
Minxin Yu 10,361 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How ignore file creation after calling CreateFile() Win32 API

Hi How cancel file creating after calling CreateFile() and before CloseHandle? is there a way or have to use CloseHandle() then DeleteFile()? Can I use CancelIo() ? Thanks

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,447 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,559 questions
asked 2021-09-07T16:18:19.387+00:00
drjackool 956 Reputation points
commented 2021-09-09T03:21:26.647+00:00
drjackool 956 Reputation points
1 answer

Issue with transfer CMFCPropertySheet from ISO C++ 17 to OSO C++ 20

It is MFC VC++ Visual Studio 2019 Community Update 16.11.2 under Win 10 My peoject is CMFCPROPERTY SHEET app. For each property page Visual studio entered the constructor: class CPgTraining : public CMFCPropertyPage { …

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,447 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,559 questions
asked 2021-08-30T01:56:21.877+00:00
George Yaroshevsky 1 Reputation point
commented 2021-09-09T01:59:33.593+00:00
George Yaroshevsky 1 Reputation point
0 answers

OpenSCManager API failed with AccessDenied for Remote Computer

Hi, While trying to establish a connection to the Service Control Manager on Remote Computer using OpenSCManagerA( ), it's failed with Access Denied. This API succeeds when I execute this command with user session. When I run this command with…

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,447 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,559 questions
asked 2021-09-07T08:10:41.31+00:00
Navaneeth R 21 Reputation points
commented 2021-09-08T05:39:43.98+00:00
Xiaopo Yang - MSFT 11,506 Reputation points Microsoft Vendor
1 answer

Error "Cannot open source file" in c++

So I am new in c++ and in visual studio, every time i try and build/debug, it always fails and basically all the files in "External Dependencies" comes up in the error list saying it cannot be opened. I have checked the forum but nothing is…

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,559 questions
asked 2021-08-30T11:00:34.643+00:00
Malte Ekman 1 Reputation point
commented 2021-09-08T05:29:31.72+00:00
Jeanine Zhang-MSFT 9,186 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to prevent unnecessary recompilation of C++ static libraries?

MSVC Version 16.11.0 Preview 4.0, Windows 10. I have two MSVC C++ solutions which share a number of static libraries. When I switch from one solution to the other and try to run the app, MSVC always recompiles the static libraries. To try to stop this,…

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,559 questions
asked 2021-08-31T11:54:19.037+00:00
Rob190 41 Reputation points
accepted 2021-09-07T20:35:14.33+00:00
Rob190 41 Reputation points
1 answer

MSVC linker seems link wrong symbol cause segmentation fault(without __declspec(dllimport))

I have two C++ sources (a.cc, b.cc), one will be compiled into a shared library(a.dll), other will be compiled into an executable(b.exe) and link a.dll, but MSVC linker didn't link symbol correctly in a.dll without __declspec(dllimport), here 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,559 questions
asked 2021-09-07T04:55:52.08+00:00
Dun Liang 6 Reputation points
commented 2021-09-07T09:29:01.29+00:00
Viorel 112.9K Reputation points
2 answers

Win32 TabControl resize flicker

I made a GUI with a native splitter separating a ListView and TabControl. The TabControl has two child windows an input and output window. The main problem is when I try to move the splitter everything moves as intended however the TabControl flickers a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,851 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,447 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,559 questions
asked 2021-08-11T17:10:15.697+00:00
Anonymous
commented 2021-09-07T06:53:49.437+00:00
Castorix31 82,031 Reputation points
2 answers

Signing and trust for indy devs

Hello I'm working on an open source, completely free, C++ project. It's built using VS community though I'm not sure if that's really relevant. Currently when my users download the software, they're presented with a defender warning that the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,683 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,447 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,559 questions
asked 2021-09-06T22:39:15.05+00:00
Dave 1 Reputation point
answered 2021-09-07T06:30:29.823+00:00
metablaster 91 Reputation points
0 answers

MEMCM - SDK or Unmanaged Method to Access Full TSXML (Including Secrets)

Title pretty much explains it. When you view an instance of SMS_TaskSequencePackage and grab the lazy property "Sequence" the XML is returned with secrets stripped (e.g. hidden variables, passwords for "run as" accounts), when you run…

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,364 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,559 questions
asked 2021-09-07T03:38:25.647+00:00
Nathan Ziehnert 1 Reputation point MVP
1 answer

How to use cache in c++?

Hi, I have several objects. Can I keep them in memory and access the data when I need as .NET memory cache? cache.add("key", myclass); cache["key"].value... I am using vs2019, c++20. Where should I start to achieve this? …

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,559 questions
asked 2021-08-20T22:15:45.5+00:00
DangDKhanh-2637 941 Reputation points
commented 2021-09-05T16:04:39.263+00:00
metablaster 91 Reputation points
0 answers

DirectX not showing up on Visual Studio 2019

Hi all, So I downloaded VS 2019. See on RHS, that the windows 10 SDK was installed, I also downloded directx installer (dxwebsetup.exe) and ran it, and yet I get the same "No results" or unrelated results for any variation 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,559 questions
asked 2021-09-05T15:54:30.327+00:00
MOV EAX,0x2; NOP; JMP EAX; 1 Reputation point
2 answers

Link.exe not found

Hi , I have a header file in c++ 'CH341DLL.H' . When I debug it I receive: Failed to locate: "link.exe".The system cannot find the file specified. I don't know why do 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,559 questions
asked 2021-09-05T08:59:00.157+00:00
kaveh rahimi 61 Reputation points
commented 2021-09-05T15:17:55.77+00:00
Castorix31 82,031 Reputation points
2 answers One of the answers was accepted by the question author.

I Want To Start Game Dev

How i Make DirectX 12 Ultimate Game

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,559 questions
asked 2021-09-02T11:53:57.967+00:00
Hamza Elashry 226 Reputation points
answered 2021-09-05T05:57:03.467+00:00
metablaster 91 Reputation points
2 answers One of the answers was accepted by the question author.

Callback problem

Hi , I run the code below and receive the following errors: typedef VOID ( CALLBACK * mPCH341_INT_ROUTINE ) ( // ÖжϷþÎñ³ÌÐò ULONG iStatus ); Errors: 1-function returning function is not allowed 2-expected a ')' 3-Identifier…

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,559 questions
asked 2021-09-03T16:28:59.063+00:00
kaveh rahimi 61 Reputation points
accepted 2021-09-04T09:14:21.46+00:00
kaveh rahimi 61 Reputation points
1 answer One of the answers was accepted by the question author.

Missing Install Components

I have loaded a project, but get the following error : Project 'Project' could not be loaded because it's missing install components. To fix this launch Visual Studio installer with the following selections: C++ (v142) Universal Windows…

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,559 questions
asked 2021-09-03T17:40:02.837+00:00
JayGee 181 Reputation points
commented 2021-09-03T23:33:05.877+00:00
JayGee 181 Reputation points