Hi,
I want to execute an Exe file in minimize mode. but when i m trying the
following
SHELLEXECUTEINFO lpExecInfo;
memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
lpExecInfo.lpFile = _T("\\Program
Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe");
lpExecInfo.lpParameters = _T("");
lpExecInfo.lpDirectory = _T("");
lpExecInfo.lpVerb = _T("open");
lpExecInfo.nShow = SW_MINIMIZE;
lpExecInfo.fMask = 0;
lpExecInfo.hwnd = this->m_hWnd;
lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is
appreciable
Thanks in advance
Rajat 6 17361
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com Hi, I want to execute an Exe file in minimize mode. but when i m trying the following
SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); lpExecInfo.lpFile = _T("\\Program Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe"); lpExecInfo.lpParameters = _T(""); lpExecInfo.lpDirectory = _T(""); lpExecInfo.lpVerb = _T("open"); lpExecInfo.nShow = SW_MINIMIZE; lpExecInfo.fMask = 0; lpExecInfo.hwnd = this->m_hWnd; lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is appreciable
This is Windows-specific and off topic here. An appropriate group is
microsoft.public.vc.language
Since you are here, the nShow field determines what is passed as the last
parameter to WinMain. It is up to the application whether it takes any
notice of this parameter. Unfortunately for you, the Norton program
apparently takes no notice. Your best bet may be to try to minimize the
Norton window after the program has been launched.
--
John Carson
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com... Hi, I want to execute an Exe file in minimize mode. but when i m trying the following
SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); lpExecInfo.lpFile = _T("\\Program Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe"); lpExecInfo.lpParameters = _T(""); lpExecInfo.lpDirectory = _T(""); lpExecInfo.lpVerb = _T("open"); lpExecInfo.nShow = SW_MINIMIZE; lpExecInfo.fMask = 0; lpExecInfo.hwnd = this->m_hWnd; lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is appreciable
forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com... Hi, I want to execute an Exe file in minimize mode. but when i m trying the following
SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); lpExecInfo.lpFile = _T("\\Program Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe"); lpExecInfo.lpParameters = _T(""); lpExecInfo.lpDirectory = _T(""); lpExecInfo.lpVerb = _T("open"); lpExecInfo.nShow = SW_MINIMIZE; lpExecInfo.fMask = 0; lpExecInfo.hwnd = this->m_hWnd; lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is appreciable
forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
"raj" <ra*****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com... Hi, I want to execute an Exe file in minimize mode. but when i m trying the following
SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); lpExecInfo.lpFile = _T("\\Program Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe"); lpExecInfo.lpParameters = _T(""); lpExecInfo.lpDirectory = _T(""); lpExecInfo.lpVerb = _T("open"); lpExecInfo.nShow = SW_MINIMIZE; lpExecInfo.fMask = 0; lpExecInfo.hwnd = this->m_hWnd; lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is appreciable
forget ShellExecuteEx use ShellExecute instead, much simpler
eg. your.exe is executed in the background
ShellExecute(0,"open","your.exe",0,0,0);
oops .. apologies for the duplicate posts ..
"code_wrong" <ta*@tac.co.uk> writes: "raj" <ra*****@gmail.com> wrote in message news:11**********************@g43g2000cwa.googlegr oups.com... Hi, I want to execute an Exe file in minimize mode. but when i m trying the following
SHELLEXECUTEINFO lpExecInfo; memset(&lpExecInfo, 0, sizeof(SHELLEXECUTEINFO));
lpExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); lpExecInfo.lpFile = _T("\\Program Files\\Nortel\\DMMVPN3100\\sbipsecGUI.exe"); lpExecInfo.lpParameters = _T(""); lpExecInfo.lpDirectory = _T(""); lpExecInfo.lpVerb = _T("open"); lpExecInfo.nShow = SW_MINIMIZE; lpExecInfo.fMask = 0; lpExecInfo.hwnd = this->m_hWnd; lpExecInfo.hInstApp = AfxGetInstanceHandle();
ShellExecuteEx(&lpExecInfo);
The application starts but in normal/maximize mode. Ane guidence is appreciable forget ShellExecuteEx use ShellExecute instead, much simpler
Wrong.
The C++ language or standard library doesn't have a function
named ShellExecuteEX or ShellExecute.
Please don't post off topic answers to off topic questions. Direct the
OP to another group where it's on topic instead, or stay quiet.
/Niklas Norrthon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: zapazap |
last post by:
Dear Snake Charming Gurus,
(Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html)
First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond
for your earlier help...
|
by: JerryP |
last post by:
Hello,
is there a way to launch the property dialogue for a directory from my c#
app ?
I would also like to launch the User Account Properties from Active
Directory Users and Computers, and the...
|
by: Patrick de Ridder |
last post by:
string message = string.Format( "mailto:{0}?subject={1}&body={2}",
e_address, subject, body );
Process.Start( message );
These lines transfer an email text to Outlook Express.
body is a string...
|
by: Hernan Garber |
last post by:
Hi,
Attached, the installation log.
Win 2k Server SP3 IE6SP1/SQL Server Installed
Thanks
Setup.exe:
Setup.exe: ========== Logging started
==========
|
by: Jay |
last post by:
Hello,
I have an issue and I don't know if this is the correct group to post
to. If it isn't, just tell me the correct group, and I will post there.
I wrote a Visual C++ application that will open...
|
by: DaveP |
last post by:
is there a Equivelent of ShellExecuteEx
in c#
thanks
Dave
|
by: baje |
last post by:
hi everyone, need some help;
have this code to open MS Word using CreateProcess; but it is not
working; what am i missing?
CreateProcess(NULL, "Winword.exe", NULL, NULL, FALSE, 0,
NULL, NULL,...
|
by: Viviana Vc |
last post by:
Hi all,
I've read the WindowsVistaUACDevReqs.doc documentation and I have done
different small tests on Vista to understand the bahaviour and now I
have a few questions.
1) If I create a...
|
by: yxq |
last post by:
Hello,
The code below can popup the property dialog of a file, it works well on XP,
Vista 32bit, but it will not work on Vista 64bit, how to correct it? i have
tried to change integer to intptr,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |