Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: output format Pin
Nick Parker29-Dec-02 16:44
protectorNick Parker29-Dec-02 16:44 
GeneralRe: output format Pin
markkuk29-Dec-02 7:20
markkuk29-Dec-02 7:20 
GeneralDrawObj! Pin
HellShrimp4free28-Dec-02 21:42
HellShrimp4free28-Dec-02 21:42 
GeneralFormat of time Pin
Shah Shehpori28-Dec-02 19:58
sussShah Shehpori28-Dec-02 19:58 
GeneralRe: Format of time Pin
Mike Danberg29-Dec-02 15:17
Mike Danberg29-Dec-02 15:17 
GeneralRe: Format of time Pin
Ravi Bhavnani29-Dec-02 16:51
professionalRavi Bhavnani29-Dec-02 16:51 
GeneralNorton style UI Pin
Anonymous28-Dec-02 17:08
Anonymous28-Dec-02 17:08 
QuestionProgram Filename and Executable? Pin
Aidman28-Dec-02 16:27
Aidman28-Dec-02 16:27 
Hi all, Wink | ;)

Is it possible for a program to get its own filename and path during run-time? Without calling the current directory function, because the current directory doesn’t necessarily have to be the same as the program directory. If so, then with what command or API function? Confused | :confused:

Let us presume a program already knows its own filename and path, either gotten it during run-time or has it as a constant. Now is it possible for the program to alter its own executable program file? I am sure that it won’t get write access but I can’t understand why, when the program is running from the memory it shouldn’t affect it-self during run-time and therefore shouldn’t affect the OS. Is there a function that could give access for altering an executed program file, that is or isn’t the calling programs own executable file? Confused | :confused:

Please forgive me for any typos... Blush | :O

Aidman » over and out
AnswerRe: Program Filename and Executable? Pin
Michael Dunn28-Dec-02 16:57
sitebuilderMichael Dunn28-Dec-02 16:57 
GeneralRe: Program Filename and Executable? Pin
Aidman28-Dec-02 18:17
Aidman28-Dec-02 18:17 
GeneralRe: Program Filename and Executable? Pin
Ted Ferenc28-Dec-02 21:53
Ted Ferenc28-Dec-02 21:53 
GeneralRe: Program Filename and Executable? Pin
Aidman29-Dec-02 2:50
Aidman29-Dec-02 2:50 
GeneralRe: Program Filename and Executable? Pin
Ted Ferenc29-Dec-02 3:23
Ted Ferenc29-Dec-02 3:23 
GeneralRe: Program Filename and Executable? Pin
Dominik Reichl29-Dec-02 5:16
Dominik Reichl29-Dec-02 5:16 
GeneralThanks! Pin
Aidman29-Dec-02 12:19
Aidman29-Dec-02 12:19 
AnswerRe: Program Filename and Executable? Pin
(Steven Hicks)n+129-Dec-02 16:19
(Steven Hicks)n+129-Dec-02 16:19 
GeneralChooseColor unhandled exception :( Pin
haust28-Dec-02 12:32
haust28-Dec-02 12:32 
GeneralRe: ChooseColor unhandled exception :( Pin
haust28-Dec-02 12:45
haust28-Dec-02 12:45 
QuestionWindows Explorer CListCtrl? Pin
Steven M Hunt28-Dec-02 11:39
Steven M Hunt28-Dec-02 11:39 
AnswerRe: Windows Explorer CListCtrl? Pin
Iain Clarke, Warrior Programmer28-Dec-02 13:34
Iain Clarke, Warrior Programmer28-Dec-02 13:34 
AnswerRe: Windows Explorer CListCtrl? Pin
Iain Clarke, Warrior Programmer28-Dec-02 14:12
Iain Clarke, Warrior Programmer28-Dec-02 14:12 
GeneralTab Controls Pin
georgiek5028-Dec-02 11:10
georgiek5028-Dec-02 11:10 
GeneralRe: Tab Controls Pin
Iain Clarke, Warrior Programmer28-Dec-02 13:41
Iain Clarke, Warrior Programmer28-Dec-02 13:41 
GeneralRe: Tab Controls Pin
georgiek5028-Dec-02 23:01
georgiek5028-Dec-02 23:01 
GeneralWizard97 (CPropertySheetEx) in a DLL Pin
Anonymous28-Dec-02 8:26
Anonymous28-Dec-02 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.