steppo klein wrote:

> Hello,
> 
> i tryed the Sourcecode from Thread "Need to pick your brains...!" from 
> Robert Meek
> Sat Feb 21 10:58:24 CST 2004
> 
> it's fantastic. But i have a Problem. If i start my Application with this 
> Sourcecode against the ContextMenu, the Application starts once. That is ok.
> If i start the my Application again against the Contextmenu, the second 
> Application do not start, but the Parameter is send to the First 
> Application. That is also Ok.
> 
> Now my Problem.
> 
> I select two Tif - Images against the Contextmenu and start my Application.
> 
> Result Application starts but only one Tif - Image is shown in my 
> Application.
> 
> Why?
> 
> Normaly the second marked File has been send to the first Application and be 
> shown as second Tif - Image. isn't it right, that if i start my Application 
> with to marked Files is the same like starting Application twice?

If I'm understanding your description, no it's not the same, it's 
like calling your application once with two filenames passed on 
the command line.

If your application is not set up to handle multiple filenames as 
command parameters, then the outcome will normally be that the 
second filename gets be ignored, which sounds like exactly what's 
happening.

Given what you've described, likely you need to call SendMessage 
for each filename separately (e.g. in a loop).

HTH

Stephen Posey
[EMAIL PROTECTED]

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to