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

Search:

Type: Posts; User: razzle

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    695

    Re: vb.net ... why bother?

    My advice to achieve the same would be to write the whole application in either Java or in native C++ with a Qt GUI.

    Important in both cases is that the application is based on the object oriented...
  2. Replies
    11
    Views
    695

    Re: vb.net ... why bother?

    Is it a fact and no BS? Fine then prove your claim.

    In my experience the major languages running on virtual machines execute code as fast as any natively compiled language including C++. Any local...
  3. Replies
    18
    Views
    612

    Re: passing smart pointer

    You are confusing matters. There is always a context in the semantics of parameter passing, namely the actual passing. In all your examples value semantics is used. All pointers (parameters) are...
  4. Replies
    18
    Views
    612

    Re: passing smart pointer

    We're dealing with an established terminology used for parameter passing to functions. The basic distinction is between pass by value and pass by reference. Only those. There's is no by pointer, no...
  5. Replies
    18
    Views
    612

    Re: passing smart pointer

    No, there are just two parameter passing mechanisms, by value and by reference. (See for example The C++ Programming Language by Stroustrup).

    To pass a pointer is not a parameter passing...
  6. Replies
    18
    Views
    612

    Re: passing smart pointer

    And there are even more issues with your advice.

    2) Avoid using dynamic memory allocation except when it is really necessary.

    Use dynamic memory whenever appropriate (design, object lifetime,...
  7. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    You may be inspired by human intelligence but your approach to problem solving is based on the principle of emergence with evolution as the direction force. That's completely general as you say. It's...
  8. Replies
    3
    Views
    205

    Re: Program to sort lists?

    Say you have a million lines and each line contains a word then the total size will be less than 10 Mbyte (if each word is less than 10 chars on average). That fits easily in memory of most today's...
  9. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    You did mention performance in your original post and I consider it a more important problem than the rather trivial porting issue. And obviously you referred to Mopeks in order to draw attention to...
  10. Re: How do you make this bit of code compatible with both debug and release builds?

    It's probably because LPSTR was expected and that's a pointer to char.

    It means you should declare ac_Result as

    char ac_Result[255];

    or more generically

    TCHAR ac_Result[255];
  11. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    Since it's now known that the OP's question is not about any program but specifically about MOPEK and because the OP is referring to this project in every one of his post, I feel it's okay to comment...
  12. Replies
    52
    Views
    4,145

    Re: IF-free conception.

    Why will they be laughing?

    Do you mean,

    1. they have the same discussion then because the issue still hasn't been resolved, or
    2. the issue has been resolved and one side has won?

    In the...
  13. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    Why not allign your ideas with other ongoing research in the same area. Check out this for example,

    http://www.cgchannel.com/2014/01/cool-tech-video-muscle-based-locomotion-for-bipeds/

    Before...
  14. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    That's not true. Also NP-hard problems have algorithms that solve them, just not in polynominal time (what hasn't been found yet is a formal proof of this).

    My point is that if the OP is trying to...
  15. Replies
    18
    Views
    612

    Re: passing smart pointer

    It's not a good idea.

    Never use both pointers and smart pointers on an object type. It completely defeats the purpose of using a smart pointer in the first place. In fact it makes object deletion...
  16. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    --- double post by mistake ---
  17. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    Why don't you write it in MOPEKS instead? :)

    Just kidding but if it's MOPEKS we're dealing with here than it's most likely a combinatorial problem (I've suspected in my previous posts). In that...
  18. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    When you start optimizing I strongly suggest you analyze the core algorithm to establish what you're actually dealing with. The use of recursion indicates it's a combinatorial problem. When naively...
  19. Replies
    12
    Views
    408

    Re: Best way to allocate large memory

    "If you get yourself into that case"

    Well you see, it's not that simple.

    In my view you can use the program termination process to your favour.

    You think one shouldn't.

    That's what we...
  20. Replies
    12
    Views
    408

    Re: Best way to allocate large memory

    Program termination is a complex situation.

    I've removed my advice.

    I think your idea that RAII will handle it perfectly well is naive.

    If you want to discuss this further start a new thread.
  21. Replies
    52
    Views
    4,145

    Re: IF-free conception.

    Certainly there is no such thing as an "acceptance of a 10% slowdown" philosophy in C++.

    The C++ philosophy is that you only pay for what you get.

    The figure 10% comes from the anti-OO camp's...
  22. Replies
    12
    Views
    408

    Re: Best way to allocate large memory

    Yes that's your view and I've acknowledged that.

    I've also explained why I don't agree but why I still did removed my advice.

    So it's back to general information: The system will reclaim any...
  23. Replies
    32
    Views
    1,087

    Re: Moving from VC++ 6.0 to VC++.NET

    Or rather the central algorithm is crucial. Why not take this opportunity to have a hard look at it?

    Maybe it can be replaced altogether with a more efficient alternative. Or maybe it can be...
  24. Replies
    52
    Views
    4,145

    Re: IF-free conception.

    I've stopped arguing with you since I don't understand your point.

    In my last post I just put in my two cents on this proposal you referred to,

    http://www.navysbir.com/n13_1/N131-061.htm

    My...
  25. Replies
    52
    Views
    4,145

    Re: IF-free conception.

    I'm refering to the Navy of this proposal the OP linked to,

    http://www.navysbir.com/n13_1/N131-061.htm
Results 1 to 25 of 257
Page 1 of 11 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