python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Best data type and rounding function for weight and currency variables
I need to multiply two values - weight and currency (Visual c++, mfc). E.g.:
a=11.121;
b=12.11;
c=a*b;
Next I have to round "с" to 2 digits after point (currency value, e.g. 134.68). What...

Сергей Соколов
Votes: 0
Answers: 1
VC++08 make MFC apps DPI aware without updating VC++
I may not have the option to simply update to a more recent VC++ version as would be ideal - the project is big and the update could break a lot of things, plus my lead may tell me not to pursue this....
PBandJ
Votes: 0
Answers: 1
How can I convert CString to WCHAR* and std::string to WCHAR* in C++, not wchar_t*
I want to convert CString to WCHAR* or std::string to WCHAR* in Visual Studio C++ MFC Application. I found in stackoverflow that it only has the solution for convert to wchar_t*.
Please help me. Thank...
Noob
Votes: 0
Answers: 2
Using a mutex to limit instance of application is not respected if one instance if started from Visual Studio
In InitInstance of my dialog application I use this code to detect other running versions:
strOwner.LoadString(IDS_APP_MUTEX);
m_hMutex = ::CreateMutex(nullptr, FALSE, strOwner);
HWND hOtherInstance...
Andrew Truckle
Votes: 0
Answers: 0