Click here to Skip to main content
16,015,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a question of edit control Pin
ilavl31-May-02 17:10
ilavl31-May-02 17:10 
Questioncallback or thread? Pin
bryce31-May-02 0:00
bryce31-May-02 0:00 
AnswerRe: callback or thread? Pin
Tomasz Sowinski31-May-02 0:10
Tomasz Sowinski31-May-02 0:10 
AnswerRe: callback or thread? Pin
James R. Twine31-May-02 10:31
James R. Twine31-May-02 10:31 
AnswerRe: callback or thread? Pin
Ed Gadziemski31-May-02 11:44
professionalEd Gadziemski31-May-02 11:44 
QuestionIs there an include required for threads? Pin
Nnamdi Onyeyiri30-May-02 23:11
Nnamdi Onyeyiri30-May-02 23:11 
AnswerRe: Is there an include required for threads? Pin
Michael P Butler30-May-02 23:43
Michael P Butler30-May-02 23:43 
GeneralRe: Is there an include required for threads? Pin
Nnamdi Onyeyiri30-May-02 23:45
Nnamdi Onyeyiri30-May-02 23:45 
void CSpeakItDlg::OnSpeakit() 
{
	AfxBeginThread(DoSpeak, this);
}

void CSpeakItDlg::DoSpeak()
{
	ISpVoice * pVoice = NULL;

    if (FAILED(CoInitialize(NULL)))
	{
		AfxMessageBox("Error to intiliaze COM");
        return;
	}

    HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
    if( SUCCEEDED( hr ) )
    {
        hr = pVoice->Speak(m_sText.AllocSysString(), 0, NULL);
        pVoice->Release();
        pVoice = NULL;
    }

    CoUninitialize();
}

UINT CSpeakItDlg::DoSpeak(LPVOID lpv)
{	
	 CSpeakItDlg * me = (CSpeakItDlg *)lpv;
     me->DoSpeak();
     return 0;
}


==================================================
Homepage: www.onyeyiri.co.uk
Email: theeclypse@hotmail.com

"I'm not any old Eclypse, i'm TheEclypse..get it, got it, good!"
GeneralRe: Is there an include required for threads? Pin
Michael P Butler30-May-02 23:53
Michael P Butler30-May-02 23:53 
GeneralRe: Is there an include required for threads? Pin
Nnamdi Onyeyiri31-May-02 0:02
Nnamdi Onyeyiri31-May-02 0:02 
GeneralRe: Is there an include required for threads? Pin
Nish Nishant31-May-02 0:10
sitebuilderNish Nishant31-May-02 0:10 
GeneralRe: Is there an include required for threads? Pin
markkuk31-May-02 2:06
markkuk31-May-02 2:06 
GeneralRe: Is there an include required for threads? Pin
Tomasz Sowinski30-May-02 23:50
Tomasz Sowinski30-May-02 23:50 
QuestionHow to change input of edit of another program in my own problem? Pin
mzt30-May-02 22:58
mzt30-May-02 22:58 
AnswerRe: How to change input of edit of another program in my own problem? Pin
Mike Nordell1-Jun-02 0:27
Mike Nordell1-Jun-02 0:27 
GeneralNetwork Application Winsock (Modem) Pin
Sameer Maggon30-May-02 21:26
Sameer Maggon30-May-02 21:26 
GeneralRe: Network Application Winsock (Modem) Pin
lucy31-May-02 4:57
lucy31-May-02 4:57 
GeneralRe: Network Application Winsock (Modem) Pin
31-May-02 13:01
suss31-May-02 13:01 
GeneralShell Context menu and "Send To" Pin
Neville Franks30-May-02 21:02
Neville Franks30-May-02 21:02 
GeneralRe: Shell Context menu and "Send To" Pin
_Magnus_30-May-02 21:48
_Magnus_30-May-02 21:48 
GeneralRe: Shell Context menu and "Send To" Pin
_Magnus_30-May-02 21:53
_Magnus_30-May-02 21:53 
GeneralRe: Shell Context menu and "Send To" Pin
_Magnus_30-May-02 22:03
_Magnus_30-May-02 22:03 
GeneralRe: Shell Context menu and "Send To" Pin
Neville Franks31-May-02 3:13
Neville Franks31-May-02 3:13 
GeneralRe: Shell Context menu and "Send To" Pin
_Magnus_31-May-02 3:26
_Magnus_31-May-02 3:26 
GeneralRe: Shell Context menu and "Send To" Pin
Neville Franks31-May-02 3:44
Neville Franks31-May-02 3:44 

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.