TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Craig Reynolds
date: 1995-10-11 00:48:48
subject: Making a PM Window

Hello All!

I am unsuccessfully trying to make a simple 'Hello World' style window in PM
using emx.  So far, all my efforts have been for nought, as I cant get emx
to compile it.


#include 
main()
{
    int x0,y0,x1,y1,border,battr,wattr;
    char *wh;

    x0 = 100;
    x1 = 500;
    y0 = 50;
    y1 = 300;
    border = 1;
    battr = 1;
    wattr = 1;

    wm_init(1);

    wh = wm_create (x0, y0, x1,  y1,  border,  battr, wattr);

    wm_open(wh);

}

Well thats the code, the exact errors  emx spits out are:

hellopm.c: In function `main':
hellopm.c:19: warning: assignment from incompatible pointer type
hellopm.c:21: warning: passing arg 1 of `wm_open' from incompatible pointer type
.\ccc00110: Undefined symbol _wm_init referenced from text segment
.\ccc00110: Undefined symbol _wm_create referenced from text segment
.\ccc00110: Undefined symbol _wm_open referenced from text segment

To me, a novice at C programming, this dosent mean very much.
It took me ten minutes to get a HW window in Windows, so far around 3 hrs in Warp.

Cheers, Craig

--- GoldED/2 2.42.G0615
* Origin: Penthouse Retreat II - (***) ***-**** (3:770/115.1)
SEEN-BY: 620/243 622/407 623/630 632/339 640/705 690/347 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 955 712/515 713/888 770/115 116 135 155 190 340
SEEN-BY: 770/505 510 771/1320 772/20 135 350 380 555 774/605 800/1 7877/2809
@PATH: 770/115 772/20 711/955 808 809 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™.