🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1323

Re: Having an EXE and DLL of the same name

#1323
From: Nathan Berg
Date: Thu, 14 Feb 1991 01:31
20 lines
1446 bytes
>I'm probably missing something really obvious here.  I have a program
>which requires a DLL to go along with it.   I'd like to have them named
>the same (e.g. XYZPROG.EXE and XYZPROG.DLL).  The problem is that when
>I try to declare an import function from the DLL in the DEF for the EXE,
>link complains about a "self-import," thinking the EXE is trying to import
>from itself.
>
>I'd really prefer not to have to import the functions explicitly.  Is
>there some simple way around this problem?  Thanks in advance.
>
set the 'NAME' field in your DLL .DEF file to a different value than the
'NAME' field in your program's .DEF file...
Regards,
Nathan
-------------
Nathan Berg                              Measurement Systems Operation R&D Lab
nathan_berg@hpisla.lvld.hp.com           Hewlett-Packard, CU-325
[ihnp4|hplabs]!hpislx!nate               815 14th Street Southwest
(303) 679-2424                           P.O. Box 301
FAX (303) 679-5957                       Loveland, CO  80537  USA
Technical Details
Message-ID: <16270001@hplvec.LVLD.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpfcso!hplvec!nate
References: <7134@hsv3.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpfcso!hplvec!nate
From: nate@hplvec.LVLD.HP.COM (Nathan Berg)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Having an EXE and DLL of the same name
Message-ID: <16270001@hplvec.LVLD.HP.COM>
Date: 14 Feb 91 01:31:37 GMT
References: <7134@hsv3.UUCP>
Organization: Hewlett-Packard Co., Loveland, CO
Lines: 20