Jump to content

WinSetTitle.c - Example code: Difference between revisions

From EDM2
Created page with " <PRE> #define INCL_BASE #include <os2.h> #include <conio.h> APIRET16 APIENTRY16 WinSetTitle ( PSZ szTitle ) ; void main ( void ) { WinSetTitle ( "Test of WinSetTitle..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
<code>
#define INCL_BASE
#include <os2.h>
#include <conio.h>
APIRET16 APIENTRY16 WinSetTitle (PSZ szTitle);
void main(void) {


<PRE>
   WinSetTitle("Test of WinSetTitle");
 
 
   getch();
#define INCL_BASE
}
#include <os2.h>
</code>
 
#include <conio.h>
 
APIRET16 APIENTRY16 WinSetTitle ( PSZ szTitle ) ;
 
void main ( void ) {
 
   WinSetTitle ( "Test of WinSetTitle" ) ;
 
   getch ( ) ;
}
 
 
</PRE>
 


[[Category:The OS/2 API Project]]
[[Category:The OS/2 API Project]]

Revision as of 21:37, 26 July 2017

#define INCL_BASE
#include <os2.h>
#include <conio.h>

APIRET16 APIENTRY16 WinSetTitle (PSZ szTitle);

void main(void) {
  WinSetTitle("Test of WinSetTitle");

  getch();
}