TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rob Hamilton
from: Leif Braeuer
date: 1994-07-23 01:34:48
subject: RE: Anyone using UPM APIs???

Hello Rob,

 RH>  #include 
 RH>  #define  INCL_32
 RH>  #include 
 RH>  #include 
 RH>  VOID main(INT argc, PCHAR argv[])
 RH>       {
 RH>       CHAR   UserId[UPM_UIDLEN];
 RH>       USHORT UserType;
 RH>       SHORT  rc;
 RH>       memset(&UserId, 0, UPM_UIDLEN);
 RH>       UserType = 0;
 RH>       rc = upmelocl(UserId, &UserType);
 RH>       }

 RH> I know the parameter specifications are correct for upmelocl, as they
 RH> worked for upmelocu and upmeulgf, and the routines are defined
 RH> exactly the same.  I checked, and there is a #pragma linkage saying
 RH> that upmelocl is far16 and pascal.  I'm bewildered (etc.) that
 RH> upmelocl doesn't work, but upmelocu and upmeulgf DO.  Sign me

I compiled your program, and as expected: IT WORKED

Here is my MAKE batch:

{at}ECHO OFF
if "%1" == "" GOTO NOFILE
ICC.EXE /DINCL_32 /DINCL_DOS /Ti+ /Sm /Sp2 /Ss /Q /Gh /Gs /Gt+ /C+ .\%1.C
IF ERRORLEVEL 1 GOTO :END
link386  /ST:64000 /NOL /debug /NOI %1,,,UPM;
GOTO :END
:NOFILE
ECHO.
ECHO No input file specified!
ECHO Enter: MAKE [whichfile]
:END


Leif [Team OS/2]

--- FleetStreet 0.89wb

* Origin: OS/2 What else? (2:240/5200.13)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 240/5200 5002 5500 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808
@PATH: 711/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™.