Strange '_JustMyCode_Default' error with VS2019
I'm building a suite of libraries based around Gtk and Gtkmm. I'd built them all previously a long time ago (as 32-bit, using VS2005) but now I'm trying to build 64-bit versions using VS2019. I've...
View ArticleWhere is the "active" configuration stored?
When I cracked open the vcxproj file, I see a lot of configurations like win32 and win64. But where is the "active" configuration stored? For example, when I compiled my program using win64 and...
View Articlecoming up with data structure for the algorithm
Hello, I have list of unique keys for the mobile cells, and i can get the info about the cells, from those keys. Also these cells are grouped into sites, based on the parent id info available on the...
View Article_local_stdio_printf_options
I'm rebuilding some libraries with VS2019 (which I'd previously built with VS2008). One of the libs gives this linker error:- Quote: error LNK2001: unresolved external symbol...
View ArticleOverride the baseclass function
hello, In the base class, i have the following function (this is all in legacy code) virtual const std::safemap<int, LPUMTSCELL>& GetUMTSCellList() = 0; I am trying to create a new derived...
View Articlesimple log functionality
Hello, I am supposed to add simple log functonlity. I googled and used the following class and tested in my local setup Code: class Logger { public: // Logger cannot exist without file....
View ArticleProblem with function rename()
Hello to all. I'm new in this forum. I'm writing a simple function (using MFC) that open a folder, write in a file .txt and rename the folder. This is the code snippet: CString s, s1, s2;...
View Articlefopen example
Hello, I am trying to use the simple fopen, and is not working for my project. So tried to write a example program and run and the fiile is not getting created. Code: FILE* fp =...
View ArticleVisual annoyances in VS2019
1) If some source file text is 'greyed out' (e.g. within a #if 0 statement) it still gets printed in colour - but in slightly dimmed colours. On my monitor it's quite hard to tell the difference! Is it...
View Articlesort predicate
Hello, Code: std::unordered_map<int, std::set<TACNeighbourData> > m_SiteKeyToNeighbourKeys; struct TACNeighbourData { int m_CellKey; double m_Distance;...
View ArticleAFX Include path
When I try to build any resource file with VS2019 it always fails because afxres.h can't be found (although there's an afxres.h in one of my VS install paths). I need to check my default folder paths...
View ArticleIs there any such thing as '_fmode'
I'm trying to build some code (with VC2019) that was originally written back in 2004 - it contains a small section like this:- Code: if ((!(flags & _O_TEXT)) && (_fmode == _O_BINARY))...
View ArticleMFC question
Hello, I wanted to display the output of some algo , on the dialog. I tried to use the legacy code to display this, but the window is very small and not resizable: It looks like the WS_MAXIMIZEBOX...
View ArticleCan I ask a question about FFT here?
Hello, I am not sure I am allowed to ask FFT question here. I am using Visual Studio to program it. First I've got a FFT function handy. But I will need to collect a certain amount of samples before...
View ArticleListCtrl in MFC
Hello All, As per your suggestion, i have been trying to learn MFC and try to replicate the problem i am solving in the legacy code. I have comeup with the following code:, But the issue here is the...
View ArticleBaffled by a compiler ierror in VS2019
I'm trying to move a large project (previously built with VS2005) and update it all to VS2019. One of the header files contains these enums:- Code: typedef enum { WT_NONE, /* warcinfo...
View Articlestring replace related
Hello, Im trying to solve the following: Basically for the given input string, i need to expand as follows: 4[x] = xxxx 2[y2[z]] = yzzyzz 2[pq] = pqpq thanks pdk
View Article__asm equivalent for 64-bit programming
I'm trying to update a program (previously built only as 32-bit) so that it'll build as 64-bit in VS2019. One of the functions uses this small section of assembly language - which is somehow connected...
View Articlechallenged problem C++ implementation - homework help (preparing for an...
Hi guys . I'm struggling to implement in C/C++ a function that gets as two inputs , one input is an integer array, second input is the given sum. the function returns the pairs of two element that its...
View ArticleLRU cache
Hi All, I was trying to practice some LRU cache example from the online practice. Also checking the discussions, where somebody already solved using the hash map and the doubly linked list. Another was...
View Article