Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

VB6 error 76 international character sets

Dear Experts,

I discovered that on an eastern European version of Windows XP, my program causes error 76 (path not found) when saving a file into a folder whose name includes non-English characters.

The file save method uses the CommonDialog and FileSystemObject.

How can I fix this? Thanks!

TT
0
ttobin333
Asked:
ttobin333
2 Solutions
 
borgunitCommented:
Not quite sure but I think the language pack will need to be installed for whatever language you desire. It is in WIndows >> Control Panel >> Regional and Language Options. Give that a shot.
0
 
ttobin333Author Commented:
The language pack is already installed on the machine. My question is how to modify my code so that international characters will not cause a problem when saving files. The program should function on machines with other languages.
0
 
borgunitCommented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ttobin333Author Commented:
Unfortunately, this does not solve my problem.

I just need a way to correctly deal with international characters within my program on foreign language versions of Windows in other countries.

Thanks.
0
 
ttobin333Author Commented:
That link refers to vb.net. I am using vb6. But you are correct about this being an issue of unicode.

To more accurately rephrase my question: I would like to be able to use unicode strings for file names within FileOpen and FileSave operations, in VB6.

I think this involves using an API alternative to the CommonDialog along with "Wide String" API calls, but I need help in putting it all together.

Thanks.
0
 
borgunitCommented:
Sorry I could not help more. We have done things with English-German-Spanish-Russian-Chinese, but I have not had to solve your exact problem. I tried to give "clues" to help solve it. Good luck finding your answer.
0
 
MattiCommented:
Hi!

Try this if it helps:
http://www.freevbcode.com/ShowCode.asp?ID=4622
Replace existing code using this.

Matti
0
 
ttobin333Author Commented:
Thanks Matti, will check it out!

Toby
0
 
Robberbaron (robr)Commented:
another alternative..http://www.vbforums.com/showthread.php?t=585762
definitely confirms that the std dialog is NOT unicode compliant.

also check that your code is not doing any string manipulation on the output of the filedialog.  use ASCW in place of ASC.
0
 
ttobin333Author Commented:
Thanks guys!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now