TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Henk den Adel
date: 1995-06-25 15:46:18
subject: Using Info-Zip in Programs.

Hi Peter,

You wrote to Rob Landley:

 PF> All I did was rename main() to lh2main(),  and put the code in a dll --so
 PF> you set up an 'int argc, char *argv[]' and call it,  and it returns
 PF> success/failure.

Is this procedure a general feature? 

Suppose I have the source code of a program which converts file A to B via:

do_it a.out b.psc

If i rename main(int argc, char *argv[]) into tric_main(etc) and compile it
into a DE_MIJNE.DLL, is this program available to other programs just by
calling: tric_main(2, myargs) or do I miss some vital point?



73 es cuagn,
 Henk

--- The-Box Point 0.15+ PC
* Origin: -. Deze . heeft een - voor (2:286/401.26)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 286/4 10 280/801 283/512 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/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™.