- How do I get the name of the current program?
How do I get the name of the current program?
Use GetModuleFileName with NULL as the first parameter. For example:
char szMe[MAX_PATH]; GetModuleFileName(NULL, szMe, sizeof(szMe));
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.