Win Dos Dev Jrnl V5n2 Feb 94
Total Page:16
File Type:pdf, Size:1020Kb
Undocumented File Formats February 1994 $4.50 US Canada $5.95 Windows U DEVELOPER'S JOURNAL Multimedia ■ Bitmap Special Effects PLUS Reverse-Engineering the .shg and .mrb File Formats Dynalink Device Drivers for DOS Comparing Windows 3.1 and NT’s Extended-DOS WUctical C++: Window Subclassii Ml Bonneau on Customizing HSysfem Menu Icon Hh Tips: Trapping Errors Hi WinSpector Hduct Spotlight: Instant-C 0 38808 77877 7 Introducing ProtoGen+. Visual tools with the most awesome workbench ever created for Windows development. he future has arrived—a complete workbench access to multiple The most powerful, open set of point-and-click, WYSIWYG databases to develop client/server and Visual Development Tools ever! workbench that lets you create xBase applications. Snap-in compo¬ Build win¬ Quickly dows, forms, Dialog Menu create a dazzling applications without nents make ProtoGen+ open to future dialog boxes, Editor Designer menu using writing a line of code. development technologies—whatever tool bars templates Output C. Data valida¬ Paint your they may be. Code ProtoView Discover the ease and screens. Design ProtoGen+ is easy to learn, C++ and Gener¬ Screen tion, 3-D productivity ot visual Pascal with ator Manager effects, MDI development! a menu and link speeds your development cycle and Objects and more screens togeth¬ protects your investment by generat¬ Create new Rich library Custom Win- Visually er. Test the flow ing C,C++ and Pascal. We guarantee designers! Visual Control of visual develop Source Designer Library control screens in a live environ¬ you'll included objects I ED IT T| • STATIC : TEXT ment. and gen¬ k\ I TEXT 11 prototype erate code for [EDIT T| ; and generate Create a menu gU (TEXT 11 and connect ANSI C, C++ ■ exciting screens & dialogs for OWL or MFC e> applications or Pascal with faster than n [TAPE! License our technology to Test the applica¬ objects. It’s that 1 you ever create new code generators tion's screen (low In a live environment easy. Point-and-click to paint thought screens with bitmaps, And this icons, tables, data valida¬ possible! Fasten your seatbelt open! ProtoGen+ tion, custom colors, fonts, Instantly generate 3D effects, visual tool¬ for ProtoGen+! source code in will work with bars, status lines, balloon Pascal, C or C++ help, MDI and more! Only (list price _ your database, $395) compiler, $199 libraries and extensions. Powerful % - - add-on features, like SQLView offer 1 800 231-8588 Ask for Ext. 60 pRfmVmw In NJ, call (908) 329-8588 j&llil - 1 □ flie Visual Development Edge ProtoGen+'s SQLView access to multiple ™ databases is available at an additional price; ask about it when you call. Bring your applications to life using the latest All products named are trademarks of their visual design tools! respective companies. ©1993 ProtoView Development □ Request 197 on Reader Service Card □ Declare Your DBMS Independence Hivi ! Q + E Database Library 2 Use Q+E Database Library to All Development Tools High-level API Eliminotes the complex details Proven Technology of accessing and manipulating develop powerful client server Don't throw away your Employ the same technology data from multiple data used by Microsoft, Lotus, applications that work with existing development sources _ all major databases. environment just to gain Includes Over 20 Drivers Btrieve, DB2j, DB2/2, WordPerfect, Computer Q+E Database Library DBMS independence. dBASE, Excel, Associates, Borland, and IBM eliminates the complex details Q+E Database Library works HP AtLBASE /SOL to create their DBMS- HP IMAGE/SQL, INFORMIX, of accessing and manipulating with the tools you already independent applications. INGRES, Microsoft SQL Server, data from multiple data sources, have. It works with the macro, NetWare SQL, Orade, Don't take chances. Use the script, or programming Paradox, PROGRESS, industry's leading market- Code Once language of any application or SQL Base, $Ql/400t, proven technology. Put world-class applications in development tool, including SQL/DSt, Sybase SQL Server, CAi* your user's hands quickly by C, COBOL, Pascal and Teradatot, XDB & Text writing code once to access all Visual Basic. (] requites gateway) 800-876-3101 major databases. In record ODBC Compliance Enables ODBC application time, you can build an Cross Platform development Ouo* application that accesses Get consistent DBMS access Cross Platform Windows, Macintosh, UNIX, Order Q+E Database Library OS/2, Windows NT Oracle, dBASE, SQL Server, across all major operating today and discover the best Q+E Query Builder Allows users of your Paradox, DB2, or any other systems*. With Q+E Database application to create complex way to develop DBMS- database. You can even prototype Library, your ODBC-compliant SQL statements without independent client server and test with one DBMS and applications will run on all knowinq SQL applications. If after 30 days deliver against another. platforms--even those where Conversion Routines Convetsion between different you don't love it, return it for DBMS data types ODBC is not yet supported. a no-hassles refund. Data Dictionary Common data dictionary Odbc And Idapi functions for oil DBMS Q+E Database Library's high- Get The Job Done Find Functions Automates look-ups level API allows you to create Q+E Database Library comes QBE Easily create Query by with a complete set of database Example applications ODBC-compliant applications Q+E Database Library 2 applications can be in a fraction of the time it tools to help you get your job distributed royalty free. Distribution licenses are required for distribution of the Q+E database drivers. takes with the ODBC SDK. done faster. *Q+E Database Li bran,’ Version 2 is available for Windows today and will support OS/2, Macintosh, Future releases of Windows NT, and UNIX by the first quarter of 1994. Q+E Database Library will automatically make these same applications IDAPI-compatible. Why risk making the wrong choice between competing standards? Use Q+E Database Library and instantly get support for both ODBC and IDAPI. Software 5540 Centerview Drive • Suite 324 Raleigh, N.C. 27606 » 919 859-2220 Fax 919 859-9334 • 800 876-3101 In Europe: P.0. Box 84.034 • 3009 CA • Rotterdam, The Netherlands (31) 10 2202 022 * Fax (31) 10 4563 348 © 1993 Q+E Software. Q+E is a registered trademark of Q+E Software. Other brands and product names are the property of their respective owners. □ Request 228 on Reader Service Card □ Windows/DOS □ DEVELOPER S JOURNAL Multimedia Windows Multimedia, Part 1: Bitmap Special Effects.31 Multimedia effects can add pizzazz to your existing Windows application. One way to start adding multimedia to your program is to give your bitmaps motion. Rather than displaying < bitmaps in one fell swoop with BitBItQ, you can paint them with eye-catching algorithms that imply movement. This article supplies reusable code for two popular special effects: the crush and the diagonal display. Charles Mirho Features Dynamic-Link Device Drivers for DOS.19 DOS device drivers give your DOS program a degree of independence, but the user has to load them at boot time, where they take up precious conventional memory even when they are not being used. Thomas shows you how to create “dynalink device drivers" that provide device independence while offering DLL-style runtime flexibility. Thomas W. Nelson .mrb and .shg File Formats.37 Microsoft’s WinHelp introduced some proprietary bitmap file formats for handling hotspots and for coping with different display resolutions. Without detailed information on these new file formats, programmers have to depend on Microsoft for tools to edit and access the information the files contain. This article presents the first public documentation for the file formats generated by Microsoft’s hotspot editor and multiple-resolution bitmap compiler. Pete Davis Testing the Windows DOS Extender.47 Windows is, in part, a DOS extender. Every time your Windows application perofrms an INT 21 h (due to file I/O, for example), Windows has to copy the request to real-mode memory, get DOS to execute it, then move any resulting data back up to extended memory. But how complete a DOS extender is it? This article explores the answer to that question and provides a handy table that compares the DOS-extended environments of DOS, Windows 3.1, Windows NT, a 3.1 DOS box, and an NT DOS box. Walter Oney Product Spotlight Instant-C.73 Instant-C is an interactive tool for DOS programmers that provides an integrated, interactive environment for creating and debugging code. Unlike a traditional compiler, though, Instant-C provides incremental compilation — you can even change code while you are debugging. This article looks at the latest version of this distinctive tool for C programmers. Jeffrey L. Armbruster Columns Cover photo by William Lombardo Windows Questions and Answers. 7 © The Image Bank/William Lombardo 1990 Neil Sandlin provides a technique for breaking into infinite loops. Samuel Feldman asks how to customize the Choose Color dialog — which is not so simple due to poor documentation WINDOWS/DOS DEVELOPER’S JOURNAL (ISSN 1059-2407) is published monthly by R&D Publications, Inc., 1601 W. 23rd St.. Suite 200, Lawrence, KS 66046-2743, (913) 841-1631. Second-class postage paid at Lawrence, KS and additional mailing offices. POSTMASTER: Send address changes to WINDOWS/DOS DEVELOPER’S JOURNAL, 1601 W. 23rd SL, Suite 200, Lawrence, KS 66046-2743. Subscriptions: Annual renewable subscriptions to WINDOWS/DOS DEVELOPER’S JOURNAL are $29 US, $45 Canada and Mexico, $64 overseas. Payments must be made in US dollars. Make checks payable to Windows/DOS Developer’s Journal. GST (Canada): #129065819 Page 2 — Windows/DOS Developer's Journal February 1994 Windows"/ DOS February 1994 □ DEVELOPER'S JOURNAL Volume 5, Number 2 Advanced. Serious. Technical.