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

Search:

Type: Posts; User: KevinHall

Page 1 of 54 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    717

    Re: printf hacking

    It's very easy for a user to crash the program. All the user has to do is pass something like "%s". If the stack happens to contain zeros or something that translates into an address that the...
  2. Replies
    52
    Views
    4,429

    Re: Is using goto a bad practice

    Personally, I'd rather resurrect an old thread rather than starting a whole new one. At least all the history is in the same place then. But that is just my humble opinion....

    (Of course it...
  3. Replies
    52
    Views
    4,429

    Re: Is using goto a bad practice

    Wow, a unique class for every goto? That sounds much more maintainable than just using a goto! Then there's the argument about performance (which others have brought up).

    But you obviously...
  4. Replies
    52
    Views
    4,429

    Re: Is using goto a bad practice

    Consider what happens if another function in try block also happens to throw an integer. That throw will trigger your goto replacement instead of up to the next matching catch block higher up the...
  5. Re: Trying to call a CLI function from native C++.

    Glad I could help. That other thread is interesting. I didn't know this type of attribute existed:


    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    That may make life easier the next...
  6. Re: Trying to call a CLI function from native C++.

    I've had this very same problem. The problem is that by default, the calling convention for C++/CLI projects is __cdecl. However, the callback functions need to be declared __stdcall. Here is an...
  7. Re: search an efficient way to handle a long list

    Here's an interesting thread that may offer some insight:

    http://www.thescripts.com/forum/thread488315.html

    In that thread, Boost Multi-Index and Boost RTL (Relational Template Library --...
  8. Re: search an efficient way to handle a long list

    First, I'm not sure that a std::list is the right container for you. I don't know the details of your implementation, but I would consider either std::vector which will allow for faster iteration, a...
  9. Poll: Re: Which cross-platform C++ thread library do you use/prefer and why?

    I saw your message in comp.lang.c++. I responded there with a detailed opinion on both Boost threads, ZThreads, and pthreads.

    But I'll restate briefly that I don't really think either Boost...
  10. Replies
    66
    Views
    21,092

    Re: The most ridiculous interview questions.

    If you wanted to minimize the surface area of the manhole, then you'd want to choose a shape that represents the profile of people as viewed from above (or below) and choose the minimum size so that...
  11. Re: .NET Replacement for VB6's 'Array' keyword?

    :blush: That was easy! Thanks.

    I deal with C++ (ISO, not managed or C++/CLI) 98% of the time and have to dabble with VB.NET every once in a while.

    Thanks again!
  12. Replies
    29
    Views
    2,611

    Re: getting a new compiler....

    Also note that g++ is not 100% ISO compliant.

    As for 100% compliant compilers, I only know of Comeau (which generates C code and requires a C compiler back-end). Intel C++ 9.1 claims 100%...
  13. Replies
    29
    Views
    2,611

    Re: getting a new compiler....

    Yes, visual studio 2005 (Professional) reports errors:


    c:\test\codegurutest\codegurutest\codegurutest.cpp(17) : error C2065: 't_Heap' : undeclared identifier...
  14. .NET Replacement for VB6's 'Array' keyword?

    In VB6, it was easy to pass a array of a certain type (ok, technically it was a array of variants) into a function as follows:



    x = Foo(Array(2,3,5,7)) 'Array of integers


    I know that in...
  15. Replies
    17
    Views
    2,275

    Re: Exception Handling

    -- Oops... should have been a PM --
  16. Replies
    18
    Views
    3,508

    Re: A faster std::set?

    I'm sorry.
  17. Replies
    18
    Views
    3,508

    Re: A faster std::set?

    As Paul said, std::set is about as fast as it can be. Profile first as Mr. Viggy said. Determine what the real bottleneck is. Is it:

    * Memory allocations
    * Element insertion and removal
    *...
  18. Replies
    17
    Views
    2,275

    Re: Exception Handling

    You've missed my point. I don't like the idea of undefined behavior. That allows the compiler vendors to allow demons flying out of my nose. I'm contacting Bjarne, Herb, and P.J. and team to...
  19. Replies
    16
    Views
    2,107

    Re: tab to spaces conversion

    Ooopss.... double post. Sorry.
  20. Replies
    16
    Views
    2,107

    Re: tab to spaces conversion

    First of all, please use CODE tags:



    Secondly, the call to stripWhiteSpace isn't entirely helpful as it removes white space from the beginning of the string. Unnecessary white space at the...
  21. Replies
    15
    Views
    1,197

    Re: Silly #define Question

    All our exceptions do derive from std::exception. :thumb: :D The problem was that sometimes we needed to add more visibility. For example:


    try
    {
    //...
    }
    catch (CppLibException& e)...
  22. Replies
    17
    Views
    2,275

    Re: Exception Handling

    Why does it have to be my nose demons fly out of? :mad: Why can't it be the developer's nose who wrote the offending code? I'm going to contact Bjarne, Herb, P.J., and the rest of the standards...
  23. Replies
    15
    Views
    1,197

    Re: Silly #define Question

    Yeah, preprocessor operators. Total brain-fart there. :o
  24. Replies
    15
    Views
    1,197

    Re: Silly #define Question

    :ehh: From what I've seen you write at CG, I'd have thought you've been programming longer professionally. :D (That's why I made the comment about being surprised.)



    Well, perhaps I should...
  25. Replies
    35
    Views
    2,512

    Re: Pointer to functions

    :lol: :thumb: :D :lol: True, true!!!
Results 1 to 25 of 1337
Page 1 of 54 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