Page 1 of 1

TSocket class

PostPosted: Wed Jan 11, 2006 1:43 pm
by Sjors
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

TSocket class

PostPosted: Wed Jan 11, 2006 2:45 pm
by Sjors
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

PostPosted: Wed Jan 11, 2006 3:11 pm
by Antonio Linares
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

TSocket class

PostPosted: Wed Jan 11, 2006 3:54 pm
by Sjors
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)

PostPosted: Wed Jan 11, 2006 7:26 pm
by Antonio Linares
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.

TSocket class

PostPosted: Thu Jan 12, 2006 10:33 am
by Sjors
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

PostPosted: Thu Jan 12, 2006 11:21 am
by Antonio Linares
Sjors,

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

Is that what you mean ?

PostPosted: Thu Jan 12, 2006 2:15 pm
by Sjors
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