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

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.21 seconds.

  1. Re: Is there a function intended to split strings by a delimiter in VC++?

    That code doesn't compile with any of the compilers used with godbolt (gcc/clang et al)... However I'm not convinced that the compilers are currently totally conforming for std::ranges.

    From MSDN:
  2. Re: Is there a function intended to split strings by a delimiter in VC++?

    This compiles OK:



    #include <string_view>
    #include <algorithm>
    #include <iterator>
    #include <iostream>
    #include <sstream>
    #include <iomanip>
  3. Replies
    4
    Views
    168

    Re: Compatible C++ libraries Questions.

    [Also asked here http://www.cplusplus.com/forum/general/279988/ ]
  4. Replies
    4
    Views
    168

    Re: Compatible C++ libraries Questions.

    2) Yes. see std:chrono.

    https://en.cppreference.com/w/cpp/chrono
  5. Re: Is there a function intended to split strings by a delimiter in VC++?

    Note that strtok changes the data and cannot be nested. It needs to be used with std::string::data() (C++17 and later only) as it is a c function.
  6. Re: Does a static class var work in a static lib ?

    It's been too long since I last used dynamic .dlls. We don't use them any more as we consider there's too many problems with them... :)

    Why not create a simple test program and find out? That's...
  7. Replies
    13
    Views
    292

    Re: Where can I get User32.lib file?

    Yes - but you get the latest c/c++ compilers etc etc. There's been huge changes to the languages since 1997! I used to use Borland as well way back then!
  8. Replies
    13
    Views
    292

    Re: Where can I get User32.lib file?

    If you're using Windows, then there is the free Visual Studio 2019 (or 2022 preview) community iDE/compiler.

    https://visualstudio.microsoft.com/free-developer-offers/
  9. Re: Does a static class var work in a static lib ?

    A static lib is linked into the exec code at compile time.
  10. Replies
    3
    Views
    117

    Re: Some code I don't understand

    I agree with Richard above.
  11. Thread: Link color

    by 2kaud
    Replies
    19
    Views
    403

    Re: Link color

    As suggested by Steve, I use:

    https://www.squarefree.com/bookmarkl...tml#zap_colors

    DRAG the Zap Colors to your browser tool bar.... When clicked it will remove almost all colours for the...
  12. Thread: Link color

    by 2kaud
    Replies
    19
    Views
    403

    Re: Link color

    If you zap the colours (like I do), then the link is displayed as expected.

    PS. Victor, your signature image isn't being displayed...
  13. Replies
    6
    Views
    316

    Re: Problem with vb6 ide installation

    You might try asking this question on the VB forums site. They have a very active VB6 forum.

    https://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier
  14. Replies
    2
    Views
    304

    Re: Tryong to understand templates

    Without using boost, do you mean something like this:



    #include <list>
    #include <string>
    #include <iostream>

    using namespace std;
  15. Replies
    8
    Views
    838

    Re: Stopping unnecessary style corrections

    The code style formatting gives you enough options to hang yourself! :)
  16. Replies
    8
    Views
    838

    Re: Stopping unnecessary style corrections

    You need the option 'insert space after comma' set. If that was disabled, that's why you had no space!
  17. Replies
    8
    Views
    838

    Re: Stopping unnecessary style corrections

    Tools/Options/Text Editor/c c++/Code Style/Formatting/Spacing/spacing for delimiters

    Same config page as before - just further down. Has options for space before/after coma etc.
  18. Replies
    7
    Views
    634

    Re: Cancelling _declspec(dllexport)

    Have you tried it? I haven't done it this way before - but I gave up with .dlls some years ago!

    PS. This compiles but with a warning re non-standard extension re nameless struct/union



    class...
  19. Replies
    2
    Views
    360

    Re: Basic class advice needed

    1. Yes. {} is the default initializer. The default value is specified for a type. For a int/double et al it is 0.

    2. You constructor should be :



    vmSize(int nWidth, int nHeight) :...
  20. Replies
    1
    Views
    251

    Re: Using template without an argument type

    This is a function specialization.

    Somewhere you should have a templated function something like this:



    template <typename T>
    inline std::string to_string (T val)
    {
    //....
  21. Replies
    10
    Views
    1,221

    Re: Sizing a (stack based) array at run time

    The C++ language standard states that the size of an array must be known at compile time. This restriction is unlikely to change in the short/medium term. Some compilers (with/without some specified...
  22. Replies
    8
    Views
    838

    Re: Stopping unnecessary style corrections

    Try looking at these VS configuration options:

    Tools/Options/Text Editor/c c++/Code Style/Formatting/Spacing/spacing for function parameters
  23. Replies
    7
    Views
    634

    Re: Cancelling _declspec(dllexport)

    From https://docs.microsoft.com/en-us/cpp/cpp/using-dllimport-and-dllexport-in-cpp-classes?view=msvc-160

    it says that "all its member functions and static data members are exported". So from this...
  24. Thread: New style

    by 2kaud
    Replies
    4
    Views
    686

    Re: New style

    There's just Blue Codeguru for non-mobile as always used.
  25. Thread: New style

    by 2kaud
    Replies
    4
    Views
    686

    New style

    I see that the forum now has a new look with bright blue headers, buttons etc.

    IMO I prefer the previous more subdued look. The new one tends to grate on my eyesight.

    Can we revert please?
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured