EirikO
June 28th, 2007, 05:07 AM
I have tried to write a tcp server in c++ for my pda running windows mobile 5.0. (Using Visual studio 2005)
When i run the program the OnInitDialog() method runs, but it displays the messages in a strange sequence.
I also got a error code (100093).
Can someone please have a look at my code?
Thanks!
http://www.opsanger.com/TCPServerApp.zip
Edit
Sorry me. After hours of searching the web I find out I hadn't called AfxSocketInit()...
Could visual studio generate code for this next time? (If I choose somthing smart in file->new project...?)
And about the strange sequence in CListBox... Studio 2005 has "sort = true" as default....
Its look ok now, just have to connect my pda to a WLan..
And I'm sure I will return with other stupid questions later... :p
When i run the program the OnInitDialog() method runs, but it displays the messages in a strange sequence.
I also got a error code (100093).
Can someone please have a look at my code?
Thanks!
http://www.opsanger.com/TCPServerApp.zip
Edit
Sorry me. After hours of searching the web I find out I hadn't called AfxSocketInit()...
Could visual studio generate code for this next time? (If I choose somthing smart in file->new project...?)
And about the strange sequence in CListBox... Studio 2005 has "sort = true" as default....
Its look ok now, just have to connect my pda to a WLan..
And I'm sure I will return with other stupid questions later... :p