TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: JAMES GOLDBLOOM
from: JOSE MEJUTO
date: 1995-07-09 19:57:00
subject: LIBRARIES

05 Jul 95 17:34, James Goldbloom escrib¡a a All:
Hola James!
 JG> I've been messing around with various libraries...
 JG> Is it true (from what I see from the PB help screen) that "C"
 JG> libraries can be integrated cleanly into PB?
 That's true +/-. You can link functions that are in 'C' libraries, but you 
_must_ extract they from the .lib to an .obj before you try to use them. Many 
functions can't be full extracted because you must extract the function, and 
all function that this function calls ( confused ? me too :-) ).
 JG> I think this has something to do with the $link and $alias
 JG> commands...
 Yes.
 JG> but just to summ up, how about linking in the standard C
 JG> procedure PUTSCREEN (x,y,x1,y1,array) for example?
 What ? I don't known PUSCREEN function :-?
 JG> What precautions and guidelines should I follow if this is
 JG> permissable?
 You may avoid the use of 'C' functions, expecially complex functions like 
'printf', 'scanf', etc. Use 'C' functions to do hard work that need a lot of 
computing speed over a block of data; like computing CRCs, mixing data, etc. 
To avoid problems don't use 'C' functions and bigger data structures that can 
fill your stack.
 JG> I will declare all procedures, naturally, before execution.
 ;-)
 Ops! you must $LINK all .OBJs that your 'C' function uses.
Saludotes,
       ,,,   JOS (2:348/102)
      `0-0'  jmejuto@encomix.com
     /-(_)-\ mejuto@sfdzuma.usc.es
--- FD2.12+ & GoldED2.50+ & FE141+
---------------
* Origin: -=EDI=BBS=- 19k2 //ZyXEL// Santiago //+34-81-502110 (2:348/102)

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