[Tutor] Problem with converting Python to EXE using py2exe
Dave Angel
davea at ieee.org
Sun Apr 12 03:09:12 CEST 2009
Dave Angel wrote:
> <snip>
> In C++, you wouldn't want the full path to the source file, but the full
> path to the .EXE file. That can be gotten in Windows, by using
> GetModuleHandle(0), and some other function on that handle. Sorry I
> don't remember the name of the second function, but I haven't done any
> C++ work in a few years. It might have a name like
> GetModuleXXXXX(handle). Anyway, that's the technique I used in that
> environment. To me, if it's possible to avoid an install entirely, I'm
> in favor.
>
>
*GetModuleFileName*() is the function I was trying to remember.
More information about the Tutor
mailing list