TSocket class

TSocket class

Postby Sjors » Wed Jan 11, 2006 1: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
Sjors
 
Posts: 6
Joined: Wed Dec 21, 2005 1:21 pm

TSocket class

Postby Sjors » Wed Jan 11, 2006 2: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
Sjors
 
Posts: 6
Joined: Wed Dec 21, 2005 1:21 pm

Postby Antonio Linares » Wed Jan 11, 2006 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

TSocket class

Postby Sjors » Wed Jan 11, 2006 3: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)
Sjors
 
Posts: 6
Joined: Wed Dec 21, 2005 1:21 pm

Postby Antonio Linares » Wed Jan 11, 2006 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

TSocket class

Postby Sjors » 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
Sjors
 
Posts: 6
Joined: Wed Dec 21, 2005 1:21 pm

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

Postby Sjors » Thu Jan 12, 2006 2: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
Sjors
 
Posts: 6
Joined: Wed Dec 21, 2005 1:21 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 3 guests