The problem you are having is that I placed my DomStringToStdString in a
namespace.  The namespace is called "MCLib", for "Mike Crawford
Library".

What I think is happening is that you don't understand how to use
something from a namespace.

One option is to read up on namespaces in a C++ text, like Stroustrup's
The C++ Programming Language.  This is ultimately the best solution, as
you will find namespaces useful in the future.  

What namespaces do is allow you to use code from various libraries all
together without having the variable and function names clash because
two independent programmers came up with the same name for two different
things.  There are other fancier uses for namespaces too.

The other option, probably best for now, is not to place my code in a
namespace.  What you would want to do is remove this:

namespace MCLib {

from the code, as well as the corresponding closing brace.

Then remove any instances of "MCLib::" from the rest of the code.

Let's see if I can find you a page about namespaces:

http://www.google.com/search?q=%22c%2B%2B+namespaces%22&btnG=Google+Search

The google search finds these pages which look helpful:

http://www.mvps.org/windev/cpp/nspaces.html
http://www.glenmccl.com/ns_comp.htm
http://www.cog.brown.edu/~rodrigo/c++mini-course/Namespaces.html

in any case, the namespace MCLib should probably best not be used for
now.  I have a whole code library that, in part, provides useful classes
for working with Xerces that I would like to release as open source, but
for various reasons I have not been able to do that yet.  All that code
will be in namespace MCLib, unless I come up with a better name for it.

Mike
-- 
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
[EMAIL PROTECTED]
http://www.goingware.com/

     Tilting at Windmills for a Better Tomorrow.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to