For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > February 2005 > File Path and language change...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author File Path and language change...
Juvenal León

2005-02-25, 3:56 pm

Hello everybody,

When opening a file I use App.Path +"\FileName.Ext". In some cases due to
language change to Japanesse, the backslashes ("\") are changed to the yen
simbol causing my application not to find the file. How can I solve this
problem?

Thanks in advance.

Juvenal
Veign

2005-02-25, 8:55 pm

Try the PathAddBackslash API function - I assume this would take into
account the language settings
microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pa
thaddbackslash.asp?frame=true

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--

"Juvenal León" <JuvenalLen@discussions.microsoft.com> wrote in message
news:BB2FBE61-CB0B-47B8-8A13-DFEDE0AA7DD3@microsoft.com...
> Hello everybody,
>
> When opening a file I use App.Path +"\FileName.Ext". In some cases due to
> language change to Japanesse, the backslashes ("\") are changed to the yen
> simbol causing my application not to find the file. How can I solve this
> problem?
>
> Thanks in advance.
>
> Juvenal



Veign

2005-02-25, 8:55 pm

Here is the declaration:

Declare Function PathAddBackslash Lib "shlwapi.dll" Alias
"PathAddBackslashA" ( ByVal pszPath As String) As Long

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--

"Veign" <NOSPAMinveign@veign.com> wrote in message
news:OvYOVL3GFHA.1476@TK2MSFTNGP09.phx.gbl...
> Try the PathAddBackslash API function - I assume this would take into
> account the language settings
>

microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pa
> thaddbackslash.asp?frame=true
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
>
> "Juvenal León" <JuvenalLen@discussions.microsoft.com> wrote in message
> news:BB2FBE61-CB0B-47B8-8A13-DFEDE0AA7DD3@microsoft.com...
to[color=darkred]
yen[color=darkred]
>
>



Juvenal León

2005-02-25, 8:55 pm

Thanks a lot Veign, I'll try it.

Juvenal

"Veign" wrote:

> Here is the declaration:
>
> Declare Function PathAddBackslash Lib "shlwapi.dll" Alias
> "PathAddBackslashA" ( ByVal pszPath As String) As Long
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
>
> "Veign" <NOSPAMinveign@veign.com> wrote in message
> news:OvYOVL3GFHA.1476@TK2MSFTNGP09.phx.gbl...
> microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pa
> to
> yen
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com