Record locking on Windows Mobile 5.01
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
Record locking on Windows Mobile 5.01
Is it posible?
regards,
Eugeniusz
regards,
Eugeniusz
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
I know the previus version of OS (Windows Mobile 2003) can not share any file on server because it have no build in any net function. Windows Mobile 5.0 should have that net properties and I try to share some dbf file opened on server with other user. When I try I get error - net function in Harbour and FWPPC are not ready. What can I do?
Antonio, can You help me?
Eugeniusz
Antonio, can You help me?
Eugeniusz
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Eugeniusz,
Yes, it is available
We have performed this little test and it returns a valid value under Windows Mobile 5 and return zero under Windows Mobile 2003:
We are going to modify FWPPC to automatically use it if the app is running under Windows Mobile 5
Yes, it is available
We have performed this little test and it returns a valid value under Windows Mobile 5 and return zero under Windows Mobile 2003:
We are going to modify FWPPC to automatically use it if the app is running under Windows Mobile 5
Code: Select all
#include "FWCE.ch"
function Main()
MsgInfo( Test() )
return nil
#pragma BEGINDUMP
#include <hbapi.h>
#define UNDER_CE
#include <windows.h>
LPWSTR AnsiToWide( LPSTR );
HB_FUNC( TEST )
{
LPWSTR pW1 = AnsiToWide( "coredll.dll" );
LPWSTR pW2 = AnsiToWide( "LockFileEx" );
HINSTANCE hDLL = LoadLibrary( pW1 );
hb_retnl( ( LONG ) GetProcAddress( hDLL, pW2 ) );
hb_xfree( pW1 );
hb_xfree( pW2 );
FreeLibrary( hDLL );
}
#pragma ENDDUMP
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Eugeniusz Owsiak
- Posts: 60
- Joined: Fri Oct 07, 2005 5:38 am
- Location: Poland
Antonio,
On my PocketPC I can map any path of my LAN computer.
I use TotalCommander for PPC or simply File Explorer - it has ability do make net path mapping. So I open both exe file and dbf file from PPC on LAN.
USE (CurDir()+"\dbffile") new shared alias wd
if wd->(rLock())
wd->field1:="any value"
Else
msgInfo("LAN error")
EndIf
use ("\\192.168.0.15\share\customer") shared -> display "open error" on my PPC
regards Eugeniusz
On my PocketPC I can map any path of my LAN computer.
I use TotalCommander for PPC or simply File Explorer - it has ability do make net path mapping. So I open both exe file and dbf file from PPC on LAN.
USE (CurDir()+"\dbffile") new shared alias wd
if wd->(rLock())
wd->field1:="any value"
Else
msgInfo("LAN error")
EndIf
use ("\\192.168.0.15\share\customer") shared -> display "open error" on my PPC
regards Eugeniusz
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: