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

Search:

Type: Posts; User: wolle

Page 1 of 18 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    91

    Re: Visual Studio C++ projects with UI

    Strange. The whole idea with C++/CLI was that legacy C++ code should work with .NET. Did you select "mixed mode" in the project settings? It should allow you to mix native and managed code in the...
  2. Replies
    2
    Views
    78

    Re: Data Structures book

    I like Advanced Data Structures by Peter Brass. I see it's coming soon in a (relatively) cheap paperback version but the book is also available on the internet for free,
    ...
  3. Replies
    13
    Views
    759

    Re: How to learn c++/cli?

    C++ also has spiked, or at least recovered somewhat from the falling trend it shares with most major languages. I like to think it's the modernization effort in recent years that is finally paying...
  4. Re: What is the difference between procedural and object-oriented programs? Write sim

    I'd like to clarify my post #3.

    The key difference is the class concept available in OO languages. It allows programmers and library providers to define new types. To see how this works, let's...
  5. Thread: struct to vector

    by wolle
    Replies
    14
    Views
    294

    Re: struct to vector

    It's item 41 in Effective Modern C++ right?

    The string passing case is an example that ends with a general advice and that's to consider pass by value under certain circumstances. Then Meyers...
  6. Thread: struct to vector

    by wolle
    Replies
    14
    Views
    294

    Re: struct to vector

    Move semantics was introduced to make copying cheaper and this is important because C++ traditionally prefers it over so called reference semantics (that many other languages prefer such as say...
  7. Thread: struct to vector

    by wolle
    Replies
    14
    Views
    294

    Re: struct to vector

    Not that it matters much but the OP could still use the temp variable as two temporary ints in a call to emplace_back(). It would look like this,



    pp.emplace_back(temp.x, temp.y).


    This...
  8. Thread: struct to vector

    by wolle
    Replies
    14
    Views
    294

    Re: struct to vector

    It does and I'd say the copy constructor gets called twice. The code is equivalent to doing,


    vector<point> pp = {temp};


    The curly brackets {} mean that first an initializer list containing...
  9. Replies
    13
    Views
    759

    Re: How to learn c++/cli?

    In that case C++ is the better choice. At least according to the TIOBE index (April 2019),

    https://www.tiobe.com/tiobe-index/

    As you can see, C++ is far hotter than C#.

    C# isn't even hottest...
  10. Re: What is the difference between procedural and object-oriented programs? Write sim

    Procedural languages have a fixed number of data types such as for example int, float, char and string, and there is a fixed number of operations on each data type such as for example addition and...
  11. Replies
    13
    Views
    759

    Re: How to learn c++/cli?

    Then I agree. I would also prefer C++/WinRT.

    If there's a general consensus at the company to stick with Microsoft technology, then everybody should be able to accept that it's sensible to also...
  12. Replies
    22
    Views
    1,056

    Re: help needed with the c++ program

    If you figure you can come up with a working solution in C then I suggest you do that. Then you can come back here and show what you did and ask how people would do it in C++. Could be an interesting...
  13. Replies
    13
    Views
    759

    Re: How to learn c++/cli?

    There's a 4'th option and that's Qt.

    Qt is not just a GUI toolkit, it's a whole application framework, not as extensive as .NET and JVM but still. And it's native C++.
  14. Replies
    12
    Views
    482

    Re: Help to clear confusion

    The method I mentioned actually has a name. It's called Stepwise Refinement and was invented/popularized by a guy called N. Wirth already in the early 1970's. It's essentially the mother of all...
  15. Replies
    12
    Views
    482

    Re: Help to clear confusion

    One common newbie mistake is to enter too much code in one chunk.

    It's much better to start with a minimal but working program. Essentially just "Hello world". Then add code in small working...
  16. Re: Alternative Java Virtual Machines and Floating Point

    There are libraries available like this from Intel,

    https://software.intel.com/en-us/articles/intel-decimal-floating-point-math-library

    and Java has a low level interface JNI,
    ...
  17. Re: Who could alter the Java SE Runtime in one particular area?

    1. Base your calculations on numerically well-conditioned algorithms.

    2. Round the end result.
  18. Replies
    4
    Views
    509

    Re: Getters and setters

    Even though it's important to know how to use getters/setters it's also important to know when to use them. And the answer is simple, as seldom as possible, at least if you're aiming for object...
  19. Re: Building Boost.undefined reference to `UnregisterWait'

    Note that a majority of Boost libraries don't need to be built. They consist of include files you simply include in your application.

    So I suggest you check out the Boost libraries you are...
  20. Re: error: invalid types ‘unsigned int[unsigned int]’ for array subscript

    This seems bogus to me,



    unsigned Mon;
    os << Mon[month(date)-1];



    You are declaring Mon to be an ordinary unsigned int but then you use it as if it were an array.
  21. Replies
    20
    Views
    2,598

    Re: Using web services from MFC

    Sarah Alfred is a company. Googling the address I found this,
  22. Thread: important

    by wolle
    Replies
    3
    Views
    686

    Re: question

    How did you establish you have a memory leak?

    Anyway, the Base class should have a virtual destructor otherwise it's undefined what happens.
    ...
  23. Replies
    27
    Views
    2,312

    Re: What debuggers do you use?

    Of course, when you do have a bug having a good debugger is paramount, but I still think focus too often is on finding bugs rather than on preventing them.

    Vocational training isn't the main...
  24. Re: Does anyone know where I can find some good software developers?

    In the past maybe but not today. Today university students often are top programmers at all sorts of open source projects for example, even holding lead positions coordinating huge projects.

    If...
  25. Replies
    27
    Views
    2,312

    Re: What debuggers do you use?

    I don't deny the need for good debugging tools. It's just it's so much better if there are no bugs in the first place.

    Therefore I think the best debugging tool is writing bug-free software. The...
Results 1 to 25 of 442
Page 1 of 18 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)