On Oct 4, 7:05 pm, "Chris ( Val )" <chris...@gmail.com> wrote:
On Oct 4, 7:45 pm, pauldepst...@att.net wrote:
I am using the xlw package as a c++ wrapper for excel functions. In
our c++ library, there is an excel function which our c++ developers
refer to as DevelopersFunction, and which the excel users refer to as
ExcelFunction. [Names of functions changed to preserve corporate
confidentiality]
There is some code containing the string "DevelopersFunction" which
results in the excel users seeing the text DevelopersFunction when
they use the insert_function command in excel.
But the excel users should see "ExcelFunction"
I would imagine that this can be done by a simple preprocessor #define
command.
I tried to rename the function to ExcelFunction in excel and then
#define DevelopersFunction ExcelFunction
But this doesn't appear to work.
Any suggestions.
To be honest, I can't follow your description of
the problem, and I don't know of any "packages"
(at least not in a the C++ context).
Maybe you can look at using a 'typedef'?
Please try to be a little more clear and someone
else might be able to help you.
--
Chris Val- Hide quoted text -
- Show quoted text -
Thanks.
I have found a way of clarifying the problem, now that I understand
the issue better myself
I have a constructor called MyConstructor which takes a const
std::string & parameter.
I want the preprocessor to translate MyConstructor("dog") into
MyConstructor("cat").
This seems like a #define problem rather than a typedef problem.
and it should all work.