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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

Brian R

@Brian R
About
Posts
16
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Overloading and virtual functions
    B Brian R

    You can add a using statement to promote the visibility of the base class functions. class CDerivedClass : public CBaseClass { public: CDerivedClass(void) {} using CBaseClass::DoSomething; virtual ~CDerivedClass(void) {} virtual void DoSomething(int a) {} }; The eliminates the "hiding" problem.

    C / C++ / MFC help testing beta-testing question

  • Unnecessary try / catch block
    B Brian R

    Actually, this code has a somewhat subtle behavior, since it is catching by-value, prior to throwing. If a derived exception is thrown, it will be "clipped" to the base class when it is thrown. This could be potentially different from invoking throw, which would throw the derived class.

    The Weird and The Wonderful algorithms question

  • Is real-time programming can be done with C# & .Net?
    B Brian R

    One other characteristic of C# to keep in mind is that JIT compilation introduces unpredictable execution times. This is probably more noticeable in small embedded environments such as WinCE platforms. I have experienced "hits" of 100+ msec while small functions are compiled, other times they require only 20+ msecs to execute. Apparently the WinCE CLR provides only a relatively small buffer (64K?) of compiled code. When this becomes full, something must be purged to compile the next new block. So you see the "hit" somewhat unpredictably. Also no way to generate pre-compiled binaries (genx) in WinCe.

    Work Issues csharp dotnet visual-studio help question

  • Inspection/Review Checklists
    B Brian R

    I have been tasked with generating some inspection / review guidelines (standards) for my current employer. Coding guidelines are pretty simple, but I am struggling with meaningful criteria for guiding review of software product requirements, architecture, preliminary design and detailed designs. I was wondering if anyone had ideas or checklists that they would like to share? I am not looking for generic statements like "Requirements shall be testable.", but rather tips on how to identify when the requirements are design-requirements, rather than functional ones (for example). Similar goals for other types of reviews. If you prefer not to post here, feel free to reply directly to my personal e-mail as well (brothwell@qwest.net). Thanks

    IT & Infrastructure tutorial csharp design business architecture

  • Geometry!
    B Brian R

    Here is a site with general intersection algorithm implementations, including circle with a rectangle (slighly more general case of circle and square) www.geometrictools.com/Intersection.html C++ implementations.

    The Lounge com data-structures help question

  • Asynchronous Thread Communication in Windows CE Mobile
    B Brian R

    I recently ran thru the same problem you are describing. After researching other discussions, my solution was to implement a "native" event class using the underlying windows CE API. Next, create a thread-safe message queue (using generics in my solution) that signalled an embedded native event when events were added and reset the event when the queue emptied. I used these pieces to implements a WaitForAny on an array of the native handles. Final result was the desired WaitForAny that you are describing.

    Mobile csharp data-structures json question

  • Line number and filenames?
    B Brian R

    I was wondering how to find the source code line / filename (__LINE__/__FILE__ equivalent) when using the Compact Framework, since the System.Diagnostics.StackTrace class is not supported? Goal is to support logging of location of errors in release as well as debug. Has anyone found a technique using Trace, perhaps?

    C# debugging tutorial question announcement

  • Line numbers / filenames in Compact Framework
    B Brian R

    I was wondering how to find the source code line / filename (__LINE__/__FILE__ equivlaent) when using the Compact Framework, since the System.Diagnostics.StackTrace class is not supported? Goal is to support logging of location of errors in release as well as debug. has anyone found a technique using Trace, perhaps?

    Mobile debugging tutorial question announcement

  • What do employers mean by .Net experience
    B Brian R

    I was wondering if anyone in here could explain what it means when a job description specifies .Net experience? Does that imply a specific version of compiler, language? Specific SDK experience?

    C / C++ / MFC csharp question announcement career

  • Survey of Technique Questions..
    B Brian R

    Sorry to be vague. Was wondering what generic techniques you use/recommend for implementing conversions between enumberated type values and string representations. Also curious how (of if) you would use a different technique for multi-language support/translation.

    C / C++ / MFC

  • Survey of Technique Questions..
    B Brian R

    Almost every program I have worked on uses some technqiue to convert enumberated values to strings (and vice-versa). I suspect I have seen a dozen or more different techniques when multi-language translation is factored in. I am curious to what preferences other developers have and any pros/cons they see with those techniques.

    C / C++ / MFC

  • Exception Overhead?
    B Brian R

    I am curious about the actual measured overhead in program performance and size due to exception handling. Ideally this would isolate the effects of multiply-nested try/catch blocks, etc. While I could build some sample apps to measure this, I was wondering if anyone has or can point me to some definitive, quantitative info before I start that effort?

    ASP.NET performance question

  • A question on switching compilers...
    B Brian R

    Am about to embark on the process of upgrading our companies development systems from VC 6.0 to Visual Studio .Net C++. Am a bit confused why .Net C++ is only $110 a copy from MS, but .Net Professional is $700. Other than support for C# etc, are there any significant differences? Has anybody else had problems with such a change-over?

    C / C++ / MFC csharp question c++ visual-studio

  • delete this questions
    B Brian R

    I have been programming with c++ since the Cfront "compiler" came out of ATT. I have never found a circumstance where delete this seemed like a correct solution. My impresssion is that it is an artifact of bad design. The fact that the MFC and COM implementation require it is not a surprise ;-) Along the same line, throwing an exception via a pointer is equally dangerous in my book!

    C / C++ / MFC question

  • Looking for "TV guide" class examples
    B Brian R

    I am looking for a class(es) that implement a TV guide style infterface. Not quite like a grid, since all the cells in verious lines start and end on arbitrary boundaries. Anybody seen anything like that?

    C / C++ / MFC css tutorial question

  • Getting thread timing
    B Brian R

    Does anyone know ofa mechansim to get thread timing information. I am trying to get a better understanding of the percentage of CPU utilization in a multi-threaded app, but on a per-thread basis as opposed to a per function basis. The system APIs provide this info for processes, but I have been unable to get equivalent info for threads. If someone can elighten me, or suggest a technique, I would appreciate it.

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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