Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: progid Pin
George_George5-Sep-08 0:50
George_George5-Sep-08 0:50 
GeneralRe: progid Pin
User 2155975-Sep-08 0:55
User 2155975-Sep-08 0:55 
GeneralRe: progid Pin
George_George5-Sep-08 1:06
George_George5-Sep-08 1:06 
GeneralRe: progid Pin
User 2155975-Sep-08 1:24
User 2155975-Sep-08 1:24 
GeneralRe: progid Pin
George_George5-Sep-08 1:43
George_George5-Sep-08 1:43 
Questionproblem in reading data from com port Pin
manju23reddy4-Sep-08 20:22
manju23reddy4-Sep-08 20:22 
QuestionRe: problem in reading data from com port Pin
Roger Stoltz4-Sep-08 22:19
Roger Stoltz4-Sep-08 22:19 
AnswerRe: problem in reading data from com port Pin
manju23reddy5-Sep-08 8:05
manju23reddy5-Sep-08 8:05 
hi the at command works correctly it echos ok.

this is my read data code
<br />
bool ReadPort()<br />
{<br />
     long int dwSize = 0;<br />
     bool hResult = false;<br />
     std::string sb = "";<br />
     DWORD dwEventMask;<br />
<br />
     if(!SetCommMask(hComm, EV_RXCHAR)) /* Setting Event Type */<br />
	 {	<br />
        return hResult;<br />
     }<br />
<br />
	if(WaitCommEvent(hComm, &dwEventMask, NULL)) /* Waiting For Event to Occur */<br />
	{<br />
		char szBuf[1024];<br />
		DWORD dwIncommingReadSize;<br />
<br />
		do<br />
		{<br />
			if(ReadFile(hComm, &szBuf, 1024, &dwIncommingReadSize, NULL) != 0)<br />
			{<br />
				if(dwIncommingReadSize > 0)<br />
				{<br />
					dwSize += dwIncommingReadSize;<br />
				    sb.append(szBuf);<br />
				}<br />
				hResult = true;<br />
			}<br />
<br />
			else<br />
			{<br />
				unsigned long error = ::GetLastError();<br />
				hResult = false;<br />
				printf("the error while reading error is %dl\n", error);<br />
				break;<br />
			}<br />
		} while(dwIncommingReadSize > 0);<br />
<br />
		*readData = new char[dwSize];<br />
		strcpy(*readData, sb.c_str());<br />
		return hResult;<br />
	}<br />
    else<br />
    {<br />
		return hResult;<br />
    }<br />
<br />
}<br />

it stops to WaitCommEvent function i feel i need to do some settings for my phone and pc to transfer the data serially but now it is PIM iam totally blank if u have any such settings for the transfer of data via serial com of bluetooth plz send in me... my phone is nokia 6288 i know this is not the forum for phone settings but please help me...
AnswerRe: problem in reading data from com port Pin
Roger Stoltz7-Sep-08 22:43
Roger Stoltz7-Sep-08 22:43 
Questionstring trim and toupper/tolower Pin
George_George4-Sep-08 19:47
George_George4-Sep-08 19:47 
AnswerRe: string trim and toupper/tolower Pin
Nibu babu thomas4-Sep-08 19:59
Nibu babu thomas4-Sep-08 19:59 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 20:04
George_George4-Sep-08 20:04 
GeneralRe: string trim and toupper/tolower Pin
Nibu babu thomas4-Sep-08 21:03
Nibu babu thomas4-Sep-08 21:03 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 21:40
George_George4-Sep-08 21:40 
GeneralRe: string trim and toupper/tolower Pin
Nibu babu thomas4-Sep-08 21:48
Nibu babu thomas4-Sep-08 21:48 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 21:58
George_George4-Sep-08 21:58 
GeneralRe: string trim and toupper/tolower Pin
Nibu babu thomas4-Sep-08 22:19
Nibu babu thomas4-Sep-08 22:19 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 22:47
George_George4-Sep-08 22:47 
AnswerRe: string trim and toupper/tolower Pin
Naveen4-Sep-08 20:10
Naveen4-Sep-08 20:10 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 20:11
George_George4-Sep-08 20:11 
AnswerRe: string trim and toupper/tolower Pin
Rajesh R Subramanian4-Sep-08 20:41
professionalRajesh R Subramanian4-Sep-08 20:41 
GeneralRe: string trim and toupper/tolower Pin
George_George4-Sep-08 21:39
George_George4-Sep-08 21:39 
QuestionClass initialization and memory allocation Pin
Christian Flutcher4-Sep-08 19:11
Christian Flutcher4-Sep-08 19:11 
AnswerRe: Class initialization and memory allocation [modified] Pin
_AnsHUMAN_ 4-Sep-08 19:27
_AnsHUMAN_ 4-Sep-08 19:27 
GeneralRe: Class initialization and memory allocation Pin
Christian Flutcher4-Sep-08 19:40
Christian Flutcher4-Sep-08 19:40 

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.