Wrox Programmer Forums
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 19th, 2005, 08:00 AM
Registered User
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tanay
Default visual cpp

  i am working in speech recognition, for this i am using SR Engine of the microsoft, i add the engine in my program as activex component
there is no compile error in my program, but when i run my program
 then when the function of the engine need to called then follwing error occurs: assertion failed!

 void AFX_CDECL CWnd::InvokeHelper(DISPID dwDispID, WORD wFlags, VARTYPE vtRet, void* pvRet, const BYTE* pbParamInfo, ...)
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)
    if (m_pCtrlSite == NULL)
    va_list argList;
    va_start(argList, pbParamInfo);
    m_pCtrlSite->InvokeHelperV(dwDispID, wFlags, vtRet, pvRet, pbParamInfo,

 & my code is as follows:

       BOOL CDlg2::OnInitDialog()

      MessageBox("This is shown by Tanay");
    // TODO: Add extra initialization here
     CDirectSR DirectSR1;
    CString str ;//+="dfdfdf";
         str +="<start>=move";
         str +="\n";
         str +="<start>=turn";
    return TRUE; // return TRUE unless you set the focus to a control
                  // EXCEPTION: OCX Property Pages should return FALSE

    when the " DirectSR1.GrammarFromString(str);" &
        " DirectSR1.Activate()"
  need to call invokehelper, the insertion failed
   can any body help me how to rescue from this problem
  my e-mail address is:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sol3_4.cpp (Ex3_04 p.157) mana BOOK: Ivor Horton's Beginning Visual C++ 2005 0 April 1st, 2008 02:39 AM
Ex6_02.cpp spareparts BOOK: Ivor Horton's Beginning Visual C++ 2005 1 February 19th, 2008 07:15 PM
ex8_07.cpp compile error GIGI Visual C++ 2005 1 November 2nd, 2007 10:01 AM
EX7_13.cpp, Page 369 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 June 9th, 2006 05:41 AM
visual cpp tanay Visual C++ 0 May 19th, 2005 07:47 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.