Click here to Skip to main content
15,889,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: call to 'another program from C code Pin
salv0328-Sep-11 5:52
salv0328-Sep-11 5:52 
GeneralRe: call to 'another program from C code Pin
David Crow28-Sep-11 7:06
David Crow28-Sep-11 7:06 
GeneralRe: call to 'another program from C code Pin
Albert Holguin29-Sep-11 3:45
professionalAlbert Holguin29-Sep-11 3:45 
Questionindex of HTREEITEM item? Pin
zon_cpp28-Sep-11 0:56
zon_cpp28-Sep-11 0:56 
QuestionRe: index of HTREEITEM item? Pin
Code-o-mat28-Sep-11 1:42
Code-o-mat28-Sep-11 1:42 
AnswerRe: index of HTREEITEM item? Pin
Madhu Nair28-Sep-11 1:47
Madhu Nair28-Sep-11 1:47 
GeneralRe: index of HTREEITEM item? Pin
zon_cpp28-Sep-11 2:06
zon_cpp28-Sep-11 2:06 
GeneralRe: index of HTREEITEM item? Pin
Stefan_Lang28-Sep-11 4:52
Stefan_Lang28-Sep-11 4:52 
AnswerRe: index of HTREEITEM item? Pin
Maximilien28-Sep-11 2:52
Maximilien28-Sep-11 2:52 
GeneralRe: index of HTREEITEM item? Pin
Stefan_Lang28-Sep-11 4:54
Stefan_Lang28-Sep-11 4:54 
QuestionRe: index of HTREEITEM item? Pin
Code-o-mat28-Sep-11 9:57
Code-o-mat28-Sep-11 9:57 
AnswerRe: index of HTREEITEM item? Pin
Maximilien28-Sep-11 12:34
Maximilien28-Sep-11 12:34 

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.