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 0.05 seconds; generated 32 minute(s) ago.

  1. Replies
    2,372
    Views
    1,106,299

    Re: The Boring Thread

    Are there any US developers here living in Atlanta?

    Here in the UK, our BBC still offers a teletext service with world news & weather etc. And I've often noticed that the weather for Atlanta seems...
  2. Replies
    2
    Views
    243

    Re: VS2019 and C++17 ?

    That's great 2kaud, many thanks...
  3. Replies
    2
    Views
    243

    VS2019 and C++17 ?

    I'm building a 3rd party program here using VS2019. One of the header files contains this code:-


    namespace MIDI::Name { // <--- NOTE THIS LINE !!!
    class MasterDeviceNames;
    class...
  4. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    Found it... thanks!
  5. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    I've learned a lot today Victor - many thanks!! One more question (from someone who hasn't used Paint since the 1990's...)

    Does it have any Undo feature? Esc works (sometimes) but I can't find...
  6. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    Ah yes, that's Snip & Sketch. It does work here if I'm very careful...

    So how do you get those very neat red highlights? I can use the pen tool here but it's not exactly neat... :(
  7. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    VictorN - what tool did you use to make your screenshot? I've tried Snipping Tool and also Snip & Sketch - but if I try to use them while there's a popup on-screen, the popup always disappears :mad:
  8. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    Wow - well spotted! For the most part, my messages (mostly with red lines) are saying incomplete type is not allowed

    And yet these don't seem to be programming errors AFAICT. They're statements...
  9. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    Me neither. What's weird is that the blocks don't seem to correspond to specific lines. So if I scroll the Editor window, the blocks remain in their initial positions. And even if I close the project...
  10. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    What I seem to get now (with some files) is grey blocks rather than the red ones. I assumed maybe they'd indicate warnings, rather than errors... But what's weird is that if I compile just that...
  11. Replies
    19
    Views
    1,761

    Re: Strange red blocks in Editor window

    Thanks Victor - I followed a few links and found some advice about finding the project's .vs folder and deleting the .suo file. Then there were other suggestions about deleting everything there...
  12. Replies
    19
    Views
    1,761

    Strange red blocks in Editor window

    Does anyone know what these strange red blocks mean on my scroll bar (in VS2019) ?

    They aren't related to the source lines - i.e. if I scroll the text window, the blocks remain in the same...
  13. Replies
    2
    Views
    478

    Re: # character (in string generation ?)

    Thanks Victor. I tried #bits and it worked. So I then returned to # bits and that now works too!! There must've been some weird character lurking there that wasn't visible.
  14. Replies
    2
    Views
    478

    # character (in string generation ?)

    I found this code in a header file here... it starts with a declaration of various 'DebugBit' types, followed by the declaration for a function which prints out some debug text:-


    namespace DEBUG...
  15. Replies
    3
    Views
    532

    Re: 'for' loops on C++11

    Thanks 2kaud - that article seems to have quite a few warnings about things not behaving the way you might expect... but the bit that made me smile was this statement:- "Used as a more readable...
  16. Replies
    3
    Views
    532

    'for' loops on C++11

    Yesterday I came across this 'for' loop in some C++11 code:-


    for (auto & trig : all_triggers) {
    trig->process_state_requests (bufs, nframes - 1);
    }

    Is it just me - or was the older...
  17. Replies
    1
    Views
    511

    Re: Testing for -nan (in the debugger)

    It's okay - I solved it by calling isnan() and placing a breakpoint if the return value was non-zero.

    BTW - does anyone know what the statement double *R__ mag means..? I've never come across...
  18. Replies
    1
    Views
    511

    Testing for -nan (in the debugger)

    We all know that when setting breakpoints we can specify a condition - for example it can be specified to stop only when a value is zero. Here's some code that's causing a problem for me:-

    ...
  19. Replies
    6
    Views
    2,570

    Re: Sudden problem with std::vector

    Ah yes, you're right - in fact even something as simple as this doesn't work...


    constexpr uint32_t some_func() { return sqrt(1024); }
  20. Replies
    6
    Views
    2,570

    Re: Sudden problem with std::vector

    Thanks for the tip wolle. I'd never even heard of constexpr but you're right - it works fine!
  21. Replies
    6
    Views
    2,570

    Re: Sudden problem with std::vector

    Oops - I was using square brackets instead of round :blush:

    This works...


    std::vector<int> buf_3(x);
  22. Replies
    6
    Views
    2,570

    Sudden problem with std::vector

    uint32_t some_func() { return 32; }

    int buf_1[32]; // <--- this always compiled with MSVC
    int buf_2[some_func()]; // <--- whereas this fails because the buffer size needs to be known at...
  23. Replies
    8
    Views
    1,044

    Re: #warning and MSVC

    There are too many of them but I just realised that #pragma message is apparently supported by gcc - so hopefully I'll persuade the gcc programmers to use it instead of #warning :thumb:
  24. Replies
    8
    Views
    1,044

    Re: #warning and MSVC

    Wow, that looks even better - but I'd still need a way to convert #warning "whatever" into #pragma message("whatever")
  25. Replies
    8
    Views
    1,044

    Re: #warning and MSVC

    Thanks 2kaud but if I'm reading that article correctly, #pragma comment is for inserting a comment into the compiled file.

    Over on StackOverflow someone suggested using #pragma NOTE. It doesn't...
Results 1 to 25 of 1998
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured