FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC TSocket class
Posts: 6
Joined: Wed Dec 21, 2005 01:21 PM
TSocket class
Posted: Wed Jan 11, 2006 01:43 PM

I want to use the TSocket class to synchronize my files between my ppc and my computer.

but when i call the TSocket:new() method i get the error: variable does not exist..

is this a compiling/linking problem? If so, how can I link the tSocket class to my sample file? which dll/lib do i need?

thanx,
Sjors

Posts: 6
Joined: Wed Dec 21, 2005 01:21 PM
TSocket class
Posted: Wed Jan 11, 2006 02:45 PM

This should be; TSocket():new(). but then I get the following error when linking: unresolved external symbol WSAstartup().

I use the buildce.bat from the sample dir to compile my little test application.

thanx

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TSocket class
Posted: Wed Jan 11, 2006 03:11 PM

Sjors,

Please check that you have these libs in your buildce.bat:

echo %vcdir%\lib\arm\coredll.lib >> msvc.tmp
echo %vcdir%\lib\arm\corelibc.lib >> msvc.tmp
echo %vcdir%\lib\arm\aygshell.lib >> msvc.tmp
echo %vcdir%\lib\arm\commctrl.lib >> msvc.tmp
echo %vcdir%\lib\arm\ws2.lib >> msvc.tmp
echo %vcdir%\lib\arm\mfcce400.lib >> msvc.tmp
echo %vcdir%\lib\arm\ole32.lib >> msvc.tmp

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6
Joined: Wed Dec 21, 2005 01:21 PM
TSocket class
Posted: Wed Jan 11, 2006 03:54 PM

Thanx antonio,

Now i get these 2 errors..

Creating library vp.lib and object vp.exp FiveCEC.lib(WINSOCK.obj) : error LNK2019: unresolved external symbol "int cdecl WSAAsyncSelect(unsigned int,struct HWND *,unsigned int,long)" (?WSAAsyncSelect@@YAHIPAUHWND__@@IJ@Z) referenced in function "void __cdecl HB_FUN_WSAASYNCSELECT(void)" (?HB_FUN_WSAASYNCSELECT@@YAXXZ)

FiveCEC.lib(WINSOCK.obj) : error LNK2019: unresolved external symbol "struct servent * __cdecl getservbyname(char const ,char const )" (?getservbyname@@YAPAUservent@@PBD0@Z) referenced in function "void __cdecl HB_FUN_GETSERVBYNAME(void)" (?HB_FUN_GETSERVBYNAME@@YAXXZ)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TSocket class
Posted: Wed Jan 11, 2006 07:26 PM

Sjors,

Are you using the most recent FWPPC (FiveWin for Pocket PC) build ?

Please download it again using your login and password, and do a buildce.bat sockcli

It should build ok without any errors. Please try it and let us know your results.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6
Joined: Wed Dec 21, 2005 01:21 PM
TSocket class
Posted: Thu Jan 12, 2006 10:33 AM

Thanks antonio, after re-installing I don't get tSocket errors any more.

But here's my next question:
How can I read/create a simple text file with the lOpen() and cFReadLine() functions i get the same errors like before..

or can i send an array through.. ( maybe binairy or something? )

regards
Sjors

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TSocket class
Posted: Thu Jan 12, 2006 11:21 AM

Sjors,

To create a text file simply do: MemoWrit( cFileName, cText )

Is that what you mean ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6
Joined: Wed Dec 21, 2005 01:21 PM
TSocket class
Posted: Thu Jan 12, 2006 02:15 PM

I want is this:
- I want to send an array/file to my pocket pc.
- show as an the array in a listbox
- fill in the array ( by the user)
- save the array to a file.
- send the file/array to my pc when it connects to the docking station.

what is the best way to do this? i don't want to work with dbf-files.

regards,
Sjors

Continue the discussion