
Running as .EXE or running in VB Design Environment
This is a multi-part message in MIME format.
------=_NextPart_000_01BC4C24.A1EE1680
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Compiled EXE??
Try using the GetModuleFileNameA API call. This should return VB's =
executable if your app isn't compiled, and will return your own app's =
filename if it is.
--
-- Ben
SiteBuilder Network Level 2
Ben's VB5 Page -- This site has been Activated!
http://www.{*filter*}highway.com/~psy/
Requires IE3.01 or higher...
=20
Dr. Kai Ewald wrote in article =
Hi VBP's,
how can I detect if my program is started as an .EXE file or is =
running in
VB4 design environment??? I've read that "app.exename" returns =
different
names in both cases, but this seems not to be correct (or I =
misunderstood
the readings).
Has anyone other tips to distinguish between this two cases?
=20
=20
------=_NextPart_000_01BC4C24.A1EE1680
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"Trident 4.71.0544.0"' name=3DGENERATOR>
</HEAD>
<BODY background=3Dhttp://www.{*filter*}highway.com/~psy/PaperBar.gif>
<P><FONT face=3DArial size=3D2><FONT face=3D"Arial Black"><FONT =
size=3D+3>Compiled=20
EXE??</FONT></FONT></FONT>
<BLOCKQUOTE>
<P><FONT face=3DArial size=3D2>Try using the GetModuleFileNameA API =
call. This=20
should return VB's executable if your app isn't compiled, and will =
return=20
your own app's filename if it is.<BR>
--<BR>
<HTML><BODY><FONT size=3D2>-- Ben<BR>
SiteBuilder Network Level 2<BR>
Ben's VB5 Page -- This site has been Activated!<BR>
<A=20
=
href=3D"http://www.{*filter*}highway.com/~psy/">http://www.{*filter*}highway.com/~p=
sy/</A><BR>
Requires IE3.01 or higher...<BR>
</FONT></FONT>
=20
<P><EM><FONT color=3D#808080 face=3DArial size=3D2> Dr. Kai=20
<HTML><BODY>Hi VBP's,<BR>
how can I detect if my program is started as an .EXE file or is =
running=20
in<BR>
VB4 design environment??? I've read that "app.exename" =
returns=20
different<BR>
names in both cases, but this seems not to be correct (or I=20
misunderstood<BR>
the readings).<BR>
Has anyone other tips to distinguish between this two cases?<BR>
</FONT></EM></P>
=20
</BLOCKQUOTE>
</BODY></HTML>
------=_NextPart_000_01BC4C24.A1EE1680--