Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!philapd!ssp2!mbrands From: mbrands@idca.tds.PHILIPS.nl (Manfred Brands) Newsgroups: comp.sys.ibm.pc Subject: Re: External variables using Microsoft C and MASM Summary: Case Sensitivity Message-ID: <165@ssp2.idca.tds.philips.nl> Date: 3 Nov 88 14:39:46 GMT References: <142@ultb.UUCP> Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 30 In article <142@ultb.UUCP>, pad3563@ultb.UUCP (P.A. Deupree ) writes: > I've recently been trying to figure out how to interface between Microsoft C > and Microsoft Macro Assembler and I'm having a few problems. > [stuff deleted] > > I've written stuff and gotten it to successfully link up as far as external > function and procedure calls go. The C program can find the assembly procedures > and the Assembly program can find the C procedures. > > [stuff deleted] I have tried to reach you by email, but the mail was returned to me, so I'll post it here. In reply to your article in comp.sys.ibm.pc: To access external routines from assembler in C you have to declare them as PUBLIC (e.g. PUBLIC _AsmRoutine). To use C routines in ASM it is sufficient to declare them as EXTRN (they must not be static in C of course). Besides that MASM is NOT case sensitive by default (C is). MASM converts all input to UPPER CASE. To make MASM case sensitive, use the /Mx option. This should solve your first problem. P.S. I have no experience with mice. Manfred Brands Philips Apeldoorn.