Click here to Skip to main content
15,909,193 members
Home / Discussions / Mobile
   

Mobile

 
QuestionProgramming joystick with Ms embedded vc on the pocket pc Pin
mousemicky24-Nov-08 8:13
mousemicky24-Nov-08 8:13 
QuestionThe problem of scrolling a scroll in a dialog ? Pin
oppstp24-Nov-08 5:47
oppstp24-Nov-08 5:47 
QuestionHow to connect a PDA to a remote mysql database? Pin
baburman24-Nov-08 5:41
baburman24-Nov-08 5:41 
QuestionWinCE Services and Logging Pin
Like2Byte18-Nov-08 11:07
Like2Byte18-Nov-08 11:07 
AnswerRe: WinCE Services and Logging Pin
Giannakakis Kostas19-Nov-08 3:14
professionalGiannakakis Kostas19-Nov-08 3:14 
GeneralRe: WinCE Services and Logging Pin
Like2Byte19-Nov-08 3:48
Like2Byte19-Nov-08 3:48 
QuestionGDI: How do we repaint a static control placed on gradient background Pin
vmsjames17-Nov-08 12:42
vmsjames17-Nov-08 12:42 
QuestionWriteFile returns Success(Nonzero Value) NumberofBytesWritten is 0 Pin
Shiva Prasad9-Nov-08 2:50
Shiva Prasad9-Nov-08 2:50 
Hi,

I am running a WinCE6.0 Stream interface Driver on a DTE device which will open a handle to Serial port which is
connected to a modem.WriteFile API returns non-zero Value, but NumberofbytesWritten parameters is coming as Zero.

The Windows CE 6.0 device is a DTE terminal and when connected to PC (Another DTE)) over NULL Modem cable with hyperterminal, all the data from the are seen on the hyperterminal, and WriteFile API fills the NumberofbytesWritten is exactly the same as the
bytestoWrite.

When the CE6.0 DTE device is connected to DCE Modemdevice using a Straight serial cable, WriteFile API
is succedding by returning Non-Zero Value, but NumberofbytesWritten parameters is coming as Zero.

The following is the DCB in the driver:
dcb.BaudRate = m_BaudRate;(115200)
dcb.fBinary = TRUE;
dcb.fParity = TRUE;
dcb.fOutxCtsFlow = TRUE;
dcb.fOutxDsrFlow = FALSE;
dcb.fDtrControl = DTR_CONTROL_ENABLE;
dcb.fDsrSensitivity = FALSE;
dcb.fTXContinueOnXoff = TRUE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.fErrorChar = FALSE;
dcb.fNull = FALSE;
dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
dcb.fAbortOnError = FALSE;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;
Also, I am setting EscapeCommFunction(m_hCOMHandle,SETDTR);

On the hyperteminal I have the following setting:
baudrate = 115200
Data bit = 8
Parity=None
StopBit=1
FlowControl=None

Also, with the same hyperterminal setting with PC(Hyperterminal) connected to Modem over Straight SErial cable,
I am able to fire the AT Commands from the PC(hyperterminal) to the modem.

Also CommTimeout, I have set the following:

CT.ReadIntervalTimeout = MAXDWORD;
CT.ReadTotalTimeoutMultiplier = 0;
CT.ReadTotalTimeoutConstant = 0;
CT.WriteTotalTimeoutMultiplier = 0;
CT.WriteTotalTimeoutConstant = 100;

-Can a timeout issue cause WriteFile Still succeed and Numberof Bytes Written as zero?
- In hyperterminal Flow Control None, what are the Flow control affected in the DCB?

Can somebody give me some hints on the same.

Thanks..
QuestionExcel file Pin
Praful Nand N7-Nov-08 22:12
Praful Nand N7-Nov-08 22:12 
QuestionRe: Excel file Pin
danhpt8-Nov-08 17:28
danhpt8-Nov-08 17:28 
AnswerRe: Excel file Pin
ujjawal kumar12-May-09 2:45
ujjawal kumar12-May-09 2:45 
QuestionConfiguration Quandary Pin
pdohara7-Nov-08 5:55
pdohara7-Nov-08 5:55 
QuestionHow to load a client driver programatically... Pin
abupriabi@yahoo.com6-Nov-08 10:45
abupriabi@yahoo.com6-Nov-08 10:45 
Questionstop multiple instance of same program Pin
Cory Kimble5-Nov-08 4:42
Cory Kimble5-Nov-08 4:42 
AnswerRe: stop multiple instance of same program Pin
Joel Ivory Johnson5-Nov-08 17:59
professionalJoel Ivory Johnson5-Nov-08 17:59 
AnswerRe: stop multiple instance of same program Pin
Giannakakis Kostas6-Nov-08 3:08
professionalGiannakakis Kostas6-Nov-08 3:08 
AnswerRe: stop multiple instance of same program Pin
PavanPareta7-Nov-08 2:16
PavanPareta7-Nov-08 2:16 
AnswerRe: stop multiple instance of same program Pin
Jakob Olsen13-Jul-09 9:41
Jakob Olsen13-Jul-09 9:41 
QuestionHow to transfer file via bluetooth from desktop PC to Windows Mobile Device Pin
yudhisthira31-Oct-08 19:14
yudhisthira31-Oct-08 19:14 
AnswerRe: How to transfer file via bluetooth from desktop PC to Windows Mobile Device Pin
Joel Ivory Johnson4-Nov-08 19:07
professionalJoel Ivory Johnson4-Nov-08 19:07 
Questioncan any one help me ? Pin
yemen_programer30-Oct-08 0:30
yemen_programer30-Oct-08 0:30 
AnswerUsing bluetooth for downloading Pin
Joel Ivory Johnson4-Nov-08 19:02
professionalJoel Ivory Johnson4-Nov-08 19:02 
GeneralRe: Using bluetooth for downloading Pin
yemen_programer5-Nov-08 21:32
yemen_programer5-Nov-08 21:32 
GeneralRe: Using bluetooth for downloading Pin
Joel Ivory Johnson6-Nov-08 5:18
professionalJoel Ivory Johnson6-Nov-08 5:18 
QuestionPlz Help Pin
wasimsharp30-Oct-08 0:18
wasimsharp30-Oct-08 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.