[RESOLVED] Namespace problem with older version of MSVC
I have a project here which still needs to build with VS2008 and I've discovered a problem with std::min() and std::max() Code: #include <algorithm> int n = std::min(2, 1); The compiler gives...
View Articledebug in release mode
Hello, I have a multiple solutions (around 8 solutions ) and each of them have multiple projects. I am using the incredibuild and built all the solutions in the Release mode. Now when i try to attach...
View ArticleCompression error
Hello, I am trying to debug the legacy code. The code compresses the file (with different sections) during some operation. And later tries to decompress the same. Now when new sections are added as...
View Article[RESOLVED] Unwanted Toolbar Button
This one's driving me nuts. I now have an unwanted, disabled button on my program's toolbar that has an image that appears to be a ghost (disabled copy) of the first button's icon. The toolbar behaves...
View Articlehelp, to add greek language support in c++ program
Hello.I have a program in C++,and test words from wordlist ,to a word game.The program work perfectly,with english words.I want to make it to work with greek words,with a mine greek wordlist.What must...
View ArticleDevelop IPad C++ app
I have a MFC SDI app. And I need to migrate it to IOS Ipad. Yes, it is strange this request, but that 's it. From what I've read on internet, there is several options. None of this option is quite OK....
View ArticleException thrown in release mode
Hello, Hope you remember that, I am trying to use the little debug info in the Release mode, as our setup does not allow to run in debug mode with some configurations (I am just following the...
View ArticleRemaining strip is grey of CMFCTOOLBAR
I derived a class from CMFCTOolBar and uses function OnFillBackground , i was successfully able to color the background behind the bitmap to white but remaining strip is still grey.image is attached...
View ArticleMemory leak detection
Hi, I am developing an application which contains of a binary executable and couple of DLLs. I do see that in some scenarios I have memory leaks. Since they are not good I want to fix them. Googling...
View ArticleActivate MDI window
How can I activate a MDI window after this one has been hidden in systemtray ? I have tried: Code: ShowWindow(SW_RESTORE); SetForegroundWindow(); is shown, but not activated. I have to click on this...
View ArticleWSL (Windows Subsystem for Linux)
Has anyone here tried WSL? AFAICT it's a way to install Linux so that it can be launched in Windows10 - and the Linux distro of your choice will then run in a virtual machine - BUT - if I'm reading...
View ArticleHow do you specify Object Oriented Programming languages class and structure ?
I am graduated from the USA university of Binod Engineering technology and finding a way to specify classes using Object-oriented programming languages Class and struct element. How could I learn the...
View ArticleCritical section begin end() changing the auto value
Hello, In the following piece of code, used to work. Now i was debugging something else (in debug mode) and i see an issue: Code: const auto& sDecouplingId = ulDlDecoupcells.m_bIsMultiplePair ? "NR...
View ArticlePlaying MP3 file from a resource in memory
Hello, I am trying to acomplish this thematic of playing a MP3 sound file that is a resource in memory. I'm really not interested about playing it from a file because that I already did. I was looking...
View ArticleFilter a txt file based on an Excel data sheet
I would like to extend the functionality of the routine kindly developed by 2kaud - see: [RESOLVED] Filter a txt file based on a grid of data started by RIC63 user on 18 Feb 2020 - I need to add a...
View Articlepassing string as default argument (reference)
Hello, Code: double GetEffAzimuth(const MultiTechCell* pCell, std::string& error) { const auto& activeAntennas = pCell->GetActiveAntennas(); const ActiveAntenna*...
View Articleswitch case or if else ?
Hello, I have to extract the info reg rank32 (5bits), rank16(4bits), rank8(3 bits), rank4(2bits), rank2(1bit), rank1(1bit) from the encoded 16 bits // Extract the bits from the encoded rank infomation...
View Articlepotentially uninitialized local pointer variable - Understand but does not...
What have I done incorrectly? I received the following error while building my project: potentially uninitialized local pointer variable ** I understand what the error says, but it doesn't make sense...
View Article