Record locking on Windows Mobile 5.01

Postby Eugeniusz Owsiak » Thu Mar 30, 2006 5: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
User avatar
Eugeniusz Owsiak
 
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Postby Antonio Linares » Thu Mar 30, 2006 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Eugeniusz Owsiak » Thu Mar 30, 2006 9: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
User avatar
Eugeniusz Owsiak
 
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Postby Antonio Linares » Thu Mar 30, 2006 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Eugeniusz Owsiak » 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
User avatar
Eugeniusz Owsiak
 
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Postby Antonio Linares » Thu Mar 30, 2006 1: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 ?
Last edited by Antonio Linares on Thu Mar 30, 2006 1:46 pm, edited 1 time in total.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Thu Mar 30, 2006 1:46 pm

Eugeniusz,

Does this code shows "ok" on the emulator ?
Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Thu Mar 30, 2006 1: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
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Thu Mar 30, 2006 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Thu Mar 30, 2006 2:15 pm

Hello Antonio

If I try (with WM 2005)

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

it crash the programm

Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Eugeniusz Owsiak » Thu Mar 30, 2006 4: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
User avatar
Eugeniusz Owsiak
 
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Previous

Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 17 guests