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…
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
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
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…
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…
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
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 { …
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…
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…
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,…
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…
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…
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…
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…
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? …
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…
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
I Want To Start Game Dev
How i Make DirectX 12 Ultimate Game
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…
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…