Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - VerLanguageName

Posted in WinTask

'
' VerLanguageName
'

' Author: Joe Strazzere

'

' retrieves a description string for the language associated with
' a specified binary Microsoft language identifier
'

' "kernel32" Alias "VerLanguageNameA"
'   (ByVal wLang As Long,
'    ByVal szLang As String,
'    ByVal nSize As Long) As Long
'


dim ptr as unsigned


ptr=allocate(255)

 

'0 = Language Neutral
'1033 = US Englisk
'2057 = UK English
'1036 = French
'3081 = Australian English
'1031 = German
'etc

LCID=1033

 

ret = External("kernel32","VerLanguageNameA",LCID, ptr,255)

var$=PeekString$(ptr)

 

msgbox("The language for LCID "+Str$(LCID)+" is: "+var$,,"VerLanguageName")


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now