VXCMD Windows Error 3

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Mar 18 13:53:54 CST 2003


on 3/18/03 12:26 PM, Peter McConachie at pmccon at bigpond.net.au wrote:

>> 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.

Okay, one problem solved.  :-)

Peter, can you send to me this modified Example of VXCMd,
I will update archive then...

I do not understand how 1.9.6 could work with that bad paths !!!
May be I have add my own code that search for delimiter.
But then this means that Windows in fact can work with UNIX paths ???

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

I think this is not related report.

> 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.

Well, please send to me such test project.
Now I can debug VXCMD on windows :-)

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list