Skip to content

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • Hackerrank:Down to Zero problem

    css database help question
    2
    0 Votes
    2 Posts
    3 Views
    D
    See here. "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • 0 Votes
    9 Posts
    0 Views
    T
    ok... thanks for the advice
  • What IDE do you use for C/C++ development?

    c++ visual-studio com question
    19
    0 Votes
    19 Posts
    1 Views
    enhzflepE
    Code::Blocks Wont touch VS any more unless I need to debug something - that pig of a thing is far, far too slow nowadays.
  • VS2017: Cannot debug Dll's

    debugging announcement csharp c++ visual-studio
    4
    0 Votes
    4 Posts
    0 Views
    L
    Hi, The 'Debug' build is just a text label... in other words it sounds like your DLL is being compiled with the symbols stripped out. There is nothing stopping someone from configuring 'Debug' exactly as a 'Release' build. Try using DUMPBIN /SYMBOLS[^] on your DLL to check if the symbol tables exists. Don't forget that you can PIPE the output into a text file: DUMPBIN /SYMBOLS YourDLL.DLL > symbols.txt Best Wishes, -David Delaune
  • Notifiation Messages for CSpinButtonCtrl in MFC

    c++ career
    13
    0 Votes
    13 Posts
    0 Views
    S
    Hey Thanks.. Finally its working. The very first thing is i am new to MFC and second is i am creating all dynamic windows and controls based on user input.
  • Notifiation Messages for CSpinButtonCtrl in MFC

    question c++ help tutorial career
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • QR CODE IN ARABIC

    8
    0 Votes
    8 Posts
    0 Views
    D
    1. Check the encoding of your QR data. Are there extra (non-Arabic) bytes, or anything else? 2. The data that you are receiving from the serial port is 8-bit bytes. It must somehow be converted to Unicode characters, according to the encoding determined in stage (1). And lastly: 3. Move this question over to the Visual Basic forum. People there may be better able to help you with your code. Ad astra - both ways!
  • WinTECH opc client

    help sysadmin tutorial
    3
    0 Votes
    3 Posts
    0 Views
    L
    See WinTECH Software... OPC Server & OPC Client Tools[^] and MaxDNA Distributed Control System - Guodian Nanjing Automation[^].
  • NM_RDBLCLK not working for CTreeCtrl

    c++ question
    14
    0 Votes
    14 Posts
    0 Views
    V
    You could subclass the Tree Control (in your own class derived from CTreeCtrl). In the derived class implement the ON_NOTIFY_REFLECT_EX macro to handle left/right double click and then pass (or not) this message for the further handling.
  • How to Display ... if text length exceeds CButton size

    c++ json tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MSXML load - not able to read chinese characters in path

    xml help question
    9
    0 Votes
    9 Posts
    0 Views
    G
    Hello Everybody, Sorry for late reply. It was character issue. My application is with Unicode character type. If I send the path as TSTR, then it works fine properly. Thanks again. Regards, Gopinath.
  • How to change font on CButton?

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Compiling MPI with VS2017 Linux

    question c++ visual-studio linux
    8
    0 Votes
    8 Posts
    2 Views
    L
    Yes.[^] If you spend some time setting this up... you will also only need 1 workstation to do the entire project. You can run your Linux binary on Windows Linux Subsystem. Install the Linux Subsystem on Windows 10 | Microsoft Docs[^] Spending 1/2 days setting this up may save you weeks in the long run... you can avoid multiple OS installations... multiple compilers... and do all your work in Visual Studio on Windows. Best Wishes, -HAL 9000
  • How to read MS EXCEL workbook in Linux using C++

    c++ linux tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    V
    Have a loo at [How to convert specific sheet to CSV via command line? - Ask LibreOffice](https://ask.libreoffice.org/en/question/46466/how-to-convert-specific-sheet-to-csv-via-command-line/)
  • Connection String Couldn't Connect

    database c++ visual-studio json help
    10
    0 Votes
    10 Posts
    0 Views
    L
    If you don't believe me then stop being lazy and ask on the microsoft forums, if you have a MSDN subscription go to support and see what it says. The MFC source has been released & open sourced which gives you a clear indication of the commercial value, it comes free with Visual Studio 17 community edition. You are still on version 14 and have been since 20 July 2015 and they managed the small update to deal with the Windows 10 issues which managed to get released with the last Visual Studio 17 update cycle on 6 March 2018. The update simply deals with legacy MFC calls that stopped working. MFC is targetted to the legacy bridge path it will have no native access to the ever expanding Windows 10 API Calling Windows 10 APIs From a Desktop Application - Windows Developer BlogWindows Developer Blog[^] I should mention the old Win16 API still exist in windows 10 under much the same support and there are a lot of legacy programs that still work and there are also a lot that don't. I love the old 16bit API, I cut my teeth on it but I wouldn't recommend someone write a new development targeting it. So we get into some tricky language about what is and what does support actually mean. I loved the above quote in the article Or put a different way, there are no secret APIs being kept away from Windows developers. We could put that another way, we have told you the API and we have no intention of adding it MFC but you can. I will leave you to ponder thru all that and decide if I got it all wrong. I am not microsoft and I don't speak for them so ask them directly. As far as I know your old code will hopefully continue to work on Windows but you will have no access to the new features unless you write them yourself. In vino veritas
  • 0 Votes
    3 Posts
    0 Views
    CPalliniC
    As Victor Nijegorodov noted, your code violates the rule of three[^]: you have to define the assignment operator.
  • problem in operator overloading of >> & << ?

    question graphics help
    2
    0 Votes
    2 Posts
    0 Views
    CPalliniC
    friend istream & operator >> (istream &, vector &); That is just for telling the computer the extraction operator (>>) is friend of the vector class. The reference (&) is part of the extraction operator signature, e.g. istream & operator >> (istream & is, vector & v); Because such a operator takes a reference to istream and a reference to a vector as arguments. returns a reference to a istream. Incidentally this the magic underneath the extraction operator chaining, for instance: cin >> v >> i; -> (cin >> v) >> i; -> cin >> i; -> cin;
  • Can we include two Message Maps in one class?

    question c++
    13
    0 Votes
    13 Posts
    1 Views
    L
    I wonder if the problem is that the CTabView has not been designed to allow what you want. Perhaps you should switch to the underlying CMFCTabCtrl Class[^], and roll your own version.
  • how to get a string as input ?

    question help tutorial
    4
    0 Votes
    4 Posts
    0 Views
    T
    i will try . and thank you
  • How to reuse a single CView class with multiple tabs in MFC

    c++ tutorial question
    9
    0 Votes
    9 Posts
    0 Views
    S
    Yes. Corrently i am working on this idea. But facing some problem as mentioned in below link. Can we include two Message Maps in one class? - C / C++ / MFC Discussion Boards[^]