TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Nazar
from: Phil Crown
date: 1996-09-05 15:18:54
subject: Window Title

-=> Quoting Doug Nazar to Phil Crown <=- 

 DN> Hello Phil!

 DN> Tuesday September 03 1996 08:28, Phil Crown wrote to Doug Nazar:
 
 DN>> I did a little checking and could find no docs on WinSetTitle but
 DN>> found it in OS2386.LIB so I guessed at the prototype and voila!
 PC>                     ^^^
 PC> You mean os2286.lib?

 DN> No. I'm using a 32-bit compilier calling 16 bit functions. They are
 DN> referenced in os2386.lib.  os2286.lib is for 16 bit compiliers. 
 PC> Which compiler are you using?  I tried bcc and gcc, neither works.

Got it.  I was wondering what os2286.lib is for.

 DN> I was using IBM VAC++. However, I went back and did it with EMX. I
 DN> don't have borland so am unable to test anything. 
 
 DN> Here's how I did it with EMX.

 DN> gcc -Zomf test.c test.def

Your example compiles and executes perfectly under emx/gcc, after I
commented out this line:  #define USE_OS2_TOOLKIT_HEADERS

It still crashes under BCOS2.  It only crashes if I try give it a
command line parameter to set the title with.  I'll keep trying, but I'm
beginning to think it may be a Borland bug. .

Thanks for all your help! :-)

Phil
pcrown{at}airmail.net
http://web2.airmail.net/pcrown/


--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.