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
H

hamster1

@hamster1
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Regex "Unrecognized Escape Seq?"
    H hamster1

    The problem is the "\." - characters after the backslash are interpreted Escape Sequence, which in your case makes (luckily) no sense. Two ways to fix it: Regex theRegex = new Regex("[-+]?([0-9]*\\.)?[0-9]+ "); Regex theRegex = new Regex(@"[-+]?([0-9]*\.)?[0-9]+ "); ---------------------- ~hamster1

    C# regex help question

  • can this be done in C# / .NET / WinForms?
    H hamster1

    There is actually a trick on using ASP.NET applications as standalone - you would need to write a small .exe which hosts the ASP.NET Runtime. I believe the article can be found in the MSDN Magazine (not 100% sure though...) ---------------------- ~hamster1

    C# csharp c++ html winforms com

  • How to disable some strings in the ComboBox
    H hamster1

    Simple answer: Impossible. An owner-drawn combobox would help here, but I advise against it: It violates every UI design guideline. A better way would be to manage your content - delete invalid combobox items. ---------------------- ~hamster1

    C / C++ / MFC tutorial question

  • How can I get WM_KEYDOWN message in the CWnd-derived class?
    H hamster1

    Now what - dialog of CWnd?? With dialogs you'll never get this msg since always a child wnd has the focus. Dig into PreTranslateMessage() instead. ---------------------- ~hamster1

    C / C++ / MFC question help

  • variables initialization in the constructor
    H hamster1

    If you get the name from the outside, go with this: class a( const char* a_name) { strcpy(name,a_name); // note: unsafe ;-) } However, if you know the name at compile time already, simply hard-code it - gives more speed and security. class a { const char* get_name() const { return "blabla"; } } ---------------------- ~hamster1

    Managed C++/CLI question

  • const char* to LPCTSTR conversion
    H hamster1

    Have a look at the macros like A2CT, use MSDN "String Conversion Macros". That was VC6, with VC7 their name has changed a bit (to A2CTEX or something). ---------------------- ~hamster1

    Managed C++/CLI question debugging json

  • Capturing The Build Date Into Code
    H hamster1

    In VS.NET, open Solution Explorer, right-click on your project (.exe). Go to Properties > Common Properties > Pre-build... What you type there is basically a batch file. ---------------------- ~hamster1

    C# csharp question

  • Tricky XPath query C#
    H hamster1

    Try this: //DEPT[@CODE="DC1"]/EMP[@NAME="A"] ---------------------- ~hamster1

    C# xml csharp database tutorial question

  • Capturing The Build Date Into Code
    H hamster1

    Don't know about automatic... I would use the PreBuild event, there you can call a simple generator which might create something like "CurrentData.cs", content would be then a simple "const string CURRENT_DATE=...". ---------------------- ~hamster1

    C# csharp 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