Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
« Previous Thread | Next Thread » Featured Thread Featured Thread  
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 18th, 2007, 02:35 PM
maciak maciak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 5 maciak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 20 sec
Reputation Power: 0
[VB 6.0 + ODBC + Fb Embed] Problem with character set...

Hi !


I'm using WIN1250 character set in my database.


But i can't configure properly my ODBC driver...
(Control Panel -> Administrative Tools -> Data Sources (ODBC) -> System DNS -> Firebird Driver -> Character set)


When I set it to "NONE" I can compile and run my program. But it crashes when I'm trying to add new record to my database - I receive an error during insert statement ( [ODBC Firebird Driver][Firebird] CHARACTER SET WIN1250 is not installed)


And when i set it to "WIN1250" and compile my program it crashes instantly and displays an error:
[ODBC Firebird Driver] bad parameters on attach or create database. CHARACTER SET WIN1250 is not defined.



I think I know where the problem may be... Embedded version of Firebird contains "intl" directory with "fbintl.conf" and "fbintl.dll" files. And these must be in the same directory as my program.


And when i publish my program, vb 6.0 makes a .exe of my program, i copy these 2 files to the same catalog and i run my program from .exe everything works OK. ( no matter what character set i choose in System DNS configuration panel)


Question is - what should I do to work correctly with my database from VB 6.0 ?

Please help...
maciak

Reply With Quote
  #2  
Old January 19th, 2007, 02:25 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,905 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 4 h 58 m 14 sec
Reputation Power: 279
Quote:
Originally Posted by maciak
... I think I know where the problem may be... Embedded version of Firebird contains "intl" directory with "fbintl.conf" and "fbintl.dll" files. And these must be in the same directory as my program.
...
I seem to remember that it's a known problem and your diagnosys should be right.
Act accordingly

Reply With Quote
  #3  
Old January 19th, 2007, 10:59 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,905 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 4 h 58 m 14 sec
Reputation Power: 279
This thread holds the answer.

Reply With Quote
  #4  
Old January 20th, 2007, 07:12 AM
maciak maciak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 5 maciak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 51 m 20 sec
Reputation Power: 0
Thanks pabloj



I think i know the answer.

To get everything work these three steps must be done:

1) Charset properity in ODBC driver must be set to "NONE",

2) In vb 6.0 you must compile your program by choosing "File" -> "make abc.exe" ( where "abc" is your program's name) instead of Run -> Start (or just pressing F5 key). Doing so makes a .exe file of your program.

3) In the same place, where is your .exe program, you must copy "intl" directory with "fbintl.conf" and "fbintl.dll" files.

Now, when you run your program by clicking twice on .exe file, everything works ok

Hope these helps anybody in the future

maciak

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > [VB 6.0 + ODBC + Fb Embed] Problem with character set...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway