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
A

Alexander Berthold

@Alexander Berthold
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • STLPort anyone ???
    A Alexander Berthold

    >> ( size_t is unsigned int instead of int ) Isn't "size_t" unsigned by standard???. >> I got it going, I had to uncommet a #define I have neither with VS7 nor with VC6 had any problems installing STLport. You simply should open a DOS box (with VC environment), go into the STLport 'src' directory and run "nmake vc6.mak". >> I wrote functor and had to rename it because it crashed with something global introduced by STLPort. What was the name which caused the conflict?

    C / C++ / MFC com question

  • STL and member functions ???
    A Alexander Berthold

    Create a from std::unary_function derived helper class then it should work. For map for_each functors, it should look like this, remember the first pair argument must be const (i think). I assume your maps' pairs' first argument is an int. class hidewindow_functor : public std::unary_function< std::pair<int const,CWnd*>, void> { public: void operator() (std::pair<int const,CWnd*>& target) const { target.second->ShowWindow(SW_HIDE); } }; Cheers, Alexander Berthold

    C / C++ / MFC question c++ com debugging tools

  • Source Code of a Simple Calculator
    A Alexander Berthold

    Some code is here (look at the sample code): http://www.codeproject.com/useritems/cxtpackage.asp But maybe it is a bit too large for your purpose ... :-D

    C / C++ / MFC com performance help question

  • Win2000 bug?
    A Alexander Berthold

    Perhaps you should uninstall your VMTU tool :)

    The Lounge data-structures help question announcement

  • "Most Stable OS ever": Lie, or mistaken?
    A Alexander Berthold

    Why does anyone get so engaged when s.o. has the opinion that MS sucks? Especially when this s.o. has something to prove that :) Honestly, in our company with lots of computers i tried it on 4 quite different ones (laptop, server (w2k server), developer machine (w2k prof) and an older developer machine (nt4 prof)) ... Guess what? Crashed on any of those. This makes it IMHO kind of implausible that this is a driver problem, because the driver structure has been changed completely from NT4 to W2k - and yes, christian, your believing is wrong in point 4) - just take a look at the topics WDM (Me), WDM (2k), DDK NT, DDK 2k, DDK 98+, ...

    The Lounge question c++ com testing beta-testing

  • Cool eh ?
    A Alexander Berthold

    My POV is: As almost anywhere in the internet, the ratio of posts vs. queries in forums is far below 1. This means, you could optimize the process further by doing a pre-sorting while writing, not while querying. So i'd create a table containing the posts with ancestor ids, and another table containing the already-sorted list of ids with nest level. The tables could look like that: - Master table: comment-id, title, text, datetime - Query table (must maintain order of items): nest-level, comment-id, parent-comment-id Adding a new comment would go like this:

    1. Firstly, add the new comment to the master table, thus assigning it a new comment-id.
    2. Search the last item (ordered by datetime) in the query table which matches the condition "parent-comment-id equals the comment id of the desired parent".
    3. Immediately after this item, insert a new row filled with the already known data (parent-comment-id and nest-level) in the query-table.

    Special handling is necessary if the comment doesn't have an ancestor. Reading the forums would then go like that:

    1. Select 'n' consecutive rows of the query table (starting at any point you like)
    2. Create HTML out of the result (nest level is already there, and the order is the correct hierarchical order).

    I hope i didn't overlook something important :)

    The Lounge php perl com help question

  • C++ standards compliance
    A Alexander Berthold

    I found the STLport 4.0 STL pretty good and i didn't find a bug yet though i use it quite extensively (especially maps). I found also that the "built-in" workarounds for making it work with VC++ 6.0 are pretty good (i never had to place a #ifdef around a STL-only code part). Maybe you can post the problems you've had while using STLport 4.0 (especially the problem with the maps)?

    The Lounge c++ delphi com beta-testing

  • Gun control in Australia?
    A Alexander Berthold

    Did i say developed, civilized countries? :cool:

    The Lounge question announcement

  • Gun control in Australia?
    A Alexander Berthold

    In the US the prisons are full, yes. Why? Because no other (civilized) country in the world has similar laws. For example, in no other developed country you can get 5-20years for owning a small amount of marihuana, even kids aged under 21 years ... In no way i want to speak for criminals, drug dealers or anyone else doing crime; but i think the biggest problem in the US is the (wrong) mentality regarding resocialization and crime prevention.

    The Lounge question announcement

  • What is C#?
    A Alexander Berthold

    I completely agree with Christian Graus. C# (or any other .NET 'dialect') tries to improve code quality by eliminating some typical pitfalls of C++. Which is a good idea, no doubt; the resulting applications won't crash that often. But i think the *real* problem is that the necessary skills needed to build up stable and clean C++ applications are the same skills needed to build a effective, stable and well-designed application using *any* language whether it has for example a GC or not. Again, i do not doubt the usefulness of C# or the whole .NET basics; but i do doubt it will increase quality of code; IMHO it will need even more discipline to build sophisticated applications. :suss: Signature? What is a signature?

    C# question csharp
  • Login

  • Don't have an account? Register

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