Re: UserAccounts.CommonDialog alternative for Vista?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"arno" <rnospam_AT_xs4all_DOT_nl> wrote in message
news:bblkh3d654i3tf96suadrocin39hfa30g8@xxxxxxxxxx
I sell an application that supports vbscript in it's forms, and on
some I use UserAccounts.CommonDialog to display a File Open dialog so
a user can select a filename.

On Vista, this functionality is not available. My question: is there
an alternative for Vista that does not require distributing any
additional controls?

Some background info:
My searches so far revealed that the following alternatives are
available, none of them are very appealing

-Using MSComDlg.CommonDialog, which requires installing the Common
Dialog control, which is subject to licensing

-Using SAFRCFileDlg.FileSave, which also requires installing an
additional control, and which is deprecated and not originally
intended for use in scripting in the first place.

-Using Choose File HTML File Control Object, a workaround that
(ab)uses IE, that I find inventive but very ugly..

Hi, Arno

MSComDlg.CommonDialog is indeed a licensed control, which Microsoft
distributes with Visual Studio and perhaps some other packages. Microsoft
also gives you a free license with some of its free downloads, one of which
is a simple HTML editor. Perhaps you can read the license agreement when
you install one of these free downloads and figure out a similar way for
your users to get the free license. The first time you run the HTML editor
..HTA on a computer with no license for MSComDlg.CommonDialog, it installs
the license. Perhaps your application can use the common dialog's other
functions, such as its color picker.

Learn about this simple HTML editor at:
http://msdn2.microsoft.com/en-us/library/ms537834.aspx;

Download it at:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/author/html/htmleditor/default.asp

Search the .HTA for this line to see how to set up the control:
<!-- Create the licensing object for the common dialog activex control -->

-Paul Randall


.



Relevant Pages

  • Re: Vista and common dialog box
    ... Is there way to use a control from Microsoft Office 2007 that would be loaded on any computer? ... The following web page talks about an HTML editor. ... If you download and install htmleditor.exe, you get a free license that allows use of the control from script, and if you read the source code closely, you may learn how to freely install a similar license on any computer. ... When you open the saved file in IE, the links all work and the graphics show up. ...
    (microsoft.public.scripting.vbscript)
  • Re: Fujitsu support - need help - Netcobol for windows and licensed controls.
    ... Power COBOL V7, 3rd party OCX control, properly licensed. ... as it is basically distibuiting the development license. ... development license key, while the "License.dat" file seems to be the deployment ... IClassFactory and IClassFactory2 are *interfaces* ...
    (comp.lang.cobol)
  • Re: Fujitsu support - need help - Netcobol for windows and licensed controls.
    ... Power COBOL V7, 3rd party OCX control, properly licensed. ... as it is basically distibuiting the development license. ... is down to the third party supplier to provide a run time license file (or ... It is up to the container to see if it ...
    (comp.lang.cobol)
  • [very long report] my theory and practical tests
    ... I then went on and at 18 I got my car license, ... easy if you are familiar with clutch and gears on a bike, ... Shoulder checks and low speed control: ... *rear brake only* after the midpoint because the ...
    (uk.rec.motorcycles)
  • Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
    ... The fact this is a good license for making zillions of dollars, ... some jurisdictions allow the control of _other_ information via our ... hardware that is associated with our software, ... jurisdiction allows the controlling of various aspects of movie theaters ...
    (Linux-Kernel)