[Lazarus] Fwd: [ExtPascal:1653] Project ExtendedDialer "for" Lazarus.

Osvaldo Filho arquivostcf at gmail.com
Mon Dec 21 13:05:52 CET 2009


The language of my operating system is Spanish (accent, ñ,
) and in fact,
the following:

..

Archivo= AnsiToUtf8(Directory) + AnsiToUtf8(SearchRec.Name); //This is from
a routine that runs through a directory looking for files.

Works perfectly with this.

ShellExecuteW(0, nil,
PWideChar(UTF8toUTF16(‘archivo’)),nil,nil,SW_SHOWNORMAL) //works with any
character

Or

ShellExecuteW(0, 'open',
PWideChar(UTF8toUTF16(archivo)),nil,nil,SW_SHOWNORMAL) //works with any
character too

..

Thanks.

 

 

 

De: bobby [mailto:spasic at gmail.com] 
Enviado el: viernes, 18 de diciembre de 2009 22:47
Para: Lazarus mailing list
Asunto: Re: [Lazarus] ShellExecute

 

Manuel Galeote wrote: 

In windows 7 I’m trying to open a word document with the uses windows and
shellExecute (lazarus 0.29 fpc 2.5.1)

 

That work:

ShellExecute(0, nil, PChar('C: \abc.doc'),nil,nil,SW_SHOWNORMAL);

 

But that not work:

ShellExecute(0, nil, PChar('C: \abcó.doc'),nil,nil,SW_SHOWNORMAL); (take a
look at the final ó)

 

Anybody knows why and/or how can I execute that?

 

Thanks

 



  _____  



 
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
  

Hi,

try ShellExecuteW  with PWideChar('C: \abcó.doc')

regards
bobby

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20091219/3170af2b/attachment-0004.html>


More information about the Lazarus mailing list