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
S

Sven Axelsson

@Sven Axelsson
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Deleted articles
    S Sven Axelsson

    ... as would a SELECT * from Nishant's post history ;P

    The Lounge debugging question

  • Deleted articles
    S Sven Axelsson

    Great. /sven

    The Lounge debugging question

  • Deleted articles
    S Sven Axelsson

    Yes, of course, I really ment other articles that I haven't written, but that I might have responded to at some point in time. /sven

    The Lounge debugging question

  • Deleted articles
    S Sven Axelsson

    Maybe this is something I've missed, but is there no way to see what has happened to a removed article? Couldn't we have a special section for this where you can see entries like Article title was removed by the author at date Another title was removed by a moderator at date I don't really like when things disappear without a trace, it is kind of spooky ;) /sven

    The Lounge debugging question

  • We really need the "Article Police"
    S Sven Axelsson

    Common courtesy says that if you think someone sucks and want to take action against him, you will tell him so up front and not just behind his back.

    The Back Room com help question

  • We really need the "Article Police"
    S Sven Axelsson

    Rickard Andersson wrote: Sven Axelsson wrote: also posted as a comment to the article itself Not necessary I think, there is a message board on each article and there can you write your ccriticism to the stupid article writer. If you have to provide a (useful) comment when reporting an article, it would be a good idea to post that comment to the message board at the same time to save you the trouble of writing the same thing twice. But I'm sure Chris thought of this already.

    The Back Room com help question

  • We really need the "Article Police"
    S Sven Axelsson

    That's actually a good idea, but it ought to require a comment why the article was reported that is also posted as a comment to the article itself. In this it would require the person reporting to provide constructive criticism on article content (or lack thereof).

    The Back Room com help question

  • constant String Memory Usage
    S Sven Axelsson

    OK, so what's with the holy war? I haven't checked all messages in this thread, so forgive me if this has been posted already. Why not use something like:

    class CStringBuffer
    {
    public:
    CStringBuffer(CString &str, int len = 0)
    : m_str(str) { m_buf = str.GetBuffer(len); }
    ~CStringBuffer() { m_str.ReleaseBuffer(); }
    operator LPTSTR() { return m_buf; }
    private:
    CString &m_str;
    LPTSTR m_buf;
    };

    to handle acquisition/release like

    CString str;
    CStringBuffer buf(str, 100);
    sprintf(buf, "%s %d", "Whatever", 666);

    I almost always use a wrapper class like that for API pairs like GlobalLock/GlobalUnlock and such. Works great! /sven axelsson, sweden

    C / C++ / MFC database c++ hardware debugging performance
  • Login

  • Don't have an account? Register

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