TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BJOERNAR JENSEN
from: CAMERON CLARK
date: 1997-12-09 13:44:00
subject: Re: absread()

BJ> But it is. Just like your example. #include 
BJ> 
> Also, make sure that your target is a dos application.
BJ> 
BJ> Done that, nothing wrong there.
    Then your parameters are not being typecaset correctly.
    int absread(int drive, int nsects, long lsect, void *buffer);
    You should use it like
****
    int int1, int2;
    long long1;
    char buffer[BUF_LEN];
    absread(int1, int2, long1, (void*) buffer);
    If you don't typecase your buffer as a (void*) then the
    parameters do not match - and the function is not instantiated.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)

SOURCE: echomail via exec-pc

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