On Tue, 05 Dec 2000, you wrote:
> On Tue, 5 Dec 2000, davep wrote:
>
> itoa and strupr: these are MS extensions to the C library. They come
> in two forms: with and without a leading underscore. Try adding the
> following macros where you use them:
>
> #define itoa(x,buf,rdx) _itoa(x,buf,rdx)
> #define strupr(str) _strupr(str)
>
> For the others it probably simply means you're not importing all the
> necessary libraries. More specifically you should add comctl32 to your
> zmdi.spec file.
> And for _makepath you can try to either import crtdll from your
> zmdi.spec file, or, and it may be safer, try to do without it.
That was the answer - thanks also to Uwe for the similar suggestion. Winemaker
had not included COMCTL32 or CRTDLL in the .spec file, so adding it by hand and
including the #defines above fixed the problem. I also had previously needed a
#define _EXPORT __EXPORT
(the original application was built with the Borland C++ v5 compiler which I
suspect doesn't always do things the same way as MSC).
Now the application runs as well under Winelib as the original Windows version
under Wine. Congratulations on a brilliant piece of work!
--
Dave Pickles