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

Search:

Type: Posts; User: PredicateNormative

Page 1 of 45 1 2 3 4

Search: Search took 0.05 seconds; generated 42 minute(s) ago.

  1. Re: Will you tell me how badly I wrote small battle-game?

    I'm not entirely sure what you mean when you say "which would be pass-by-referencing name() in my code". However, for clarification,


    const std::string& name() const { return m_name; }

    is...
  2. Re: Will you tell me how badly I wrote small battle-game?

    Here are some suggestions:

    1) Always initialise variables with a value.
    2) I'm interested why you commented out correctly calling srand once at the beginning in favour of incorrectly calling...
  3. Re: boost::condition_variable problem

    Sorry about my very delayed response - things got pretty manic at work. Due to time constraints I have had to apply a patch (pretty much re-implemented the offending bit of code in a different,...
  4. boost::condition_variable problem

    I have written a fairly large application with a small team of software engineers (~237kloc) over the last four years. In our development environment under Windows, the bug that I'm about to...
  5. Re: Invalid access to memory location using GlobalFree

    In addition to what Paul has said, with respect to management try to follow the following guidelines:

    Use RAII classes to manage resources (not only memory but all resources).
    Using memory...
  6. Re: how to calculate x & y in a sine wave?

    I've been away from codeguru for a few days, and so missed your post... sorry about that.

    Unfortunately, I don't really have much time at the moment, but if I get the chance in the near future,...
  7. Re: how to calculate x & y in a sine wave?

    Does that mean that your data can be modified? e.g:



    double objectAngle = -90.0f;
    double objectSpeed = 30.0f; // meters per second
    double objectDistance = 0.0f;
    double objectTime = 0.0f;...
  8. Re: how to calculate x & y in a sine wave?

    Alex, what you are asking does not match the data you are supplying.

    For example, the following data


    double objectAngle = -90.0f;
    double objectSpeed = 3.0f; // meters per second
    double...
  9. Re: for_each and member function

    I think this issue you are having is that the type held by the vector v needs to match the type specified in the result of bind1st. Therefore if you change



    void bar( const std::string& s )...
  10. Re: Which offers the best performance?

    VladimirF makes a good point about templates, although, I guess it depends on what is meant by "clean up".

    #define's affect every file in the compilation and do not obey scope. Global variables...
  11. Re: Exception specifications and Visual Studio 2008

    That is a really helpful bit of research, thank you very much. I wonder why Microsoft don't state that they are non-compliant in a compiler warning or something.
  12. Re: Exception specifications and Visual Studio 2008

    Sorry about my delay in replying, I've been having trouble logging in. It seems like someone has been doing some site "improvements".:confused:

    Anyway, the addition of a compile time noexcept...
  13. Re: Exception specifications and Visual Studio 2008

    That's a great page. A few years ago when I was having issues with exception specifications not doing what I'd expected, I came across that same article, and by the time I'd finished reading it, I...
  14. Exception specifications and Visual Studio 2008

    I don't tend to use exception specifications, but not for the reason that will become apparent as you read this post...

    I'm writing I presentation on exception safety, and wanted to write a short...
  15. Replies
    6
    Views
    697

    Re: Static lib question

    That would explain it.


    Thanks, I'll take a look.
  16. Replies
    6
    Views
    697

    Re: Static lib question

    For some reason that's not working. The library is not actually linking in the sections from boost thread that it requires when it links, therefore the final application is complaining that it needs...
  17. Replies
    6
    Views
    697

    Static lib question

    Is there a way to build a static lib so that it links in other static libs?

    In other words, if I build a lib A as a static lib, and it has a dependency on another static lib B. Is there a way for...
  18. Re: Unexpected istream_iterator problem.

    Hi John, I must admit, I don't think I understand what you are saying. The code you posted (without adding an eof check) behaves how I would expect on VS2008... I end up with a vector that has...
  19. Replies
    7
    Views
    799

    Re: STL copy with a delimiter???

    I would probably use boost split. But if you don't want to use boost, with not much effort, you could write your own version of the split functionality found in boost. Something like the following...
  20. Re: Array of objects - member variable in free store error

    Yeah, I kind of forgot about strcpy.:)
  21. Re: Array of objects - member variable in free store error

    Please use
    [/i]] tags around code when posting, else you lose the formatting and it becomes difficult to read.

    There are a number of things wrong with your program. So what I will do is re-print...
  22. Re: policy based design of "modern c++ design"

    Thanks for the link, I'll take a look.
  23. Re: policy based design of "modern c++ design"

    I have heard that such things exist, but I've never tried one... given the amount of template code I write I'm beginning to think that it would be a good thing. Thanks for the advice.
  24. Re: policy based design of "modern c++ design"

    The thing that I would like to see is for the compiler output not to simply be displayed as plain text. For example it would be nice if:



    In function ‘void...
  25. Re: policy based design of "modern c++ design"

    Here is a reason, why a lot of companies will not encourage their employees to write non-trivial templates. If you ever get into policy based design with a bit of MTP mixed in, then expect to get...
Results 1 to 25 of 1121
Page 1 of 45 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center