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:[email protected]] Enviado el: viernes, 18 de diciembre de 2009 22:47 Para: Lazarus mailing list Asunto: Re: [Lazarus] ShellExecute Manuel Galeote wrote: In windows 7 Im 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 [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, try ShellExecuteW with PWideChar('C: \abcó.doc') regards bobby
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
