TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Darin McBride
from: Phil Crown
date: 1996-09-04 10:36:42
subject: Window Title

-=> Quoting Darin McBride to Phil Crown <=- 

 DM> It won't be there.  You have to give it the prototype yourself. 
 DM> Further, it is Win16SetTitle, not WinSetTitle. 

 PC> APIRET16 APIENTRY16 WinSetTitle (HAB hab, PSZ title);

 DM> APIRET16 APIENTRY16 Win16SetTitle(HAB hab, PSZ title);
 
 DM> Win16SetTitle(0, argv[1]);
 PC>    return 0;

 DM> Borland seems to give problems unless you actually use return(0);  For
 DM> some reason, it needs the parenthesis - this will likely get rid of
 DM> the sys error... :-) 

oops... ok, I changed it to Win16SetTitle, but it still crashes with
sys1808, even using return(0).

I remember reading that BCOS2 has some serious thunking problems, I
think it was as in the OS/2 Compiler PROCONs FAQ by JdeBP.

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™.