Microsoft Native Unit Test for C++ – where is the Logger output going?

Trying out C++ unit testing in Visual Studio 2019. Have added a C++ Native Unit Test Project unit test project to my solution. Then added the following Logger messages: TEST_CLASS_INITIALIZE(ClassInitialize) { Logger::WriteMessage("Setup on test class. Where will this appear?"); } // … TEST_METHOD(TestMethod1) { Logger::WriteMessage("Test method. Where is this message going??"); } The tests are… Read More Microsoft Native Unit Test for C++ – where is the Logger output going?

How to push existing Visual Studio project to different GitHub repository

I’m working on a Windows Form application in Visual Studio 2019. Currently, I have the project connected to a GitHub repository. I want to simply change or switch the GitHub repository as I don’t need the one I’m currently using. I couldn’t find anything clear online so I’d appreciate any help on how to do… Read More How to push existing Visual Studio project to different GitHub repository

Why does this sprintf_s throw an exception?

char filePrefix[] = "test"; char fileName[100]; fileName[0] = 0; sprintf_s(fileName, "%s", filePrefix); I can’t figure out why there’s an exception writing into fileName in the sprintf_s Exception thrown at 0x00007FF885E3F3A9 (ucrtbased.dll) in foo.exe: 0xC0000005: Access violation writing location 0x0000008331F00000. >Solution : From the documentation, the second argument to sprintf_s should be the size of the… Read More Why does this sprintf_s throw an exception?

What does it mean "to declar an array of chars and an array of numbers using the same identifier"?

Hi there, i`m learning C. And there is a task where i have to declar an array of characters and an array of numbers using the same identifier. For an array of numbers determine the number of repetitions of each number. For an array of symbols to find the position and value of the character… Read More What does it mean "to declar an array of chars and an array of numbers using the same identifier"?