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  
Old 07-25-2007, 12: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
  #2  
Old 07-25-2007, 12:24 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN 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 Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 01:38 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0