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.48 seconds.

  1. Replies
    4
    Views
    259

    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.
  2. Replies
    4
    Views
    259

    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...
  3. Replies
    4
    Views
    259

    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...
  4. Replies
    4
    Views
    399

    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...
  5. Replies
    4
    Views
    399

    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...
  6. Replies
    16
    Views
    2,158

    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>;
    ...
  7. Replies
    16
    Views
    2,158

    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 !!
  8. Replies
    16
    Views
    2,158

    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++...
  9. Replies
    16
    Views
    2,158

    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:
  10. Replies
    16
    Views
    2,158

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

    Sorry - I'm not quite sure what that means - but I think this might be significant...



    It looks like all the functions which fail are ones that offer an overloaded version - e.g.

    ...
  11. Replies
    16
    Views
    2,158

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

    I don't know if this'll hep or just complicate things but this seems to be the current implementation for std::list::unique() (VS2019)


    void unique()
    { // erase each element matching previous...
  12. Replies
    16
    Views
    2,158

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

    It looks like we're using ver 5.3.6 (about 2 x versions ago). I'll be busy tomorrow but if I can find some time at the weekend I'll try to product that minimal sample.

    My gut feeling is that this...
  13. Replies
    16
    Views
    2,158

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

    Thanks 2kaud - but isn't that true for all template functions? I've never quite got my head around templates but my understanding is that they're not "real" functions and classes - they're more like...
  14. Replies
    16
    Views
    2,158

    A 'customised' std::list ??

    I'm building some code which uses a library called lua. One of its header files contains a template class which (I think) is some kind of customised std::list - i.e. it's a cutdown version which only...
  15. Thread: C++ IDE Query

    by John E
    Replies
    5
    Views
    541

    Re: C++ IDE Query

    Another important consideration is debugging. Visual Studio features an integrated debugger (and a truly excellent one) whereas Code::Blocks needs to defer to an external debugger and the last time I...
  16. Re: Transferring items from an unsorted set to a sorted set

    Woohoo!! Thanks 2kaud - I'd been scratching my head for over a day and didn't notice that !!
  17. Transferring items from an unsorted set to a sorted set

    This code builds fine with gcc and it used to build fine with VC2008 but it causes a compiler error with VS2019. The original code used more complicated object types so the comparisons look quite...
  18. Replies
    2
    Views
    387

    Re: Viewing breakpoints when NOT in Debug mode

    I just figured it out... first, detach the Output window (so that it's floating on some different part of the screen). Then select Debug->Windows->Breakpoints and the breakpoints will now display...
  19. Replies
    2
    Views
    387

    Viewing breakpoints when NOT in Debug mode

    Bback in the good old days of VC8, if I was editing a project (i.e. not in compile mode or debug mode etc) the bottom bit of my edit window used to show breakpoints (see the attached screenshot). I...
  20. Replies
    3
    Views
    444

    Re: std::vector::reserve()

    [Moved to new thread...]
  21. Replies
    3
    Views
    444

    std::vector::reserve()

    This actual object type is more complicated but I still see the problem, even with a simple int -so here goes:-


    std::vector<int> vect;
    int capacity = vect.capacity(); // capacity == 0
    int*...
  22. Replies
    5
    Views
    334

    Re: Libraries with the same function

    No, that's not the problem.... I was thinking more about all the other functions (i.e. the hundreds of functions that'll be common in both DLL's). I wondered if there's some way to guarantee that the...
  23. Replies
    5
    Views
    334

    Re: Libraries with the same function

    Thanks guys - my original description was a bit simplified so let me explain what's actually happening...

    I'm building some 3rd party DLLs which still use module definition files, rather than...
  24. Replies
    14
    Views
    990

    Re: Strange crash with Debug build

    Many thanks Victor.... under Configuration Properties->Advanced I need to select 64-bit (x64) as my preferred build tool architecture (I'm guessing that makes it use the 64-bit architecture directly...
  25. Replies
    14
    Views
    990

    Re: Strange crash with Debug build

    Groan - having accepted that I'll just have to tolerate these problems in my Debug build, I've hit an even bigger problem now with the Release build :confused:

    The various DLL's all seem to build...
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)