Assembling and Linking Using TASM32

When working with resources using TASM32, some specific features must be taken into account. First, resource compilers can have specific language constructs that are not supported by other compilers. However, this isn't the only problem. There is another difference. Assume that the program name is DIAL.ASM, and the resource file has the name DIAL.RC. Then, the commands for compiling and building the executable module in TASM32 will appear as follows :

 TASM32 /ml DIAL.ASM     BRCC32 DIAL.RC     TLINK32 DIAL.OBJ,,,,,DIAL.RES 

As a result, the DIAL.EXE program will be created. If the program displays a dialog instead of the standard window, then probably (but not necessarily ) you'll notice that its style corresponds to the Windows 3.1 style. For MASM32, this isn't the case. The problem can be solved if you add DS_3DLOOK equal to 0x0004L into the window style. The Help file states that the DS_3DLOOK style must be set automatically for dialogs. The reason of this is specific features of BRCC32.EXE operation. As far as I know, there are no other significant differences between the resource compilers of MASM32 and TASM32.



The Assembly Programming Master Book
The Assembly Programming Master Book
ISBN: 8170088178
EAN: 2147483647
Year: 2004
Pages: 140
Authors: Vlad Pirogov

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net