Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2005, 4:20 AM   #11
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Use the Get and Put statements to stream data in and out of byte arrays when operating in binary mode. Be careful with your file offsets (remember, arrays are 0 based, so the upper bound is LOF(file) - 1).
Rory is offline   Reply With Quote
Old Oct 29th, 2005, 1:56 PM   #12
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
Cool

hey i couldnt figure out the put and get ^^;; i searched alot but couldnt get that working
could i have an example? sorry
but while looking i found this:

Visual Basic is based internally on the double-byte Unicode standard. However, most of the world outside of Visual Basic still uses the single- byte ANSI model. For this reason, Visual Basic provides two sets of form controls and uses the ANSI set as the default control. Any strings passed to the ANSI set of form controls will be converted from their internal Unicode representation to an ANSI representation and will not display the UNICODE strings correctly. To be able to display the UNICODE string on a Visual Basic form, the UNICODE (Forms 2.0) controls must be used. The following example shows how to use the Forms 2.0 controls to display UNICODE strings read from a Unicode text file. Because this behavior requires UNICODE language package support, it currently supported only in Windows NT.

NOTE: The Forms 2.0 controls used in this article were not designed for use on Visual Basic forms and have not been formally tested in the environment. This article documents their use only in this very limited context to work around a limitation to the Visual Basic Intrinsic controls. Using other features of these controls on Visual Basic forms is not supported.

Furthermore, Forms 2.0 is part of Microsoft Office and is not redistributable. Therefore, you cannot distribute Forms 2.0 (fm20.dll) with your application. It must already be on the target machines.

For additional information on distributing fm20.dll, please see the following article in the Microsoft Knowledge Base:...

here

:O sure it works without fm20 dll?
thanks ^_^
cloud- is offline   Reply With Quote
Old Oct 29th, 2005, 2:47 PM   #13
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Well that is one way of doing it, though VB definitely handles it natively, considering all strings and text are stored in unicode, it would seem pretty pointless otherwise. You could always use VB.NET...
Rory is offline   Reply With Quote
Old Oct 29th, 2005, 3:11 PM   #14
cloud-
Hobbyist Programmer
 
Join Date: Jan 2005
Posts: 110
Rep Power: 4 cloud- is on a distinguished road
hehe well dont really want to use that forms stuff... lol
it would be awesome if only i could make the unicode display properly in the textbox XD.
and vb.net has better support for unicode? maybe its time to move >D
cloud- is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC