VXCMD Windows Error 3

Peter McConachie pmccon at bigpond.net.au
Tue Mar 18 20:26:56 CST 2003


On Tuesday, March 18, 2003, at 04:53  AM, Ruslan Zasukhin wrote:

Hi Ruslan,

> 1) Today I have set up CW WIN 8.3 on Windows.
>    and MetaCard
>
> 2) I have take example from VXCMD_WIN archive.
>
> 3) and now I have try create db by button press.
>
> At first I also have got problems. Error "123" was returns by win XP.
> This error means Bad Path.
>
> In debugger I have found that path looks as:
>
>         D:/fff/ddd/gg.vdb

This is the form of path returned by MetaCard. Up to and including 
1.9.6 VXCMD.DLL happily accepted this path. It must have been converted 
internally in the DLL to the windows path  D:\fff\ddd\gg.vdb.  
Presumably this conversion no longer occurs with 1.9.7.

> For windows it must looks as
>
>         D:\fff\ddd\gg.vdb
>
> 4) in the Example code, because call DB_CREATE, exists call to function
> NativePath(), but its code do conert path string only for MacOS.
>
> When I have change path to be correct it perfectly works.
> Later I was able open this db also...

If I change NativePath() to replace / with \ (for VXCMD.DLL versions > 
1.9.6) it works. This should be safe since one Windows explorer wont 
allow  entry of / in filenames.

As to the problem of file corruptions involving SELECT statements, I 
can't yet comment.

However the following sequence that works perfectly with VXCMD.DLL 
1.9.6 now returns rubbish.

1. Write (approx 57000 bytes) binary data to Fixed Binary field FixBin 
using Binary_WriteData and Cursor_AddRecord
2. Select Fixed Binary method of table ie encode(FixBin,'ABC')
3. Read binary data from method using Binary_ReadData. Result is now 
truncated at 11 characters.



Best wishes,
Peter McConachie



More information about the Valentina mailing list