Building zApp 3.0 as a DLL under Windows 16-bit crashes with Borland C++ 4.52

Article ID: 1096
Last updated: 05 Feb, 2008
Article ID: 1096
Last updated: 05 Feb, 2008
Revision: 1
Views: 4054
Posted: 07 Aug, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


Building zApp 3.0 as a DLL under Windows 16-bit crashes with Borland 4.52 compiler.



Action


In the zapph directory there is a file called lastdefs.hpp. This file needs to be modified as follows:

At about line 126, you'll see this:

inline zAppDllInstanceMem * Z_DLLSPEC zAppAppMem() {

return ((zAppDllInstanceMem*) MK_FP(_SS,0x24));

}

Change it to:

inline zAppDllInstanceMem * Z_DLLSPEC zAppAppMem() {

#if __BORLANDC__ == 0x452

return ((zAppDllInstanceMem*) MK_FP(_SS,0x38)); //for bc452

#else

return ((zAppDllInstanceMem*) MK_FP(_SS,0x24));

#endif

}

 

That's it!

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1096
Last updated: 05 Feb, 2008
Revision: 1
Views: 4054
Posted: 07 Aug, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category