[Qt-interest] Qt network @ windows solved, but...
Sean Harmer
sean.harmer at maps-technology.com
Sat Jan 30 12:51:36 CET 2010
Hi,
Miguel Cardenas wrote:
> Hello
>
> My problem is now solved, QFtp is okay... it was due a big size fixed
> buffer char[1000000] to load the file to send into memory, but the
> read() function crashed the program when passing such buffer, I did it
> dynamic by calling 'new' and the program works now with windows...
>
> My previous doubt about WS2_32.lib and WSAStartup() is still unresolved,
> do I have to link that library and initialize sockets or not? I did it
> that way with my QFtp program and it is working, don't want to move
> nothing to avoid fixing it again, but are they necesary or not? Sorry,
> never have used socket connection services via Qt...
No you do not need to explicitly link to WS2_32.lib or call
WSAStartup(). Just use the Qt classes directly. BTW QFtp is deprecated,
best to use QNetworkAccessManager and QNetworkReply instead for new code.
Cheers,
Sean
More information about the Qt-interest-old
mailing list