Article View: comp.os.os2.programmer.tools
Article #33Re: Hey VA C++ Phreaks [sic] :-) A book for VA C++
From: Bruce J. Lontka
Date: Mon, 09 Feb 1998 00:00
Date: Mon, 09 Feb 1998 00:00
77 lines
3921 bytes
3921 bytes
Mark Framness wrote: > > Hey Phreaks! > > What is a good book on using Visual Age C++ for OS/2? The manuals and online > help restrict their attentions to functionality only. I mean they tell you > how to use something but very little on why to use something. An example of > this is in the compile settings. You click on help and it just says click on > the desired option to activate or deactivate it. It assumes you already know > exactly what the setting does (good for veterans of the OS/2 Wars, but for > rookies not good at all). > > I see for any sort of OS/2 PM/WPS project you should be working with make > files, rc files, h files, lib files, hpp files (oh yeah and isn't there > something called a cpp file?) etc. I understand the concept of these files > but can find little information that can help me understand how make files are > created in VA C++. Sure there is makemake but I look at the options and no > comprendho. > > I look at the hello world examples included with the package but I can find > very little information about what they are doing. An example of this is in > the third version of the Hello World application. They have the rc file with > the strings and then the string references are macro defined to hex numbers in > an h file. > > #define STR_HELLO 0x1200 //Hello World string ID V2 > #define STR_INFO 0x1220 //Inactive text string ID V2 > #define STR_CENTER 0x1230 //Center alignment status string ID V3 > #define STR_LEFT 0x1231 //Left alignment status string ID V3 > #define STR_RIGHT 0x1232 //Right alignment status string ID V3 > > Now what are the hex numbers? I added another menu to this app and figured > out that I had to define the references to the menu items in a similar fashion > and all I did was to add 1 to the previous number. When I made the file the > menu I added came up nicely (though it had no functionality to it). > > If I were to author an application from scratch how would I come up with the > numbers? > > e.g. > #define STR_BOLD 0x4242 //whatever > > Would the above be acceptable? I just dreamt up the number from 42 the > answer! ;-) > > Thanks > > Take Care! > > postmaster@[127.0.0.1] > Spam booby trap!!! > > FROM: Mark Allen Framness > HOME: framness@.NO_SPAM.EMIRATES.NET.AE > WORK: m477@NO_SPAM.ugru.uaeu.ac.ae > HTTP: http://netnet.net/~farmer/index.html > > URL for comp.lang.c NG: http://www.eskimo.com/~scs/C-faq/top.html > > To reply via e-mail, delete the given reply to address and delete the NO_SPAM > from the above addresses. > & > All standard disclaimers apply. Anyone who says otherwise is itching for a > fight. An excellent text with real world examples and many "tricks of the trade" is: "Visual Age for C++" , Nilsson and Jakab, Prentice Hall 1996, ISBN 0-13-614322-9 Covers OS/2 and WinNT versions of VAC++. Bruce Lontka Senior Technical Fellow Cerberus Pyrotronics
Technical Details
Message-ID:
<34DF8CB0.6A59@ibm.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6bfmdv$7oi@ws1.emirates.net.ae>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,741f5350355302c4 X-Google-Attributes: gid1044c2,public X-Google-Thread: 1049cc,741f5350355302c4 X-Google-Attributes: gid1049cc,public X-Google-Thread: 10cd94,741f5350355302c4 X-Google-Attributes: gid10cd94,public X-Google-Thread: fecf8,741f5350355302c4 X-Google-Attributes: gidfecf8,public From: "Bruce J. Lontka" <blontka@ibm.net> Subject: Re: Hey VA C++ Phreaks [sic] :-) A book for VA C++ Date: 1998/02/09 Message-ID: <34DF8CB0.6A59@ibm.net> X-Deja-AN: 323563118 Content-Transfer-Encoding: 7bit References: <6bfmdv$7oi@ws1.emirates.net.ae> MIME-Version: 1.0 Reply-To: blontka@ibm.net Content-Type: text/plain; charset=us-ascii Organization: IBM.NET Newsgroups: comp.os.os2.programmer.tools,bit.listserv.os2-l,comp.os.os2.misc,comp.os.os2.programmer.oop