Hello,

On Fri, 17 Dec 2010 15:46:55 +0200
Paul Sokolovsky <pmis...@gmail.com> wrote:

[]

> So, this should be handled differently. Quick idea is to use implib
> aliasing, like
> 
> SetPropW=SetProp

Well, either I mix up things, or in my times (ca. 10 years ago) that
indeed worked with dlltool for creating implibs from .defs. But it
doesn't now, and it was a hell to find an MS compiler to verify that
behavior. In the process, learned that there's no implib.exe nowadays
(eVC4), but lib.exe does the trick.

Still, binutils people made what I had in mind:
http://sourceware.org/git/?p=binutils.git;a=commit;f=binutils/dlltool.c;h=f762b0771734d0a4c81f3b19302bce8a1853a9d8
http://sourceware.org/git/?p=binutils.git;a=blob;f=binutils/testsuite/binutils-all/alias-2.def;h=ef41eec6c15954b8e252481e4adc9a69b6248c6c;hb=f762b0771734d0a4c81f3b19302bce8a1853a9d8

But well, would need to upgrade binutils to elaborate w32api. Scope
creep. Another issue is that objects produced with such technique would
be unlinkable by MSVC - some people appear to use such scenario.

Another approach to at least minimize w32api patching is:

#ifdef _WIN32_WCE 
#define _WNAME(name) name 
#else 
#define _WNAME(name) name ## W 
#endif 

BOOL WINAPI Shell_NotifyIconA(DWORD,PNOTIFYICONDATAA);
BOOL WINAPI _WNAME(Shell_NotifyIcon)(DWORD,PNOTIFYICONDATAW);

#define Shell_NotifyIcon _WNAME(Shell_NotifyIcon)


-- 
Best regards,
 Paul                          mailto:pmis...@gmail.com

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to