Thursday 15 January 2015

VB6.0 Automation error -



VB6.0 Automation error -

i'm working on vb6.0 application giving automation error isn't consistent (sometimes code works crashes after several successful iterations).

dim illustration string

...

on error goto error illustration = ucase$(replace(form.unitextbox(1).text, " ", "")) error: debug.print("error: " & err.description)

this section of code i've identified causes automation error. root cause seems lie when computer set polish windows 7 running. when english language locale set there no issues.

what causing issue?

any advice or tips appreciated.

thanks

controls ansi not unicode. com unicode not ansi. string beingness converted , forth windows , vb.

windows, controls are, either ansi or unicode. vb6 written when computers had ansi windows, hence api calls (which creating window require) ansi calls. send unicode ansi window , windows convert ansi first. inquire vb api calls or forms , convert unicode string ansi.

see strconv, byte arrays can deed unicode strings, , see scheme settings in regional options non unicode programs.

vb6

No comments:

Post a Comment