Re: Making Unicode/non-Unicode function dll.
"TheOne" <daewon.yoon@gmail.com> wrote in message
news:2b6c3c7f-a333-462c-8411-08a3c6f6d21c@y21g2000hsf.googlegroups.com
I'm writing a dll which includes unicode and non-unicode version of
Func, namely, FuncA and FuncW. The dll should include both of them and
the application side must call these function accroding to their
UNICODE setting.
I guess I should give the app-writer header file which looks like,
dllheader.h
+++
#ifdef UNICODE
#define Func FuncW
#else
#define Func FuncA
#endif
+++
However, if I include the same header, dllheader.h when building the
dll. Then the dll's also have only one implementation according to
UNICODE setting.
Simply don't use Func in your DLL code. Write FuncA and FuncW
explicitly.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925