FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Record locking on Windows Mobile 5.01
Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 05:58 AM

Antonio,
I have some trouble with instalation WM 5.0 emulator on my computer.
I have downloaded a Windows Mobile 5.0 Pocket PC SDK.msi but at instalation time I get error.
Can You send me USA_PPC.bin (if it is not to big )

regards ,
Eugeniusz

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 06:38 AM

Eugeniusz,

Open the msi file doing this:

msiexec /a <filename.msi>

it will force the msi to be installed :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 09:25 AM

Antonio,
Emulator WM 5.0 is instaled and work perfectly. :P
I can map path of my computer thru the option "Configure" in menu "File" and open it from "Storage Card" like in previous version of emulator.
Behavior of program executed this way is the same like on realy PPC - rLock return .F. :(

I cannot asign any net path thru File Explorer ->Menu->Open Path

regards,
Eugeniusz

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 09:42 AM

Eugeniousz,

> I cannot asign any net path thru File Explorer ->Menu->Open Path

Thats the problem. If we can not assign it then we can not open a DBF located there :(

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 10:45 AM

Antonio,

> If we can not assign it then we can not open a DBF located there

But path mapping works and I can execute exe with opening a dbf file in share mode on a 'net disk'. This is all I want to get testing procedures with file shering

regards
Eugeniusz

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 01:39 PM

Eugeniusz,

>
But path mapping works and I can execute exe with opening a dbf file in share mode on a 'net disk'. This is all I want to get testing procedures with file shering
>

Do you mean that you use the shared folder for the SD card emulation ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 01:46 PM
Eugeniusz,

Does this code shows "ok" on the emulator ?
#include "FWCE.ch" 

function Main() 

   USE ( CurDir() + "\customer.dbf" ) SHARED
   
   if RLock()
      MsgInfo( "ok" )
      UNLOCK
   else
      MsgInfo( "no" )
   endif      
   
   USE

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 01:58 PM

This is my test with SHARE :

On WindowsCE
I have this messages :"LockFileEx() not supported in this windows mobile version" , the same for the file on PC or in the Pocket

On Windows Mobile 2005
if the path is on the Pocket the command rlock() returns OK
if the path is on PC the comman USE with SHARE block the programm
and I need a reset

(without SHARE all run OK)

Regards Maurizio

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 02:07 PM

Maurizio,

Thanks for your feedback. Yes, here we get the same results as you. Maybe the files stored at the SD card can not be locked.

We should try this code:
USE "\computer_ip\shared_directory\customer.dbf" SHARED

but we can't get it to work from the emulator.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 02:15 PM

Hello Antonio

If I try (with WM 2005)

USE "\computer_ip\shared_directory\customer.dbf" SHARED

it crash the programm

Maurizio

Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Record locking on Windows Mobile 5.01
Posted: Thu Mar 30, 2006 04:01 PM

Antonio,

This piece of program on WM 5.0 (shared SD) and on my Pocket PC connected via WiFi to my computer return 'no'.
So emulator work properly just like PPC.

regards
Eugeniusz

Continue the discussion