IT Community - Software Programming, Web Development and Technical Support

Socket programming in windows mobile 5.0 its support CAsyncSocket class?

This is a discussion on Socket programming in windows mobile 5.0 its support CAsyncSocket class? within the Windows Mobile forums, part of the Mobile Software Development category; I try to write a TCP server in c++ (I use Visual studio 2005) but I have a little problem... ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > Windows Mobile

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-25-2007, 01:22 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question Socket programming in windows mobile 5.0 its support CAsyncSocket class?

I try to write a TCP server in c++ (I use Visual studio 2005) but I have a little problem... The basis of my code is a sample code that came with "Digi Connect ME integration Kit". I have edited a bit, and it worked when I used it in my laptop. The program is just a dialog box that displays messages I send from HyperTerminal to com1, and the Digi board sends it back over TCP. I have tried to write for windows mobile 5.0 (new->project->smart device ....) and added much of the same code. But when I run it on my iPAQ it doesn’t work!
I think the problem may be the CAsyncSocket class. I have a feeling that Windows Mobile doesn’t support this class....?
Can anyone please help me?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 01:24 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Socket programming in windows mobile 5.0 its support CAsyncSocket class?

Hi, Use the following configuration steps:
1. Open the project file in Visual Studio.

2. Navigate to "Tools" -> "Options", and expand "Projects and Solutions", and click "VC++ Directories".

3. In "Show directories for:" select "Include files". Add the path to the mobile device include directory. If you accepted the defaults when installing Windows Mobile SDK, then the new directory will be either:
"C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Activesync\Inc"
for Pocket PC.
"C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Activesync\Inc"
for Smartphone.

4. In "Show directories for:" select "Library files". Add the path to the mobile device library directory. If you accepted the defaults when installing Windows Mobile SDK, then the new directory will be either:
"C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Activesync\Lib"
for Pocket PC.
"C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Activesync\Lib"
for Smartphone.

5. Navigate to "Build", and click "Rebuild All" to compile the executable file.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/windows-mobile/2681-socket-programming-windows-mobile-5-0-its-support-casyncsocket-class.html
Posted By For Type Date
Socket programming in windows mobile 5.0 its support CAsyncSocket ... | Web Hosting This thread Refback 09-15-2007 10:18 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
socket programming amansundar VB.NET Programming 15 07-20-2008 03:23 AM
best IDE for mobile programming amansundar Mobile Software Development 8 11-10-2007 01:15 AM
What is the difference between Windows programming and database programming? Arun VB.NET Programming 0 07-18-2007 08:58 AM
Socket Programming With PHP Jeyaseelansarc PHP Programming 0 05-16-2007 02:33 AM
XML Socket Servers programming in Flash Karpagarajan Flash Actionscript Programming 0 04-05-2007 04:00 AM


All times are GMT -7. The time now is 11:41 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0