From owner-freebsd-hardware@FreeBSD.ORG Tue Nov 18 10:07:12 2003 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AAFC16A4CE for ; Tue, 18 Nov 2003 10:07:12 -0800 (PST) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CDDC443F3F for ; Tue, 18 Nov 2003 10:07:10 -0800 (PST) (envelope-from dguha1@gmx.de) Received: (qmail 1691 invoked by uid 0); 18 Nov 2003 18:07:09 -0000 Received: from 128.253.38.63 by www56.gmx.net with HTTP; Tue, 18 Nov 2003 19:07:09 +0100 (MET) Date: Tue, 18 Nov 2003 19:07:09 +0100 (MET) From: "Dip Guha" To: freebsd-hardware@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #19482560 Message-ID: <14554.1069178829@www56.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Question about RS232 interfacing X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 18:07:12 -0000 Hello All, I am new to this list and am not sure if this is the right place to ask this question. Nonetheless, I am sure that you computer gurus can provide me some pointers. What I am trying to do is this: I have a camera shutter driver that is connected to COM1 port and a camera image processing unit that is connected to the parallel (printer) port. I am interested to control the driver and the image processing unit by writing a program in a PC that is used as a controller. The PC has Windows 98 installed in it, and I am using a Turbo C++ 7.0 compiler. While compiling the program, I am getting an error in dos.h which states that the following are wrong: void _Cdecl setvect (int interruptno, void interrupt (*isr()); -> This says function definition out of place void interrupt (*_Cdecl getvect(int interruptno)) (); -> the same error here as well. I am not sure what exactly the problem is, though I suspect a compiler mismatch. Can any one of you please let me know what I could do to rectify this error? Or perhaps provide me some help (or an alternative link) so that I could get the program working. Thanks a lot in advance! Dip -- GMX Weihnachts-Special: Seychellen-Traumreise zu gewinnen! Rentier entlaufen. Finden Sie Rudolph! Als Belohnung winken tolle Preise. http://www.gmx.net/de/cgi/specialmail/ +++ GMX - die erste Adresse für Mail, Message, More! +++