Pointer Size in 64-bit Operating System
Hello, I read in 64-bit OS pointer is 8-byte. My OS in 64-bit but pointer size is 4 bit.
About Messagebox and DialogBox
I created a dialog box by DialogBox() function. But there was a problem when I tried to add a message box to my DialogProc. The message box could show but I couldn't close it. I noticed that it also couldn't be active (Its title bar was always white). …
None of my projects (all C++) load on new computer
I recently replaced a computer. On the new computer, none of my Visual Studio projects will load (they are all C++). I receive the following error message: error : Project "" does not contain any configuration. The lack of useful…
change the display setting in windows 10
Hi, I have two display ports in integrated system. Based on the ports ID i need to clone or extend the displays Programatically in C++. Is any one have an idea how to clone and extend the displays? Do we have any Windows API to do it? I have used…
Using VS2019 with WSL (Windows Subsystem for Linux)
Hi there - I tried to post a question about Visual Studio and got redirected here (so hopefully it's the right place !! ) I'm trying to install WSL which is a new-ish technology for allowing Visual Studio to build Linux apps. I followed these…
Visual C++ 2019 Debug
Purchased Microsoft Visual C++ 6.0 several years back. When in debug mode, could display the debug toolbar which allowed one to step over, step into, run to cursor, etc. Realizing that this is old technology, decided to use the free, Visual C++ 2019 but…
When calling thread::Join() getting an error "The inferior stopped because it triggered an exception" in C++
Hello All, I have a main thread that will process the messages posted to the message queue. When destructing the resources I am sending the MSG_NONE message to the message queue to process. And then calling the thread .join() like as shown below: …
C Commands
Well, using the Visual C 2019, tried all of the following, will not work! Trying to input an integer number from the keyboard, tried: -scanf_s("%I",Variable); -scanf_s("%d",Variable); -scanf_s("%u",Variable); All…
417 errors just opening C++ project before I even write code.
errorhell.jpg Hi, I apologize if I am posting in the wrong place. I am trying to write a simple program in C++ using Visual Studio and no matter how I set up the project, whatever template option is offered, I get about 417 errors. Before I…
Need to install and Run Visual C++ 2008 Edition software in Window 10
Hello Team, I downloaded and installed Visual C++ 2008 from following link. https://www.microsoft.com/en-ca/download/confirmation.aspx?id=15336 But It not working in my laptop. Please support and suggest me to run in my system. System…
string conversion
I have some doubts about the string conversions in C++. To convert const WCHAR* to LPWSTR can I use the below code? LPWSTR dest; const WCHAR* source =L"Hello"; dest = 0; wcsncpy_s(dest, MAX_PATH, source ,…
Some WMI calls to UWF return access denied error
Hello, I am currently working on a C++ application which uses the integrated write filter(UWF) of Windows 10 IoT. I am using Windows 10 IoT Enterprise LTSC 1809 Build 17763.107 Now I face the following problem: Some WMI calls return with a…
Visual Studio 2019 C++, how to know which return statement (out of multiple return statements in current function) exited the current function
I'm debugging a C++ function in Visual Studio 2019 and there are multiple return statements in it. I want to know which return statement exited the current function. Right now I'm adding breakpoints to all the return statements and continuing the…
How can we ensure that we deliver all DLLs required in all Windows variants?
Dear Sir or Madam, We have been developing an enterprise solution for the kitchen trade for 20 years. We keep having the problem, that with different Windows versions, especially with older, unpatched operating systems, DLLs are missing. We cannot…
The MFC Ribbon Bar and High DPI?
Looking at the MFC Ribbon Bar, there seems to be some facility for responding to High DPI in that one can supply alternative images "for High DPI". And for the application button an alternative High DPI image can be provided. On this latter…
Visual Studio 2019 C++ not recognizing template friends
I have an example C++ program that works in Visual Studio 2019 with a plain version of class1 but not with a template version of class1. Both versions work in gcc. The details of the example can be found at …
GDI+ versions?
Still on my learning curve for using metafiles, I'm now drawing one with GDI+, using the GDI+ Metafile class. But I want antialiasing, and for that, I believe, I have to call (one of the overloads of) Metafile::ConvertToEmfPlus( ). These only…
IMFDXGIBuffer interface not found
IMFDXGIBuffer interface is missing on Windows Server 2016. I have installed "Media Foundation" feature, but the problem still exists. Also latest DirectX is installed.. What could cause this issue?
How to pass the interface to the getinstnace of the class instead of passing concrete class in C++
Hello All, In my test project, I am getting the instance of the signleton class (CPSCApp) and that instance I am passing it to the getinstance function of the second class (CCMainApp) . To write the mock functions and set the expectations, I was…
How to install MFC on VS 2019
Hello, I've installed MFC extension for VS 2019 version 16.7 on Windows x64 operating system as follows: But when I open a new MFC project, before I start editing it, there are many undefined identifiers and two errors of "cannot open…