Record locking on Windows Mobile 5.01

User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Post by Eugeniusz Owsiak »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Post by Eugeniusz Owsiak »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Eugeniusz,

Does this code shows "ok" on the emulator ?

Code: Select all

#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
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Hello Antonio

If I try (with WM 2005)

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

it crash the programm

Maurizio
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

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
Post Reply