Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to define preprocessor string in command line? Pin
marmooooo11-May-07 0:09
marmooooo11-May-07 0:09 
AnswerRe: how to define preprocessor string in command line? Pin
CPallini11-May-07 0:45
mveCPallini11-May-07 0:45 
QuestionHow to set a timer Pin
S.shashank10-May-07 23:44
S.shashank10-May-07 23:44 
AnswerRe: How to set a timer Pin
Arman S.10-May-07 23:54
Arman S.10-May-07 23:54 
AnswerRe: How to set a timer Pin
Hamid_RT11-May-07 0:05
Hamid_RT11-May-07 0:05 
Questionsystem tray Pin
deeps_cute10-May-07 23:34
deeps_cute10-May-07 23:34 
AnswerRe: system tray Pin
_AnsHUMAN_ 10-May-07 23:46
_AnsHUMAN_ 10-May-07 23:46 
AnswerRe: system tray Pin
Programm3r11-May-07 0:09
Programm3r11-May-07 0:09 
deeps_cute wrote:
system tray


deeps_cute wrote:
hi i have to copy an exe to a specified path when a button is clicked and then have to run the exe automatically. how to do this


What does the title and the question have in commen???

Copy a file (any extension)

CopyFile
The CopyFile function copies an existing file to a new file.
BOOL CopyFile(
  LPCTSTR lpExistingFileName,
                          // pointer to name of an existing file
  LPCTSTR lpNewFileName,  // pointer to filename to copy to
  BOOL bFailIfExists      // flag for operation if file exists
);


ShellExecute
Opens or prints a specified file.
HINSTANCE ShellExecute(
    HWND hwnd, 
    LPCTSTR lpOperation,
    LPCTSTR lpFile, 
    LPCTSTR lpParameters, 
    LPCTSTR lpDirectory,
    INT nShowCmd
);	
</code>


MSDN these functions .....

Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

GeneralRe: system tray Pin
_AnsHUMAN_ 11-May-07 1:01
_AnsHUMAN_ 11-May-07 1:01 
AnswerRe: system tray Pin
Hamid_RT11-May-07 0:15
Hamid_RT11-May-07 0:15 
Questionprogram too big to fit in memory Pin
dharani10-May-07 23:19
dharani10-May-07 23:19 
AnswerRe: program too big to fit in memory Pin
Hamid_RT11-May-07 0:15
Hamid_RT11-May-07 0:15 
AnswerRe: program too big to fit in memory Pin
James R. Twine11-May-07 1:40
James R. Twine11-May-07 1:40 
QuestionInvalid access to memory location in dll Pin
ggdfgdfg10-May-07 22:59
ggdfgdfg10-May-07 22:59 
AnswerRe: Invalid access to memory location in dll Pin
Christian Graus10-May-07 23:14
protectorChristian Graus10-May-07 23:14 
GeneralRe: Invalid access to memory location in dll Pin
_AnsHUMAN_ 10-May-07 23:19
_AnsHUMAN_ 10-May-07 23:19 
GeneralRe: Invalid access to memory location in dll Pin
Hamid_RT11-May-07 0:19
Hamid_RT11-May-07 0:19 
QuestionTab order Pin
sireesha_sree10-May-07 22:34
sireesha_sree10-May-07 22:34 
AnswerRe: Tab order Pin
jhwurmbach10-May-07 22:52
jhwurmbach10-May-07 22:52 
GeneralRe: Tab order Pin
sireesha_sree10-May-07 23:18
sireesha_sree10-May-07 23:18 
GeneralRe: Tab order Pin
James R. Twine11-May-07 1:48
James R. Twine11-May-07 1:48 
Questionunexpected end of file found [modified] Pin
Wamuti10-May-07 22:30
Wamuti10-May-07 22:30 
AnswerRe: unexpected end of file found Pin
Hans Dietrich10-May-07 22:43
mentorHans Dietrich10-May-07 22:43 
QuestionRe: unexpected end of file found Pin
David Crow11-May-07 3:02
David Crow11-May-07 3:02 
QuestionRe: unexpected end of file found Pin
Wamuti12-May-07 5:40
Wamuti12-May-07 5:40 

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.