Re: COM/GUIProblem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hendrik Schober (SpamTrap_at_gmx.de)
Date: 02/27/04


Date: Fri, 27 Feb 2004 12:43:18 +0100

Eric Lawrence [MSFT] <e_lawrence@hotmail.com> wrote:
> The reason I asked for more information is that I'm not aware of any
> existing system which behaves the way you describe. When creating a system
> which works differently than any other in existence, it's always interesting
> to flesh out the scenarios to determine if reusing well-understood,
> standardized behaviors would be more appropriate.

  It's a request from a customer. I think this
  is Mac thing that for this application should
  work on Windows, too.

> << But how would I create those executables at run-time?>>
>
> At runtime of what, exactly? The examples you've described imply that the
> user doesn't run anything at all until they drop a file on a desktop icon.

  To stick to the analogy I used, this would
  be as if at run-time MS Word would create an
  icon on the desktop which, when .doc files
  are dumped on it, spell-checks them in the
  language specified when the user ordered
  Word to create the icon.
  It is important that the user can create
  these droplets at run-time of the app, from
  a dialog within the app that specifies the
  settings (language) to be used.

> If you're actually having the user run an application, why not just have
> them drop their files on your application, instead of on the icons on the
> desktop? That is a well-understood scenario and writing the code for it is
> trivial.

  Yes, but Word would just open any files
  dumped onto it.

> Presuming, then, that your analogous example is actually correct and you
> don't have a "runtime", I'll assume that you instead mean "How do I set up
> these icons on my desktop at installation time."

  No. At run-time. :)

> Try this:
>
> 1> Create a new exe named CECHO.EXE on your desktop. Have it show a
> messagebox for each command line argument passed to into it when run.
> 2> Create two new shortcuts (1.lnk and 2.lnk) on the desktop pointing to the
> executable on the desktop.
> 3> Right-click and Edit the first shortcut and put "English" after the
> filename in the TARGET edit box. So it should look like:
>
> "C:\Documents and Settings\ericlaw\Desktop\cecho.exe" English
>
> 4> Do the same with the second shortcut, instead putting "Spanish" in the
> target field.
> 5> Run Shortcut #1. The app echos "English"
> 6> Run Shortcut #2. The app echos "Spanish"
> 7> Drop a file named BLAH.TXT on shortcut #1. The app echos "English" then
> "BLAH.TXT"
> 8> Drop BLAH.TXT on shortcut #2. The app echos "Spanish" then "BLAH.TXT"

  OK, I see. Thanks.

> Hopefully, at this point, the rest of the exercise is fairly
> straightforward. To do the spell-check example, you'd simply have your EXE
> open the file referenced in args[2] and spellcheck it using the language
> specified in args[1].

  The problem is, that instead of just a string
  (language), there is fairly large settings to
  be passed. Also, this settings should not be
  somehwere else, because they are supposed to
  be copied when the icon is copied (like to
  another machine).
  But I suppose I could create a small .exe file
  that has the settings in its resources. Those
  can be changed at run-time.
  So what I would do at run-time is to take the
  template .exe file, copy it to the desktop,
  give it a user-supllied name, and modify its
  resources with the settings given.

> Thanks,

  Well, I guess its me who has to thank you! :)
  You got me started on this.

> Eric Lawrence
> [...]

  Schobi

-- 
SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org
"Sometimes compilers are so much more reasonable than people."
  Scott Meyers


Relevant Pages

  • XP Home. Not Saving Settings.
    ... For a reason I cant seem to work out XP is not saving any settings that ... the moment I reset the machine it defaults back to the previous settings, ... the same happens if I place an icon on the desktop, ...
    (microsoft.public.windowsxp.general)
  • Each file has own icon
    ... For some reason in my settings have changed and I do not know why. ... all in the same icon in the task bar. ...
    (microsoft.public.excel.misc)
  • Re: [9.2.2] Any Mozilla 1.3.1 tweaks?
    ... This one is applicable - not to Mozilla, but to Netscape, - and if you choose Netscape, it will browse for Netscape, and then you just select Mozilla folder...strange... ... I can't access the memory settings for any ... Desktop icon issue. ...
    (comp.sys.mac.apps)
  • Re: [9.2.2] Any Mozilla 1.3.1 tweaks?
    ... Pulse Player is a free plug-in for web browsers, ... As for Kensington, yes, I use Kensington Turbo Mouse, ... I can't access the memory settings for any ... Desktop icon issue. ...
    (comp.sys.mac.apps)
  • Re: Vodafone GRPS settings on LG Viewty
    ... Yes the settings for MMS are below followed by the WAP/GPRS settings ... devices an internet profile will need to ... Scroll down and tap Messaging settings. ... Press the bottom left icon to the left of activate then select Add ...
    (uk.telecom.mobile)