Re: COM/GUIProblem
From: Hendrik Schober (SpamTrap_at_gmx.de)
Date: 02/27/04
- Next message: Ted: "Re: RichEdit-Control and Thai Language"
- Previous message: Julian Nicholls: "Re: survey of the unemployed"
- In reply to: Eric Lawrence [MSFT]: "Re: COM/GUIProblem"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Ted: "Re: RichEdit-Control and Thai Language"
- Previous message: Julian Nicholls: "Re: survey of the unemployed"
- In reply to: Eric Lawrence [MSFT]: "Re: COM/GUIProblem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|