Як виправити помилку С2731: 'mian': function can be overloaded
int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); ```}
How to create a new dll file in vs2022
How to create a new dll file in vs2022, why after I created a new dll file, the compiler reported error C1854: The information formed during the precompilation header process of creating the object file "pch.obj" could not be overwritten.
Error squiggle not showing in visual studio code
Can't see error squiggles I have three files in my new C++ empty project, two of which are main.cpp and functions.cpp. I can see error squiggles in main.cpp but it is not in functions.cpp. The show squiggle option is on.
Application crashing -The process was terminated due to an unhandled exception.
Environment : OS Microsoft Windows Server 2019 Dotnet framework: 4.7 SQL : SQL Server 2019 Note: Previously our application was working fine in 2016 OS. Once we upgraded to OS 2019 we are facing below issue Application level - Event viewer log Faulting…
C++/CLI breakpoints not stopping
I try to debug an extension for Visual Studio (2019/2022) that I wrote in C++/CLI. Now... the extension itself works. The only problem is, that I cannot jump into the code while it is executing. The breakpoints never stop. But, when I create a C#…
Why does my transparent-background window turn into black screen after window ghosting?
I have a pop-up window that acts as a watermark on my application over a parent window. It has a transparent background (WS_EX_TRANSPARENT), but when the application becomes non-responsive, Windows adds a ghost window with a black background. I tried…
How to add an application SID to component services DCOM Config security permissions?
How to add an application SID to component services DCOM Config security permissions? I have a COM Service which is logon as Network Service and I want to start another COM application(with DCOM) in this Service with CoCreateInstance, Local…
How to hook the ItaskbarList4 class?
I'm trying to customize the taskbar buttons, for this i'm hooking the ItaskbarList4 class using Detours, however, the functions on MyTaskbarList isn't getting called, trying to figure out what's wrong: inline HRESULT(WINAPI* CoCreateInstance_O)(REFCLSID…
Is there any way to disable loading of satellite DLLs for MFC programs?
According to this help page, any application or DLL created with MFC will attempt to load localized resources from satellite DLLs such as exampleENU.dll or exampleLOC.dll. We have built a legacy application using MFC, but we do not use this particular…
How to use c++ 20 modules in shared libraries ?
Hello everyone, I am currently working on a test-project where I want to use shared libraries and I would like to leverage the new C++20 modules feature. However, I am having some difficulty understanding how to properly set up my code to use C++20…
Visual Studio debugger will not step into code of a separate project that builds to a dll (within the same solution)
I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll is…
Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST
A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…
How to add custom parameter and its corresponding value in the HTTP header using the Windows-win32-webservices.h library
I have implemented a SOAP web service client in C++ using MS Visual Studio 2019 and library “WebServices.h”, in order to consume a SOAP web service. SOAP webservice that I am consuming requires a custom parameter and its corresponding value in the HTTP…
Visual C++ vc_runtimeminimum_x64.msi Error
When trying to uninstall Visual C++ I get the following error: Here are the remaining versions of Visual C++ on my device: When trying to install the latest Visual C++ I get this error: I attempted to use the Program Install…
Azure functions running 64 Bit native c++ dll
Hi Community, I reached out to Azure support via twitter and they suggested I post in here, for any help that might come my way. I have a .Net5 Isolated function that is running some proprietary c++ dll's, that I have compiled as 64 bit, these run…
LoopbackCapture (`ActivateAudioInterfaceAsync` with `VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK` ), m_AudioClient->GetMixFormat failed with E_NOTIMPL
Hi, I use the applicationloopbackaudio-sample to record system audio, it works fine. However, the capture format is hard coded: // The app can also call m_AudioClient->GetMixFormat instead to get the capture format. // 16 - bit PCM format. …
.net8 windows form design view problem.
I am developing Revit addin in Vidual Studio in c++/cli as class library. Before moving to .net platform everyhing was working fine. But in .net Windows form design views doesnt work. Though when I add form element by code. It compiles and works. The…
Same Header File Is Different
Hello Folks: Developing on Windows 10, up to date Visual Studio Community 2022, C++. When building my application I occasionally see this error: The two header files that Visual studio is complaining about are the same file. Here is the text of the…
Issues with afxres.rc
I have some MFC projects that have worked for many years, but suddenly I can no longer access resources from afxres.rc in any of them. For example, here's a simple test: CBitmap bitmap; BOOL success = bitmap.LoadBitmap(AFX_IDB_CHECKLISTBOX_95); assert(…
Can COM use Excel as an in-process DLL?
Hello, I would to ask about Excel COM operation. To connect to Excel from another C++ process is well established: #import "C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE11\\MSO.DLL" #import "C:\\Program Files…