From: "Matt Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: DJGPP and DataEase CDFs Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Sun, 28 Nov 1999 20:57:54 GMT NNTP-Posting-Host: 212.126.145.99 X-Complaints-To: abuse AT freeuk DOT net X-Trace: nnrp4.clara.net 943822674 212.126.145.99 (Sun, 28 Nov 1999 20:57:54 GMT) NNTP-Posting-Date: Sun, 28 Nov 1999 20:57:54 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I am having a bit of a problem that I'm hoping somebody out there can help me with. I am trying to create a Custom Defined Function for DataEase (Version 5, 16M edition). The DataEase manual tells me I can do this 'in any language which supports the use of far pointers and the pascal calling convention'. It goes on to give an example in Microsoft C. However, when I try to compile the example using DJGPP it gives me errors. It doesn't seem to like the bit that declares the function as using far pointers, or the pascal calling convention (ie. I declare the function using a line like 'double far pascal SomeFunction(int SomeVaribale, int SomeOtherVariable);' as shown in the manual, and DJGPP will not compile it unless I remove the 'far pascal' bit). So how do I declare a function like this in DJGPP? Is it in fact possible - I have had it suggested to me that waht I am trying to do is irrelevant as DJGPP is a 32-bit compiler and so far pointers do not apply, and because the pascal calling convention is not defined for ANSI C. If I can't achieve what I am trying to do using DJGPP, is there any other compiler which will allow me to do this? The manual also tells me that using Microsoft C I should use the compiler switch '-Alfu'. Can anybody tell me what the equivalent might be for DJGPP, if applicable. I had a look for it in the DJGPP docs (info gpp invoke) but as I'm not entirely sure what it does when used with the Microsoft C compiler I didn't get very far. TIA, Matt.