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.


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to