|
-
May 16th, 2021, 02:06 PM
#3
Re: Unicode aware VB6 functions replacement
Private Declare Function GetModuleFileNameW Lib "kernel32.dll" (ByVal hModule As Long, ByVal lpFilename As Long, ByVal nSize As Long) As Long
Function AppPathW() As String
Const MAX_PATH = 560&
AppPathW = Space$(MAX_PATH - 1&)
AppPathW = Left$(AppPathW, GetModuleFileNameW(0&, StrPtr(AppPathW), MAX_PATH))
AppPathW = Left(AppPathW, InStrRev(AppPathW, ""))
End Function
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|