Esto no convirte de una codifición a otra, recibe: *int ToAscii( UINT** uVirtKey**, *// virtual-key code * UINT** uScanCode**, *// scan code * PBYTE** lpKeyState**, *// key-state array * LPWORD** lpChar* *, *// buffer for translated key * UINT** uFlags* // active-menu flag *);*
y retorna: ToAsciiReturn Values If the specified key is a dead key, the return value is negative. Otherwise, it is one of the following values. Value Meaning 0 The specified virtual key has no translation for the current state of the keyboard. 1 One character was copied to the buffer. 2 Two characters were copied to the buffer. This usually happens when a dead-key character (accent or diacritic) stored in the keyboard layout cannot be composed with the specified virtual key to form a single character El 4 de enero de 2010 12:42, Carlos Peix <[email protected]>escribió: > Hola Daniel, > > Por la documentacion parece que la funcion que mencionas esta relacionada > fuertemente con la entrada por teclado. Podrias aclarar que es lo que > necesitas resolver? > > Hay un monton de metodos para convertir un valor en un byte al juego de > caracteres que elijas. > > > ---------------------------------- > Carlos Peix > > On Mon, Jan 4, 2010 at 11:45 AM, Daniel Calvin <[email protected]>wrote: > >> Hola Gente, estoy migrando una aplicación C++ a C#, no encientro el >> equivalente a la función: >> >> ToAscii >> >> The *ToAscii* function translates the specified virtual-key code and >> keyboard state to the corresponding character or characters. The function >> translates the code using the input language and physical keyboard layout >> identified by the given keyboard layout handle. >> Alguno sabe si hay algún equivalente? >> >> Gracias >> >> -- >> Daniel A. Calvin >> Cooperator Team Member >> http://www.cooperator.com.ar >> Microsoft Certified Professional >> > > -- Daniel A. Calvin Cooperator Team Member http://www.cooperator.com.ar Microsoft Certified Professional
