Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmfc receive sms [modified] Pin
saneevil20-Feb-10 3:16
saneevil20-Feb-10 3:16 
AnswerRe: mfc receive sms Pin
CPallini20-Feb-10 4:16
mveCPallini20-Feb-10 4:16 
QuestionMore help sought for my Monitoring and Controlling Worker Thread article... Pin
Ben Aldhouse20-Feb-10 2:11
Ben Aldhouse20-Feb-10 2:11 
AnswerRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Stephen Hewitt20-Feb-10 3:24
Stephen Hewitt20-Feb-10 3:24 
GeneralRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Ben Aldhouse20-Feb-10 21:35
Ben Aldhouse20-Feb-10 21:35 
AnswerRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Randor 20-Feb-10 11:53
professional Randor 20-Feb-10 11:53 
GeneralRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Ben Aldhouse20-Feb-10 21:43
Ben Aldhouse20-Feb-10 21:43 
GeneralRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Ben Aldhouse26-Feb-10 11:49
Ben Aldhouse26-Feb-10 11:49 
Hi Dave,

I've got the project working with the following alterations...

Here is the sending code in MakeListing...
CString* pString = new CString(FindFileData.cFileName);
SendMessageTimeout(pMyView->GetSafeHwnd(), CURFILEEVENT, (WPARAM)pString, 0, 0,  1000, 0);
delete pString;

Here is the receiving function...

LRESULT CRecThread2008_64Dlg::OnCURFILEEVENT(UINT wParam, LONG lParam)
{

	CString* pString = (CString*)wParam;
	CString tempStr = pString->GetBuffer();

	m_iNoFiles++;
	CString tString=LPCTSTR("");
	tString.Format(_T("%d"),m_iNoFiles);
	m_strNoFiles = tString;
    
	m_strFileList= tempStr + _T("\r\n")+ m_strFileList;
	m_strFileList = m_strFileList.Left(500);

    UpdateData(FALSE);    
    return 0;
}


And it works without the sleep block - so I have got rid of that!

I think I getting near to a point where I can start to rewrite the article...

Thank you for your help with this,

Ben.
GeneralRe: More help sought for my Monitoring and Controlling Worker Thread article... Pin
Ben Aldhouse13-Apr-10 10:38
Ben Aldhouse13-Apr-10 10:38 
Questionhow do i send a long sms exceeding 160 characters using AT command? Pin
Le@rner20-Feb-10 1:03
Le@rner20-Feb-10 1:03 
AnswerRe: how do i send a long sms exceeding 160 characters using AT command? PinPopular
Richard MacCutchan20-Feb-10 4:05
mveRichard MacCutchan20-Feb-10 4:05 
QuestionHow Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner19-Feb-10 23:43
Le@rner19-Feb-10 23:43 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Garth J Lancaster20-Feb-10 0:10
professionalGarth J Lancaster20-Feb-10 0:10 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 0:37
mveRichard MacCutchan20-Feb-10 0:37 
QuestionRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 1:48
Maximilien20-Feb-10 1:48 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner20-Feb-10 1:53
Le@rner20-Feb-10 1:53 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 4:02
mveRichard MacCutchan20-Feb-10 4:02 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 4:26
Maximilien20-Feb-10 4:26 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner21-Feb-10 18:20
Le@rner21-Feb-10 18:20 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
m_k_b_h14-Jul-11 0:02
m_k_b_h14-Jul-11 0:02 
QuestionSecondary Desktop Pin
trioum19-Feb-10 21:11
trioum19-Feb-10 21:11 
AnswerRe: Secondary Desktop Pin
Richard MacCutchan20-Feb-10 0:38
mveRichard MacCutchan20-Feb-10 0:38 
GeneralRe: Secondary Desktop Pin
Maximilien20-Feb-10 1:53
Maximilien20-Feb-10 1:53 
GeneralRe: Secondary Desktop Pin
trioum20-Feb-10 21:44
trioum20-Feb-10 21:44 
AnswerRe: Secondary Desktop Pin
WoutL20-Feb-10 2:32
WoutL20-Feb-10 2:32 

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.