Thread View: alt.lang.basic
2 messages
2 total messages
Started by Gabriel Landini
Thu, 12 Nov 1992 11:21
Calling QuickC from QuickBasic
Author: Gabriel Landini
Date: Thu, 12 Nov 1992 11:21
Date: Thu, 12 Nov 1992 11:21
11 lines
842 bytes
842 bytes
I am trying to pass the control from QUickBasic to QuickC for handling pixels and calculations (some image processing). However, Do I have to set up the C subroutine to a screen mode or it is kept from the QBasic mode? Help Gabriel Landini Oral Pathology Unit, School of Dentistry, Birmingham University. St. Chad's Queensway, Birmingham B4 6NN. U.K. Tel: +44 (0)21 2368611 ext. 5874 Fax: +44 (0)21 6258815 e-mail: G.Landini@bham.ac.uk
Re: Calling QuickC from QuickBasic
Author: Tom Boutell
Date: Thu, 19 Nov 1992 18:55
Date: Thu, 19 Nov 1992 18:55
28 lines
1201 bytes
1201 bytes
My mailer didn't know you. Here we go again:
Interesting situation. Your problem is making sure that C and Quickbasic
both "know" what mode you're in so they'll execute the right code for
the mode. A cheap nasty solution:
At the beginning, when you set the graphics mode, do it in both:
SCREEN N (in Quickbasic; clears the screen and sets graphics mode
so your code will know about it)
call croutine()
void croutine() {
_setupvideo(...same mode for Quick C...);
}
So the screen gets cleared twice, which is a waste but not noticeable if it
only happens when the program first starts up, and now both libraries
think they're in the same mode.
-T
--
Tom Boutell, boutell@cshl.org
Clausthaler is the best non - alcoholic beer in the known universe.
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