This section summarizes information for developing Win32® LUA applications for Microsoft® Windows NT® or Microsoft® Windows® 95.
Currently, the include files in the Windows NT system use the i386, ALPHA, MIPS, and PPC macros to indicate the hardware. These same macros are used by Microsoft® SNA Server, along with the Win32 macro, to indicate the byte ordering needs. The macros must be defined in the application or on the command line when building the application.
For example, the primary return code of lua_parameter_check is defined to have a value of 0x0001. Depending on the environment, the constant LUA_PARAMETER_CHECK may or may not be 0x0001. Some formats define the value as it appears in memory; others define it as a 2-byte variable. Because it cannot be assumed that an application will always use provided constants rather than hardwired values, a macro can be defined to swap the bytes. The following example shows how the macro can be used:
#define LUA_PARAMETER_CHECK LUA_FLIPI (0X0001)
Old DLL names | New DLL names |
---|---|
WINRUI.DLL | WINRUI32.DLL |
WINSLI.DLL | WINSLI32.DLL |
The old DLL names should be used for Win32-based applications that are required to run on SNA Server version 2.0. The new DLL names should be used for Win32-based applications that are intended to run only on SNA Server version 2.1 or later.
If you intend your Win32-based application to be used with SNA Server version 2.0, you should link with the libraries included with SNA Server version 2.0. Otherwise, use the new libraries provided with SNA Server version 2.1 or later.
(For RUI)
IMPORTS WINRUI.RUI
IMPORTS WINRUI WinRUI
IMPORTS WINRUI.WinRUIStartup
IMPORTS WINRUI.WinRUICleanup
(For SLI)
IMPORTS WINSLI.SLI
IMPORTS WINSLI.WinSLI
IMPORTS WINSLI.WinSLIStartup
IMPORTS WINSLI.WinSLICleanup