Click here to Skip to main content
16,013,592 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWindows form grid that displays data vertically Pin
Kschuler16-Sep-08 9:35
Kschuler16-Sep-08 9:35 
QuestionCalling a Stored Procedure with Parameter as a FilePath in VB6 Pin
phn11016-Sep-08 9:27
phn11016-Sep-08 9:27 
AnswerRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
Dave Kreskowiak16-Sep-08 10:09
mveDave Kreskowiak16-Sep-08 10:09 
GeneralRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
phn11016-Sep-08 10:23
phn11016-Sep-08 10:23 
GeneralRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
Dave Kreskowiak16-Sep-08 11:37
mveDave Kreskowiak16-Sep-08 11:37 
QuestionVisual Source safe Pin
raghav_bhat16-Sep-08 6:30
raghav_bhat16-Sep-08 6:30 
AnswerRe: Visual Source safe Pin
John_Adams16-Sep-08 7:57
John_Adams16-Sep-08 7:57 
QuestionShould I revert to DAO? Pin
MartinSW16-Sep-08 4:19
MartinSW16-Sep-08 4:19 
In my company we've got a fairly old VB6 application (roots go back to 1998, VB6, DAO, Paradox). About two years ago, we added some import / export functions. We used VB.Net and Ado.Net. Works like a charm in countries with Western European charsets.
Now these import / export functions were requested in Russia. Now here is trouble:
- most Cyrillic letters are above ASC 128
- DAO 3.5 uses mspdox35.dll to read and write Paradox Data
- Ado.net uses the BDE if installed (via mspbde40.dll)
- the way mspdox35.dll and BDE store and retrieve character data with codes above 127 is incompatible.

Here is what I tried so far:
(1) Changed the Paradox Table Language from "Paradox 'intl'" to "Pdox ANSI Cyrillic". Data read and write for Ado.net (via mspbde40.dll and BDE) is okay, but I can't access those tables with DAO (Exception 3274, External table isn't in the expected format).

(2) Forced mspbde40.dll to read and write the data itself (HKLM\SOFTWARE\Microsoft\Jet\4.0\Engines\Paradox BDE = 0x2 (REG_DWORD)). The characters are OK but the performance is unacceptable (Insert of 255 records takes ~ 50 seconds! For comparison: via BDE the same code runs in about 20 seconds).

Other things I tried which didn't show any effect:
- Changed the Paradox LangDriver in the BDE Administrator
- Used the OleDb*-classes instead of the Odbc*-classes

For the heck of it I wrote a routine in VB.NET using DAO. Works and is bindingly fast (< 1 second!). Now what should I do?

(a) rewrite all data access routines to use DAO? Since the import / export is fairly complex this would take a week or so.

(b) write a custom DataProvider (implementing IDbConnection, IDbCommand, etc.) bridging to DAO? Has anybody already done that?

(c) Find the switch that makes mspbde40.dll's own Paradox routines so awfully slow. My suspicion: tables can't be locked exclusively. Also bulk updates (UpdateBatchSize > 1) aren't supported by mspbde40.dll.

(d) ??? Any hint is welcome!

Regards
Martin
AnswerRe: Should I revert to DAO? Pin
Dave Kreskowiak16-Sep-08 5:42
mveDave Kreskowiak16-Sep-08 5:42 
GeneralRe: Should I revert to DAO? Pin
MartinSW16-Sep-08 6:01
MartinSW16-Sep-08 6:01 
GeneralRe: Should I revert to DAO? Pin
Dave Kreskowiak16-Sep-08 7:03
mveDave Kreskowiak16-Sep-08 7:03 
Question[Message Deleted] Pin
pavanip16-Sep-08 0:07
pavanip16-Sep-08 0:07 
AnswerRe: Anti Spyware software Pin
Dave Kreskowiak16-Sep-08 1:49
mveDave Kreskowiak16-Sep-08 1:49 
QuestionCheck dll files at the Start of the Application Pin
pdnet15-Sep-08 23:48
pdnet15-Sep-08 23:48 
AnswerRe: Check dll files at the Start of the Application Pin
ChandraRam16-Sep-08 1:02
ChandraRam16-Sep-08 1:02 
GeneralRe: Check dll files at the Start of the Application Pin
pdnet16-Sep-08 1:16
pdnet16-Sep-08 1:16 
AnswerRe: Check dll files at the Start of the Application Pin
Dave Kreskowiak16-Sep-08 1:43
mveDave Kreskowiak16-Sep-08 1:43 
GeneralRe: Check dll files at the Start of the Application Pin
pdnet16-Sep-08 2:36
pdnet16-Sep-08 2:36 
GeneralRe: Check dll files at the Start of the Application Pin
Dave Kreskowiak16-Sep-08 5:31
mveDave Kreskowiak16-Sep-08 5:31 
AnswerReadonly Pin
David Mujica16-Sep-08 2:42
David Mujica16-Sep-08 2:42 
QuestionSaving Image with with transparent back groung as .gif Pin
nishkarsh_k15-Sep-08 22:27
nishkarsh_k15-Sep-08 22:27 
AnswerRe: Saving Image with with transparent back groung as .gif Pin
Dave Kreskowiak16-Sep-08 1:40
mveDave Kreskowiak16-Sep-08 1:40 
GeneralRe: Saving Image with with transparent back groung as .gif Pin
nishkarsh_k17-Sep-08 18:41
nishkarsh_k17-Sep-08 18:41 
GeneralRe: Saving Image with with transparent back groung as .gif Pin
Dave Kreskowiak18-Sep-08 1:44
mveDave Kreskowiak18-Sep-08 1:44 
QuestionHelp me! Dynamic crystal reports Pin
tinh cau15-Sep-08 19:21
tinh cau15-Sep-08 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.