![]() ![]() Improved version of Classic Urdu Text Box (i.e. Tip: Click here to learn about how to register Urdu Ocx file on windows operating system Supports ALKATIB1 font (classic), which is a True Typeĭownload OLD version (i.e. Version 1.3 (classic), UrduTextBox version 1.5 and UrduUnicodeTextBox Note: If you have been using any of following Urdu OCX/ActiveX and want to upgrade to latest technology then Contact Naseem Amjad at įollowing is the comparison between UrduTextBox Urdu ActiveX, Urdu Component, Unicode, Arabic, Farsi (Persian), Write Urdu in VB6 (classic), VB.NET, C#, Oracle Forms, PowerBuilder, Delphi, Visual C++, Visual FoxPro and other Windows desktop application development tools. I was nearly at the stage where I either needed to write my own conversion process, or re-develop the controls in another language with better UTF-8 support.Keywords: Urdu Text Box, Urdu Ocx, Urdu Control , You can assign a string equal to a byte array and no automatic conversion happens, but as strings are stored internally as UTF-16 this does not work. ![]() This was a bit of a sticking point as Visual Basics string conversion function StrConv() can’t cope with UTF-8 and none of the API calls I found to convert the string worked. But now I had a UTF-8 byte array that I needed to convert in to a string without losing data in the conversion process. The data was being read in to a string (icString), but to avoid the conversion I had to change this to a byte array (icByteArray) to avoid the automatic conversion process. The size parameter tells it how much data to read, and the data type parameter tells it what data type to read it in to. The Inet control GetChunck() method takes two parameters size and data type. This was the first cause of my problems as Visual Basic will automatically convert the data in the string to ANSI, which loses the Unicode characters. ![]() This uses the GetChunck() method in the StateChanged event in order to read the data in to a string. The ActiveX controls use the Microsoft Inet control to request data via HTTP. This means that Visual Basic will convert from ANSI to Unicode (UTF-16) when storing a string, and convert it back again when it is retrieved. ![]() VB stores strings internally using Unicode, but assumes that the outside world is ANSI. However it did not work when I tried the UTF-8 Unicode code page. This has worked fine for the Latin code pages (ISO8859-1, ISO8859-15), and for the double byte code page (cp950) that have been tested. These controls request data from a web server to update the information on the page without requesting the whole page again, much in the same way that AJAX is now commonly used. One of the older applications I support uses ActiveX controls embedded inside a web page. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |