Click here to Skip to main content
15,915,858 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to resize Tab Control?? Pin
TheGreatAndPowerfulOz30-Sep-11 8:24
TheGreatAndPowerfulOz30-Sep-11 8:24 
QuestionLoading ICON Pin
Benjamin Bruno28-Sep-11 22:36
Benjamin Bruno28-Sep-11 22:36 
AnswerRe: Loading ICON Pin
Randor 28-Sep-11 22:55
professional Randor 28-Sep-11 22:55 
AnswerRe: Loading ICON Pin
Madhu Nair28-Sep-11 23:00
Madhu Nair28-Sep-11 23:00 
AnswerRe: Loading ICON Pin
Richard MacCutchan29-Sep-11 2:37
mveRichard MacCutchan29-Sep-11 2:37 
Questionhow to unzip bytes in memory Pin
Namtaerg28-Sep-11 18:15
Namtaerg28-Sep-11 18:15 
AnswerRe: how to unzip bytes in memory Pin
enhzflep28-Sep-11 20:33
enhzflep28-Sep-11 20:33 
AnswerRe: how to unzip bytes in memory Pin
Madhu Nair28-Sep-11 20:35
Madhu Nair28-Sep-11 20:35 
Questionsafearray of variant Pin
jkirkerx28-Sep-11 12:35
professionaljkirkerx28-Sep-11 12:35 
AnswerRe: safearray of variant Pin
TheGreatAndPowerfulOz29-Sep-11 4:26
TheGreatAndPowerfulOz29-Sep-11 4:26 
GeneralRe: safearray of variant Pin
jkirkerx29-Sep-11 5:22
professionaljkirkerx29-Sep-11 5:22 
GeneralRe: safearray of variant Pin
TheGreatAndPowerfulOz29-Sep-11 6:47
TheGreatAndPowerfulOz29-Sep-11 6:47 
GeneralRe: safearray of variant Pin
jkirkerx29-Sep-11 8:18
professionaljkirkerx29-Sep-11 8:18 
QuestionCOM dll that uses Windows7 libraries on XP Pin
Al_Pennyworth28-Sep-11 9:05
Al_Pennyworth28-Sep-11 9:05 
AnswerRe: COM dll that uses Windows7 libraries on XP Pin
TheGreatAndPowerfulOz28-Sep-11 9:10
TheGreatAndPowerfulOz28-Sep-11 9:10 
GeneralRe: COM dll that uses Windows7 libraries on XP Pin
Al_Pennyworth28-Sep-11 9:23
Al_Pennyworth28-Sep-11 9:23 
GeneralRe: COM dll that uses Windows7 libraries on XP Pin
TheGreatAndPowerfulOz28-Sep-11 9:27
TheGreatAndPowerfulOz28-Sep-11 9:27 
AnswerRe: COM dll that uses Windows7 libraries on XP Pin
Randor 28-Sep-11 19:50
professional Randor 28-Sep-11 19:50 
QuestionTodays Question, ShellExecute using - start /w pkgmgr.exe /iu: Pin
jkirkerx28-Sep-11 7:20
professionaljkirkerx28-Sep-11 7:20 
AnswerRe: Todays Question, ShellExecute using - start /w pkgmgr.exe /iu: Pin
TheGreatAndPowerfulOz28-Sep-11 7:32
TheGreatAndPowerfulOz28-Sep-11 7:32 
To get a "progress window", you could run the pkgmgr.exe from the command line:

CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
    [[/S] [/C | /K] string]

/C      Carries out the command specified by string and then terminates
/K      Carries out the command specified by string but remains
/S      Modifies the treatment of string after /C or /K (see below)
/Q      Turns echo off
/D      Disable execution of AutoRun commands from registry (see below)
/A      Causes the output of internal commands to a pipe or file to be ANSI
/U      Causes the output of internal commands to a pipe or file to be
        Unicode
/T:fg   Sets the foreground/background colors (see COLOR /? for more info)
/E:ON   Enable command extensions (see below)
/E:OFF  Disable command extensions (see below)
/F:ON   Enable file and directory name completion characters (see below)
/F:OFF  Disable file and directory name completion characters (see below)
/V:ON   Enable delayed environment variable expansion using ! as the
        delimiter. For example, /V:ON would allow !var! to expand the
        variable var at execution time.  The var syntax expands variables
        at input time, which is quite a different thing when inside of a FOR
        loop.
/V:OFF  Disable delayed environment expansion.


So, do the following:

lp_File = "cmd.exe"
lp_Parameters = CString("/k pkgmgr.exe ") + lp_Parameters;

This will start a command prompt and then run the pkgmgr.exe program.

To get the full help on cmd, start a command prompt (this *is* cmd.exe) and type cmd /?
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

GeneralRe: Todays Question, ShellExecute using - start /w pkgmgr.exe /iu: Pin
jkirkerx28-Sep-11 8:03
professionaljkirkerx28-Sep-11 8:03 
GeneralRe: Todays Question, ShellExecute using - start /w pkgmgr.exe /iu: Pin
jkirkerx28-Sep-11 9:49
professionaljkirkerx28-Sep-11 9:49 
GeneralRe: Todays Question, ShellExecute using - start /w pkgmgr.exe /iu: Pin
TheGreatAndPowerfulOz28-Sep-11 11:02
TheGreatAndPowerfulOz28-Sep-11 11:02 
Questioncall to 'another program from C code Pin
salv0328-Sep-11 4:46
salv0328-Sep-11 4:46 
AnswerRe: call to 'another program from C code Pin
Madhu Nair28-Sep-11 5:36
Madhu Nair28-Sep-11 5:36 

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.