Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!udel!mmdf From: LIZAK98%SNYBUFVA.BITNET@cornellc.cit.cornell.edu (WE DISENGAGE--WE TURN THE PAGE) Newsgroups: comp.sys.amiga Subject: Mixing C with AmigaBASIC Message-ID: <13680@louie.udel.EDU> Date: 21 Apr 89 13:01:05 GMT Sender: mmdf@udel.EDU Lines: 40 Hello Amigoids! Thanks for all the help that you all graciously gave with my last C encounter. This one is little more specific to Amiga. My BBS program that I wrote within the last year is in 100% Amiga BASIC. I did rewrite the serial I/O into C, but an having a hell of time getting it to load. I know I have to load the ML code into an array and go from there... my loader looks something like this, the code may be a little different (I'm not at my machine right now.) Load: OPEN "bbs.io" FOR INPUT AS #1 LENML=LOF(1) FOR I=0 TO LENML/4+1:INPUT #1,A$ CODE%=CVI(A$):NEXT I:CLOSE 1 DumpText:? CALL CODE%(SADD"This should print but wont") RETURN The C code was compiled with Manx 3.6 and linked with the same package. Everytime I load it into the array and then call it, I get a software error, task held requestor. However this code will work from CLI. I can launch it from CLI like so: 1> BBS.IO "This should print but now does" This should print but now does 1> What is the problem? Can BASIC handle the command line args like I used (The CLI run of it shows that), or does BASIC automatically pass parameters without the need for using command line args? This one is really puzzling me... ----Rob Lizak Jr. Bitnet: LIZAK98@SNYBUFVA DECNet: BSCOLA::LIZAK98---- - Snailnet: 8 Bay Lane, Cheektowaga, NY 14225 - - :) :) AT&Tnet: (716)/685-3979 - ---- Programming: It's just not a job... it's an OBSESSION.. Ugh! ----