Thread View: comp.os.msdos.programmer
1 messages
1 total messages
Started by CARDIOLOGY, R.M.H.
Fri, 17 Aug 1990 04:36
Clipper '87 and Turbo C problem
Author: CARDIOLOGY, R.M.H.
Date: Fri, 17 Aug 1990 04:36
Date: Fri, 17 Aug 1990 04:36
53 lines
1621 bytes
1621 bytes
Are there any particular problems with linking Turbo C with Summer '87
Clipper, apart from using large memory model. After calling a Turbo C routine
in the procedure start, the following piece of code will run...
do start
seek user
if found()
if file(alltrim(maildir)+"\*.new")
? cr && The program crashs without this line.
tone(150,8)
tone(130,10)
wait "You have electronic mail, do you want to read it? (Y/N) " to answer
? cr
if answer$"YyTtGgHhJjUu&7^6%5"
do newmail
endif
endif
endif
..but this piece...
do start
seek user
if found()
if file(alltrim(maildir)+"\*.new")
tone(150,8)
tone(130,10)
wait "You have electronic mail, do you want to read it? (Y/N) " to answer
? cr
if answer$"YyTtGgHhJjUu&7^6%5"
do newmail
endif
endif
endif
.. will crash before giving the tone if the file() function evaluates true.
There _appear_ to be no problems at any point later with the write statement
in, but I have grave concerns about giving the program to users.
The second routine ran fine without the Turbo C routines.
Any ideas anyone?
Thanks,
Peter Summers
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads