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
D

David Crow

@David Crow
About
Posts
26.5k
Topics
245
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to get the title of CPropertyPage ?
    D David Crow

    The CPropertyPage object is created during its construction, not when it is added to the sheet. Since you constructed it without a title, a title you cannot retrieve.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC com debugging tutorial question

  • Blast from the past
    D David Crow

    I've seen installation instructions for a CD player come on a disc. I never could figure out how to read them.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge javascript cloud csharp linq com

  • GUI Freezes randomly /MFC /C++
    D David Crow

    Zishan Ud787 wrote:

    case BUTTON1:

    This case is not ever going to execute because it's all uppercase (and what's getting assigned to m_threadCmd is not). Is that intentional?

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC c++ design help

  • Computer Nerds - Quirks and Habits
    D David Crow

    They used to not be considered strange, but I now work 8+ hours per day, own a home, and don't do social media.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge question

  • Did I dodge a bullet?
    D David Crow

    Cezar Lamann wrote:

    How would you guys reply to this question if you were in my shoes?

    I wouldn't. Not everything requires a reply; in fact, most things do not.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge database question csharp career

  • Request Assistance re/ Tight Squeeze
    D David Crow

    Turn the unit over and let gravity, along with a few whacks, help drop the battery out.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge question

  • Ah telemarketers...
    D David Crow

    Nelek wrote:

    so blocking the numbers brings not so much.

    Yeah, the default phone app on my Android is limited to blocking 500 specific numbers. Once that filled up, I ended up just writing a little "blocking" app that blocks whole ranges of numbers. It's very effective. I may get one odd call every other month now.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge question

  • Branching off...
    D David Crow

    dandy72 wrote:

    ,,,tickets to some Taylor Swift show.

    That's just plain insulting.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge swift business beta-testing code-review

  • DELETED Please help me (with) improving my coding skill(s) - how to access iterated object.
    D David Crow

    Your code snippet is very difficult to read with all of the comments and lack of indentation.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC help tutorial

  • MFC CIPAddressCtrl - How to detect blank field (octet)?
    D David Crow

    Member 16326708 wrote:

    In my case, making sure iNonBlankOctets is never less than the total number of octets...

    The return value of IPM_GETADDRESS is a DWORD that is broken up into 4 pieces, one for each of the four octets. There is no count. A possibly better option would be to call GetWindowText() on the CIPAddressCtrl's control. Getting the string representation of the IP address would allow you to parse and validate the octets. You would still get 0 for empty ones, though.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC c++ help tutorial question announcement

  • MFC CIPAddressCtrl - How to detect blank field (octet)?
    D David Crow

    But how would you differentiate between an empty octet and an octet containing 0?

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC c++ help tutorial question announcement

  • I was sent this, and...
    D David Crow

    Richard MacCutchan wrote:

    ...I don't think it will be long before a wholegeneration will not be able to do anything for themselves in terms of using their brains.

    That ship has already sailed.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge com lounge

  • error CS5001: Program does not contain a static 'Main' method suitable for an entry point
    D David Crow

    Dave Kreskowiak wrote:

    ...so reposting this was redundant.

    And completely unnecessary.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC help

  • C program(homework)
    D David Crow

    Member 16311074 wrote:

    ...not letting me enter my replacement string.

    Try changing the size of searchStr and replaceStr to something too large (but still only enter 10 characters). When you make them just large enough and you enter in that many characters, fgets() leaves the \n in the keyboard buffer and the second call to fgets() see it and exits right away.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC data-structures regex

  • C program(homework)
    D David Crow

    Member 16311074 wrote:

    replaced = 0; // Reset for the next string

    Since replaced is a local variable (and searchAndReplace() is not static), this statement does nothing useful. This has nothing to do with your overall issue, though.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    C / C++ / MFC data-structures regex

  • Sleeping in full light
    D David Crow

    trønderen wrote:

    But isn't there a main switch for turning the light off, regardless of what the sensor says? Yes, there is - but that will also turn off the lights in the emergency signs...

    While the main breaker would kill ALL of the lights, code would not have allowed these two lighting systems to be on the same circuit, thus they would each have a separate breaker.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge css iot security help question

  • Roll your own...
    D David Crow

    Gather metrics to eliminate the "my opinion vs. your opinion" thing.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge asp-net security csharp dotnet question

  • Loud Keyboards
    D David Crow

    Unless you are working in an environment where computer use is not the norm, I would question your office mates' inability to discern the sound of a keyboard.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge question

  • Well, will it?
    D David Crow

    Well, smartphones and their offerings have made a whole generation (maybe two) stupider, so it's almost certain that they won't fare much better with a text-generating robot.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge com question

  • Common Application Status/State Symbols
    D David Crow

    TNCaver wrote:

    If not, what symbols would you suggest?

    Um, how about words? In the past icons used to make sense, but now they are often times just a symbol that no one can initially decipher (hence your question).

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

    The Lounge testing tools help question
  • Login

  • Don't have an account? Register

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