Building a custom dialog box from C or C ++?

Well, I would like to make a custom launch dialog in my program so that the user can test commands without having to open them themselves. The only problem is that msdn doesn't provide any coverage. If I cannot execute my own startup dialog and send data to shell32.dll (where the startup dialog is stored), then I settle for code that can open the startup dialog using a button. So far, the only information I have found is to open it with VBScript, and I would like to know how to access wrapper objects directly inside C / C ++.

Here is VBScript if it helps (save as .vbs if you want to see)

<script language="VBScript">
    function fnShellFileRunVB()
        dim objShell

        set objShell = CreateObject("Shell.Application")
        objShell.FileRun

        set objShell = nothing
    end function
 </script>

      

+1


source to share


2 answers


The VBScript CreateObject () function simply instantiates a COM object. You can do the same in C ++, you just need to read the guide to accessing COM objects using C ++ first .



+1


source


Making a simple RUn dialog is not a big problem (user interface). User-entered data can be run through ShellExecute . If you want to bring up the Run dialog, you must use COM.



0


source







All Articles