|
Use CopyFile() to copy the exe to a certain location and then use ShellExecute()
Didn't get you on this.system tray
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
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,
LPCTSTR lpNewFileName,
BOOL bFailIfExists
);
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.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: What does the title and the question have in commen???
May be because all the characters in "System Tray" are used in his question.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Your question is about CopyFile/ShellExecute(AnShUmAn answered to you) but if you need to info about system tray see here[^]
|
|
|
|
|
Hi all
When I try to run a exe which is a gSOAP client I get an error
"program too big to fit in memory" . What is the reason ? A search in google says RAM size could be small , pagefile big etc. I have 1GB RAM , Windows XP SP2
Anyone help me pls ?
redindian
|
|
|
|
|
Can you more explain about your program.
|
|
|
|
|
Being that this is a rather rare error, my first guess would be that the EXE is corrupted somehow (or was built with some seriously messed up linker options). Unless you have an EXE file that is larger than 2GB, that is...
If it is a .NET application, it might have something to do with your .NET runtime/installation...?
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
hi all,
i created dll using vc++. it succesfully compiled.
but while registering i am getting error like
Library(path )
Failed - Invalid access to memory location.
so please help me for rectify this error.this is very argent
praveen Rao
|
|
|
|
|
You're missing a semicolon on line 427.
Or, in the real world, having code that compiles means it's syntactically correct, but doesn't mean it's not full of bugs. You need to work out what line is causing the error, and fix it, or post it here if you want meaningful help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: You're missing a semicolon on line 427.
:->
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Christian Graus wrote: You're missing a semicolon on line 427
|
|
|
|
|
Hi all,
I want some help in setting the tab order for controls in a dialog.
The scenario is like in the main dialog i have a tab control and 4 buttons.
In the tab control i have added dialogs.
When the main dialog is opened the focus should be on the tab control. Next it should go to the other buttons.
I have given the tab order normally giving one for the tab control. But the
when i open the dialog the focus is not the tab control it is on the next button i.e the one which is set to 2..
Can u please suggest me...
Thank U
|
|
|
|
|
In the Dialog-Editor, press CTRL-D and then click the control in the order you want them to be tab-ordered.
The Menu-entry in the dialog-editor is Format/Tab Order
Both is for VC2003 and VC6. I dont know if they have changed it in VC2005.
Failure is not an option - it's built right in.
|
|
|
|
|
Ya, I have given in the same way.Here it has to switch between 2 dialogs.
i.e the dialog in the tab control and the main dialog in which the tab control is present.
The focus not going onto the tab control..
|
|
|
|
|
The tab control needs the Tabstop style on it, and then you will be able to focus and navigate the tabs using the keyboard.
Note that, IMHO, this is rather non-standard GUI behavior, and some users may not expect focus to remain on the tab control.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
i am creating a dialog using win 32 application as i code everything. Now, the problem is that i am getting an the following error during linking in my resource file despite the fact that compilation was successful
C:\Program Files\Microsoft Visual Studio\MyProjects\dial\ids.h(4) : fatal error RC1004: unexpected end of file found
Below is my entire resource file:
#define IDC_NUMBER 2000
#define IDC_ADD 2001
#define IDC_TOTAL 2002
#define IDC_CLEAR 2003
Thanks in advance
-- modified at 4:51 Friday 11th May, 2007
TreeS
|
|
|
|
|
Is there a return after the last line (i.e., a blank line)?
Tip: go to MSDN and enter RC1004 in the search box.
|
|
|
|
|
Wamuti wrote: ...i am getting an the following error during linking...
No, you are receiving the error from the preprocessor.
Does your ids.h file have a trailing CR/LF pair?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Firstly, thanks a million fold++;). But please explain to me what a CR/LF pair is , maybe the effect and how to correct. I will really appreciate.i've been away for a while . Thanks in advance.
TreeS
|
|
|
|
|
Wamuti wrote: But please explain to me what a CR/LF pair is
Carriage Return/Line Feed.
Wamuti wrote: ...and how to correct.
Go to the very end of the file and press the Enter/Return key.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Allow me to be unprofessional for a second: Thanks sooooooooooooooooooo so much!! It worked so, no one is going to get fired!! I'm so amazed i didn't know of such a thing about CR/LF trails. Thanks so much. You are A++++++++++++++++++++++++!
TreeS
|
|
|
|
|
I got this error from command prompt
DOS/16M: [2] not a DOS/16M executable 'C:\ASMM77\ASMM77.EXE'
How i can solve this error?
Thank You.
|
|
|
|
|
TooLeeDiN wrote: I got this error from command prompt
Doing what exactly?
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Sounds like a problem with the executable's (PE) header to me...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
there is a problem about CSocket in multithread programing.
I have a class inherited from CWinThread.In the main program, I post a thread message to the thread class member(CMyThread object for example)to start a thread.I have create and block a socket object(Accept function).
When I want to end the main program,I want to end the thread ture.Whether I use CancelBlockingCall or not,there would be an assert occured.From the message ,I know,it asserted in sockcore.cpp at line 337:ASSERT(pState->m_hSocketWindow != NULL);
Why? someone would help me!Thanks
|
|
|
|