🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: pathname

#554
From: Chris GUZAK
Date: Sat, 10 Nov 1990 00:19
10 lines
726 bytes
In article <0A541F131D9F40032C@njord.fek.su.se> BLI@fek.su.se (Bengt Lindstr|m) writes:
>.. needs to
>know our programs pathname at runtime. 

GetModuleFileName() will do the trick.

You may have to GetModuleHandle() on yourself, or perhaps you can pass
your hInst as well... (david?)

Chris Guzak
Technical Details
Message-ID: <58959@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!microsoft!chrisg
References: <0A541F131D9F40032C@njord.fek.su.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!microsoft!chrisg
From: chrisg@microsoft.UUCP (Chris GUZAK)
Newsgroups: comp.windows.ms.programmer
Subject: Re: pathname
Message-ID: <58959@microsoft.UUCP>
Date: 10 Nov 90 00:19:50 GMT
References: <0A541F131D9F40032C@njord.fek.su.se>
Reply-To: chrisg@microsoft.UUCP (Chris GUZAK)
Organization: Microsoft Corp., Redmond WA
Lines: 10