Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

RodgerB

@RodgerB
About
Posts
8
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating large DIB's using CreateDIBSection and CreateFileMapping
    R RodgerB

    Its not a question of having enough RAM, you need to have enough address space available in your process. I think you won't have this issue on a 64 bit OS and a 64 bit process. Even a 32 bit process on a 64 bit OS helps as long as the process is Large Address Aware.

    C / C++ / MFC help graphics performance question

  • Converting code from C#.NET to VB.NET
    R RodgerB

    Even better idea. Don't use VB! Ever!

    Clever Code csharp help

  • Straw Poll: Return True or False?
    R RodgerB

    Why are you returning anything? How about an item not found exception? If you expect the item to be there and it isn't then you have yourself an exception. If you don't care that it's not in there ignore the exception. Either way, the user of this code doesn't have to decide what you meant by returning true or false.

    The Lounge question csharp c++ asp-net com

  • Super Subtle
    R RodgerB

    Yeah I saw it right away too. This code is pretty ugly. Does this use MFC doc/view architecture because the document has much better ways of asking its views if its OK to close.

    Clever Code help c++ data-structures regex question

  • Infinite for loops
    R RodgerB

    I guess we could argue this back and forth. It comes down to avoiding mistakes and doing things as a matter of policy. E.g. I never do this: int* y, z; I always do this: int* y; int z; Why you ask. Too easy to read it wrong at a glance, too easy to miss something. Some logic as to why I never use goto's and why I don't put returns anywhere but at the very bottom or very top of a function. I believe this to be more than just a matter of style.

    The Weird and The Wonderful help c++

  • Infinite for loops
    R RodgerB

    Goto's are really really bad and should be super rarely used. They are not needed for error handling. The only good use I've seen for goto's is machine generated code with tools like YACC and LEX. Generally speaking, break, continue, and multiple returns can cause problems too. Readability and maintainability are very important. Imagine if you will a "come from" statement. You put a label X somewhere then in a totally different part of the method you place a "come from" label X. Whenever control reaches the label you goto the "come from". Imagine how hard it would be to read that code. What's wrong with using exceptions for error handling?

    The Weird and The Wonderful help c++

  • Source Database
    R RodgerB

    Isn't anyone using Perforce? I've used it a lot a love it. It integrates with Visual Studio rather well. It's free for 2 developers but expensive for 3.

    The Lounge php database com collaboration tools

  • "Simple" POTD [modified]
    R RodgerB

    999! i.e. 999 factorial

    The Lounge question com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups