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

Search:

Type: Posts; User: wolle

Page 1 of 24 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Re: Rust

    After having further investigated Rust I've decided it is too immature at this point. It's not as much the language itself as it is the lack of mature third party libraries. I need stable subsystems...
  2. Replies
    15
    Views
    673

    Re: debug in release mode

    Tracing means you temporarily modify the source code. Make sure you're permitted to do so.

    Tag all traces you put in with comments so they can be easily located later and removed/commented out...
  3. Replies
    15
    Views
    673

    Re: debug in release mode

    I seems you've disregarded my advice (in #6) completely. That's a mistake. Ask a college familiar with the application for the most likely bug location. With a little bit of luck a few narrowing...
  4. Replies
    15
    Views
    673

    Re: debug in release mode

    It's perfectly possible to debug without a debugger. Just put traces in the (release mode) code and go with the flow. :)
  5. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Re: Rust

    Well, that definitely makes it very hard for 'Average Joes' like me to accomplish changes to C++.

    But what you describe is the formal process. The C++ committee can also act informally by inviting...
  6. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Re: Rust

    I would if I could but as an ordinary Joe programmer I'm not qualified. I have to select from what's offered and hope to make the right choice. Reading books and articles, watching guru presentations...
  7. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Re: Rust

    Apart from the stint with Java I've also used only C/C++ professionally. I wouldn't say my Java period was a total waste, for example I got to learn OO thoroughly, but the main lesson I learned is...
  8. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Re: Rust

    Yes, C++ is not the ultimate choice for every situation but it is preferred in many situations. Many large companies including Microsoft have started using Rust where they traditionally would've...
  9. Thread: Rust

    by wolle
    Replies
    9
    Views
    800

    Rust

    I was a C programmer who jumped on the Java bandwagon. Unfortunately Java never lived up to its hype for my kind of applications (which is scientific programs for the desktop). So it was a great...
  10. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    This is the parametric version of a 3D line we have used,

    P.x = O.x + t*AB.x
    P.y = O.y + t*AB.y
    P.z = O.z + t*AB.z

    If say AB.x is 0 then it becomes,

    P.x = O.x
    P.y = O.y + t*AB.y
  11. Replies
    13
    Views
    1,818

    Re: how create a 3D collision function?

    I cannot say what is wrong but the first step must be to check out carefully whether the isCollision function works properly. It is based on two principles. The first is a certain detection test to...
  12. Re: [RESOLVED] how i get point on a 3D line knowing the Z or X or Y?

    This is the parametric version of a 3D line we have used,

    P.x = O.x + t*AB.x
    P.y = O.y + t*AB.y
    P.z = O.z + t*AB.z

    Looking at the first equation,

    P.x = O.x + t*AB.x
  13. Re: how i get point on a 3D line knowing the Z or X or Y?

    Yes AB is the vector going from O to D. It's calculated as D - O like,

    AB.x = D.x - O.x
    AB.y = D.y - O.y
    AB.z = D.z - O.z

    If you know the z-coordinate of P that is P.z and want to find out t...
  14. Re: how i get point on a 3D line knowing the Z or X or Y?

    I cannot tell whether your code is correct but if the problem is to find a point on a 3D line given that one coordinate is fixed, then this is how I would go about it.

    Say you have two points in...
  15. Replies
    13
    Views
    1,818

    Re: how create a 3D collision function?

    Okay I used the same member names for P and S that is w, h and d but okay that's a little confusing so I change to x, y and z for P to better relate to your code,


    return ((P1.x <= (P2.x + S2.w))...
  16. Replies
    13
    Views
    1,818

    Re: how create a 3D collision function?

    I think the parentheses are wrong for symmetry reasons. The test for collision should be the same in all 3 dimensions. The return statement has 12 lines so there are 4 lines per dimension. If you...
  17. Replies
    2
    Views
    679

    Re: Erase an stl element within the or loop

    If the "list" is an STL container it comes with an erase() method which can be used to erase elements from the container. How to do it is described in the documentation for each container but as far...
  18. Replies
    20
    Views
    2,407

    Re: How To: Prevent duplicate coding

    I don't understand the meaning of this reply.

    You made an ad hominem attack on a forum member in #10 for having reported a double post. That's quite serious coming from a moderator and especially...
  19. Replies
    20
    Views
    2,407

    Re: How To: Prevent duplicate coding

    To me it's relevant information. It's because I adapt my replies to the existing contributions. If there's an identical discussion going on elsewhere I like to know. Ideally the OP should volunteer...
  20. Replies
    20
    Views
    2,407

    Re: How To: Prevent duplicate coding

    No but if you know about the double post you can better decide if and how you want to reply. I cannot think of any situation where awareness of the existence of a double post would be in the way.

    ...
  21. Replies
    10
    Views
    3,606

    Re: jumble with numbers

    The sample inputs and outputs are easier to understand if formatted like this i think,

    SNo / Input / Output
    -----------------------
    1 / 90 150 2 / 120
    2 / 20 80 6 / No number is present at this...
  22. Replies
    20
    Views
    2,407

    Re: How To: Prevent duplicate coding

    So that people here become aware of the double post and can avoid wasting time on something that has already been sorted elsewhere. It's very annoying to find out that your effort was for nothing.
    ...
  23. Replies
    20
    Views
    2,407

    Re: How To: Prevent duplicate coding

    Why not simply use functions and structs?

    One function for example could be called setup. It would expect a struct as input. The struct contains all data that is necessary to setup a channel. The...
  24. Replies
    1
    Views
    474

    Re: Make a good like button.

    This is something you must ask the provider/owner of the social media website about.

    If the website supports like buttons and you don't have one it should be as simple as activating it on some...
  25. Replies
    5
    Views
    709

    Re: enum or static const

    Maybe neither is :)

    If the sole purpose of the "magic numbers" is to associate each multiraster with a number and then use the numbers as alias names for the multirasters then you can as well...
Results 1 to 25 of 587
Page 1 of 24 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)