httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Mattes>
Subject Re: a thanks and C++ new overloading
Date Thu, 29 Mar 2007 14:01:23 GMT
On Thu, 2007-03-29 at 08:44 -0400, Sam Carleton wrote:
> Folks,
> I want to say thank you for taking the time to help me out with
> getting my module up and going.  It is so VERY refreshing to be
> developing in such a well thought out and structured environment.  By
> day I am working in VB.Net on different small projects where the
> project leads attitude is: Get it done, don't make too many new
> modules/class because it will be too complex for me (boss) to
> understand when you leave.  Having the structure of the apache module
> is the complete and total opposite and very very refreshing!  It is
> also exposing me a little bit to how to make a module system, which I
> will ultimately need to do for the GUI side of my app.  It is all
> good, very good!  Thanks for directing me this way!
> Last night I did successfully setup a C++ new overload that takes an
> apache pool.  (When used correctly, C++ is simply WONDERFUL!) The
> question is:  How best to make the code reusable?  What do I mean?
> Well, the next version of the GUI is going to be written in C++, there
> is going to be a lot of code that can and should be shared between the
> module and the GUI.  I just cannot figure out how best to setup the
> common code to allocate memory for different locations.  Any
> suggestions?

Well, please consider all I say with a certain amount of doubt since I'm
not a C++ developer (only did one C++ module, the rest was plain C) and
favor C (or Obj. C) over C++, but: Since you seem to like the Apache way
why not use it for the GUI as well. The memory pooling and eveything
prefixed with 'apr_' is actually part of the Apache Portable Runtime
which can be used independent from the Apache webserver (Subversion is a
prominent example for such a project). You just need to decide whether
memory pools[1] are a good fit for your GUI application.
Cheers, RalfD

[1] For another nice MPS have a look at:
> Sam

View raw message