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

  1. Replies
    4
    Views
    82

    Re: Compatible C++ libraries Questions.

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

    Re: Compatible C++ libraries Questions.

    2) Yes. see std:chrono.

    https://en.cppreference.com/w/cpp/chrono
  3. 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.
  4. 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...
  5. Replies
    13
    Views
    223

    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!
  6. Replies
    13
    Views
    223

    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/
  7. Re: Does a static class var work in a static lib ?

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

    Re: Some code I don't understand

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

    by 2kaud
    Replies
    19
    Views
    265

    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...
  10. Thread: Link color

    by 2kaud
    Replies
    19
    Views
    265

    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...
  11. Replies
    6
    Views
    260

    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
  12. Replies
    2
    Views
    276

    Re: Tryong to understand templates

    Without using boost, do you mean something like this:



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

    using namespace std;
  13. Replies
    8
    Views
    786

    Re: Stopping unnecessary style corrections

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

    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!
  15. Replies
    8
    Views
    786

    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.
  16. Replies
    7
    Views
    601

    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...
  17. Replies
    2
    Views
    332

    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) :...
  18. Replies
    1
    Views
    226

    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)
    {
    //....
  19. Replies
    10
    Views
    1,177

    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...
  20. Replies
    8
    Views
    786

    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
  21. Replies
    7
    Views
    601

    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...
  22. Thread: New style

    by 2kaud
    Replies
    4
    Views
    662

    Re: New style

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

    by 2kaud
    Replies
    4
    Views
    662

    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?
  24. Re: Problem with vector?

    This compiles and runs OK with VS2019:



    #include <vector>
    #include <string>
    using namespace std;

    struct ST1 {
    string abc;
  25. Re: Problem with vector?

    Is it now working?

    What are the sizes of the vectors?
    Which compiler version are you using?



    for(int j=1;..)
    vec1.push_back(ST1{..,..,..}); //ok
    }
Results 1 to 25 of 1981
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured