CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: John E

Page 1 of 80 1 2 3 4

Search: Search took 1.24 seconds.

  1. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    You just beat me to it Victor! The good news is that /Zc:__cplusplus doesn't seem to be connected to the problem. basetsd.h defines SSIZE_T like this:-


    typedef LONG_PTR SSIZE_T, *PSSIZE_T;

    So...
  2. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    A quick question... if ssize_t was now a C++ type, should it show in the same colour as types like int / void etc? In my case int and void both show in a bright blue colour whereas ssize_t is a much...
  3. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    Thanks 2kaud. In my case, __cplusplus is showing up as 210402 so I'm a bit baffled at the moment.
  4. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    How strange... it does seem to be there so I'll need to figure out why it's not getting found any more :cry:
  5. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    The only problem I found in a more complex project is that one of its libs uses an internal variable called ssize_t which it defines like this:-


    #ifdef _MSC_VER
    typedef SSIZE_T ssize_t;
    #endif...
  6. Replies
    1
    Views
    1,237

    Something analagous to exp2f()

    I'm building a program with VS2019 but the main devs like it to be buildable with a wide range of compilers so I periodically check the build with VS2008.

    Recently, someone's added a call to...
  7. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    Looks promising Richard - thanks! I've only tried a simple project to experiment with but it did seem to work... I'll try something a bit more complex tomorrow :thumb:
  8. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    So somehow... I'd need to be able to add command line arguments in a .props file - in the same way that I can add Include directories / Library directories etc. I don't know if that's possible but...
  9. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    Thanks Victor - is MSBuild the same compiler that Visual Studio uses internally? I always thought it was a separate command-line utility. I remember that the VS linker is called clink.exe and the...
  10. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    An idea just occurred to me... what about the .props file? Most of my projects share a common properties file so could something get added there that would have the same effect as /Zc:__cplusplus :)
  11. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    BTW - I achieved this by adding /Zc:__cplusplus in Configuration Properties->C++->Command Line->Additional Options. And AFAICT that seems to be the only way to do it (which is needed for every single...
  12. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    Thanks 2kaud - that does give me 201703 for __cplusplus but I see this error now when #including a particular header file from one of the (non-MSVC) support libs:-

    ...
  13. Replies
    22
    Views
    2,953

    Re: __cplusplus number

    Thanks Victor - so it looks like VS2019 is still only implementing the basic C++98 :(
  14. Replies
    22
    Views
    2,953

    __cplusplus number

    I'm involved in a project written for gcc (although I build with VS2019). Recently, someone added a section like this:-


    # if (defined(__cplusplus) && __cplusplus >= 201709L)
    // Some...
  15. Replies
    18
    Views
    7,746

    Re: A 'customised' std::list ??

    Did the VS team ever produce an explanation for this - or a fix?
  16. Replies
    2
    Views
    2,352

    Windows crash logs

    Can't we start a campaign somehow for Windows to show human readable crash logs? Linux and Mac have been doing this for decades and it's high time Windows joined the club... :mad:

    Ever since its...
  17. Replies
    4
    Views
    3,719

    Re: Creating a Virtual Desktop in Windows ?

    Wow... Window Station objects - I'd never even heard of them! Thanks for tracking this down, 2kaud. And thanks Steve for that VirtualBox stuff.
  18. Replies
    4
    Views
    3,719

    Re: Creating a Virtual Desktop in Windows ?

    Over the Easter period I spent a day or two reading up about virtual desktops (in Windows). I was hoping to find some simple way to implement them but everything I've read makes it sound fearsomely...
  19. Replies
    4
    Views
    3,719

    Creating a Virtual Desktop in Windows ?

    Does anyone know if it's possible to implement virtual desktops in Windows (programmatically?) Here's the scenario...

    I work on an audio product which uses a common plugin format called VST. And...
  20. Replies
    4
    Views
    1,678

    Re: Catching OS exceptions

    Many thanks 2kaud - you're probably right about SEH and __try / __except etc.

    I tried those suggestions but they don't work here in the case of Access Violations. Instead, the VC debugger gives...
  21. Replies
    4
    Views
    1,678

    Catching OS exceptions

    Is there a way to catch exceptions that get generated by the OS? For example...


    try {
    fread(NULL, 2, 3, NULL); // This produces an Access Violation error
    } catch (...) {
    int x = 3; // But...
  22. Replies
    18
    Views
    7,746

    Re: A 'customised' std::list ??

    Over on the Microsoft forum one of the contributers suggested adding an extra line which - by some strange magic - seems to fix the compile:-


    #include <list>

    using LT = std::list<int>;
    ...
  23. Replies
    18
    Views
    7,746

    Re: A 'customised' std::list ??

    Thanks 2kaud, I do appreciate all your efforts with this! Unfortunately CodeGuru won't let me give you an extra rating but you definitely deserve one !!
  24. Replies
    18
    Views
    7,746

    Re: A 'customised' std::list ??

    Many thanks 2kaud - I just found a few minutes to try this....

    I've tried ISO C++14 Standard (/std:c++14) and also ISO C++17 Standard (/std:c++17) and Preview - Features from the Latest C++...
  25. Replies
    18
    Views
    7,746

    Re: A 'customised' std::list ??

    Okay, got it. It's currently set to Default (ISO C++14 Standard)



    Maybe - but the functions with overloads are always the ones which give the compiler error :confused:
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)