forum.sourcecode (2000-2005) & (2005-2010)
Panayiotis Katsilaretos


Post by Panayiotis Katsilaretos » 23 May 2007, 09:05

 Posted by:  Panayiotis Katsilaretos 

Good morning from Greece,

My problem is as follows: I want to populate the available installed
keyboard languages in a listbox or something, after that
I want to select the language I wish by identifying if it is Greek or
English and choose it correspondigly I tried to run RUNDLL32 USER32.DLL,
ActivateKeyboardLayout 1,0 but nothing, I got an example for USER32.DLL
including all the appropriate functions about keyboard but the help file is
different than the actual parameters, so until now NO RESULT, I'm working on
Centura 1.5.1

Thank you in advance

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2371
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California


Post by Jeff Luther » 23 May 2007, 18:08

 Posted by:  Jeff Luther 

This is a very good example of where it would likely be MUCH easier to help you
with if you would attach a zip of your test/sample appl. in CTD v1.5 showing what
you declared and what you coded, and a description of what you want to have
happen, and what does not work.

Unless you are simply asking if someone else has already done this (I
have not, and do not remember any such coding samples) then we need
more than "but nothing" to perhaps help you.

Best Regards,
Jeff @ PC Design

Krzysztof Dorko


Post by Krzysztof Dorko » 23 May 2007, 19:31

 Posted by:  Krzysztof Dorko 


I just created some example, maybe will be useful for you, it doesn't
enumerate but you can activate language and then take name (ID)
I do not create UI for this (no time) - sorry
But I agree with Jeff it will be much easier if we could see piece of code
to be sure what are you talking about.
My apt is in GTD4.2



You do not have the required permissions to view the files attached to this post.

Panayiotis Katsilaretos


Post by Panayiotis Katsilaretos » 24 May 2007, 09:12

 Posted by:  Panayiotis Katsilaretos 

thank everybody!

Eventually the real problem was on the library that was calling USER32.DLL
for the keyboard functions, the parameters were not of the same quantity and
type, I changed the function LoadKeyboardLayout ( string, number ) that
returns number and everything went fine,
if you will ask me what if something that worked before will not work now,
it is used (this library) just right now. The point is that all keyboard
related functions are different declared in parameters and return according
to Microsoft's declaration. Anybody that will have a problem of the same
type just give me a call to help

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests