Click here to Skip to main content
15,910,130 members
Home / Discussions / Mobile
   

Mobile

 
GeneralProcessing rowset in SQL CE Pin
Member 105289920-Jun-04 18:26
Member 105289920-Jun-04 18:26 
GeneralError:Not enough storage space to perform this command Pin
Member 105289920-Jun-04 0:43
Member 105289920-Jun-04 0:43 
GeneralADO Database Pin
#realJSOP18-Jun-04 10:15
professional#realJSOP18-Jun-04 10:15 
GeneralRe: ADO Database Pin
João Paulo Figueira18-Jun-04 23:36
professionalJoão Paulo Figueira18-Jun-04 23:36 
GeneralRe: ADO Database Pin
#realJSOP21-Jun-04 2:41
professional#realJSOP21-Jun-04 2:41 
GeneralRe: ADO Database Pin
João Paulo Figueira21-Jun-04 3:48
professionalJoão Paulo Figueira21-Jun-04 3:48 
GeneralRe: ADO Database Pin
#realJSOP21-Jun-04 4:18
professional#realJSOP21-Jun-04 4:18 
GeneralConnecting to COM port Pin
Member 1697718-Jun-04 3:44
Member 1697718-Jun-04 3:44 
Hi all,

I want to write the data to COM Port using embeddedVC++ 4.0 .But nothing comes on COM port, code is as follows.
If i debug the application it shows COM port is opened successfully,number of Bytes written is also correct
Do i need to do some settings in emulator to make it connect to com port??

same code works fine in VC++6.0.

////
wchar_t rightString[80];
wcscpy(rightString,_T("Hello"));
DCB m_DCB;

m_DCB.DCBlength = sizeof(m_DCB);
m_DCB.BaudRate = 9600;
m_DCB.ByteSize = 8;
m_DCB.fBinary = TRUE;
m_DCB.Parity = NOPARITY;
m_DCB.StopBits = ONESTOPBIT;
m_DCB.fParity = TRUE;
m_DCB.fNull = FALSE;
m_DCB.XonChar = 0x11;
m_DCB.XoffChar = 0x13;
m_DCB.XonLim = 80;
m_DCB.XoffLim = 200;
m_DCB.fAbortOnError = TRUE;
m_DCB.fOutX = false;
m_DCB.fInX = false;

HANDLE m_hPort = CreateFile(_T("COM1:"), GENERIC_READ |
GENERIC_WRITE, 0,NULL, OPEN_EXISTING, 0, NULL);
SetCommState(m_hPort,&m_DCB);
if(m_hPort == NULL)
AfxMessageBox(_T("Can not open port"));
else
if(WriteFile(m_hPort, rightString, 10, &BytesWritten, NULL))
AfxMessageBox(_T("Successfully written"));

CloseHandle(m_hPort);
///

Thanks in Advance
Tushar Mahajan

GeneralRe: Connecting to COM port Pin
glweid21-Jun-04 10:34
glweid21-Jun-04 10:34 
GeneralProblem in using Composite index in Seek method on OLEDB/SQL CE Pin
AKSIVAKUMAR17-Jun-04 21:37
AKSIVAKUMAR17-Jun-04 21:37 
GeneralOut of memory Pin
group716-Jun-04 20:15
group716-Jun-04 20:15 
Generalmenubar problem in eVC4.0 Pin
group716-Jun-04 18:07
group716-Jun-04 18:07 
GeneralEVC++ 4.0 Emulator Pin
#realJSOP16-Jun-04 10:16
professional#realJSOP16-Jun-04 10:16 
GeneralRe: EVC++ 4.0 Emulator Pin
João Paulo Figueira16-Jun-04 11:43
professionalJoão Paulo Figueira16-Jun-04 11:43 
GeneralRe: EVC++ 4.0 Emulator Pin
#realJSOP17-Jun-04 3:07
professional#realJSOP17-Jun-04 3:07 
GeneralRe: EVC++ 4.0 Emulator Pin
João Paulo Figueira17-Jun-04 3:37
professionalJoão Paulo Figueira17-Jun-04 3:37 
GeneralRe: EVC++ 4.0 Emulator Pin
#realJSOP21-Jun-04 2:45
professional#realJSOP21-Jun-04 2:45 
QuestionWhere is Add/Remove Programs located? Pin
KellyR16-Jun-04 6:59
KellyR16-Jun-04 6:59 
Generaltabcontrol of Form of a Smart Device App from . NET Pin
ting66816-Jun-04 0:43
ting66816-Jun-04 0:43 
GeneralNew Language for creating Mobile Applications Pin
smitakiran15-Jun-04 22:33
smitakiran15-Jun-04 22:33 
Generalmain menu & toolbar Pin
khchan15-Jun-04 22:30
khchan15-Jun-04 22:30 
GeneralWriting new language for PPC ! Pin
Hadi Rezaee15-Jun-04 11:40
Hadi Rezaee15-Jun-04 11:40 
GeneralRe: Writing new language for PPC ! Pin
João Paulo Figueira15-Jun-04 22:00
professionalJoão Paulo Figueira15-Jun-04 22:00 
GeneralRe: Writing new language for PPC ! Pin
Hadi Rezaee17-Jun-04 6:38
Hadi Rezaee17-Jun-04 6:38 
GeneralMobile Application Pin
Masood Lodhi15-Jun-04 10:21
Masood Lodhi15-Jun-04 10:21 

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.