Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing process access levels/rights Pin
Luke Murray2-Nov-05 12:56
Luke Murray2-Nov-05 12:56 
GeneralRe: changing process access levels/rights Pin
__yb2-Nov-05 22:21
__yb2-Nov-05 22:21 
GeneralRe: changing process access levels/rights Pin
Luke Murray3-Nov-05 14:16
Luke Murray3-Nov-05 14:16 
Questionhow to get the file's full path from printer queue? Pin
szcococut30-Oct-05 15:10
szcococut30-Oct-05 15:10 
AnswerRe: how to get the file's full path from printer queue? Pin
Mircea Puiu30-Oct-05 21:11
Mircea Puiu30-Oct-05 21:11 
Questioni need help!!! Pin
gr8coaster32930-Oct-05 14:55
gr8coaster32930-Oct-05 14:55 
AnswerRe: i need help!!! Pin
Christian Graus30-Oct-05 15:13
protectorChristian Graus30-Oct-05 15:13 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 15:28
gr8coaster32930-Oct-05 15:28 
the code that i used i just copied and pasted from the articles:

typedef struct tag_key
{
  int mid;
  int pid;
  int chd;
  HTREEITEM hItem;
  HTREEITEM hParent;
  char txt[32];
  char ref[128];
}KEY;

KEY aKeys[NUMBER_OF_KEYS];


HRESULT CWebVoice::LoadGrammar()
{
  USES_CONVERSION;  
  HRESULT hr;

  SPPROPERTYINFO pi; 
  ZeroMemory(&pi,sizeof(SPPROPERTYINFO));
  pi.ulId      = RID_MenuItem;  // property ID
  pi.vValue.vt = VT_UI4;

  // add menu items to the dynamic grammar rule
  for(int i=0; i < m_nNumKeys; i++) {
    pi.vValue.ulVal = i+1;     // Property_Value == data_index + 1
    hr=m_cpGrammar->AddWordTransition(hRule,NULL,
         T2W(aKeys[i].txt),L" ",SPWT_LEXICAL,1,&pi);
    if(FAILED(hr)) return hr;
  }

  // add a wildcard phrase
  pi.vValue.ulVal = 0;
  hr=m_cpGrammar->AddWordTransition(hRule, 
     NULL, L"*", L" ", SPWT_LEXICAL, 1, &pi);
  if(FAILED(hr)) return hr;

  hr=m_cpGrammar->Commit(NULL);                  if(FAILED(hr)) return hr;
  hr=m_cpGrammar->SetGrammarState(SPGS_ENABLED); if(FAILED(hr)) return hr;
  return hr;
}


and other code from http://www.codeproject.com/audio/WebVoicePkg.asp[^] and http://www.codeproject.com/cs/media/tambiSR.asp[^]

i dont know how to do any of the speech recognition code. all i know, from other articles, is that you have to initialize the sapi, load the grammar, and something with the recognition contex thing. i dont know how to do any of this or anything else with the voice recognition.

and if not asking too much, how to display the UI's associated with the speech sdk, the user profile, mic training, user training, engine properties and the other ones like that. i have the buttons but dont know the code that displays them, i found the displayUI function but am not sure how to use it.

Christian Graus wrote:
Each version of VC becomes more standards compliant. Perhaps the library is not compliant enough for VC2005 ?


so what do i have to do to get it to work?


Christian Graus wrote:
Which bit are you stuck with ?


i have the xml document and the tree view control i just dont know how to get the contents of the xml put into the tree view.

thank you for the help and fast reply.

- Kyle

-- modified at 21:37 Sunday 30th October, 2005
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 15:54
protectorChristian Graus30-Oct-05 15:54 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 16:01
gr8coaster32930-Oct-05 16:01 
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 16:03
protectorChristian Graus30-Oct-05 16:03 
QuestionHow to use GridCtrl? Pin
codechen47030-Oct-05 14:01
codechen47030-Oct-05 14:01 
AnswerRe: How to use GridCtrl? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
Questioncopy paste linux style in windows Pin
Noam Ben Haim30-Oct-05 4:50
Noam Ben Haim30-Oct-05 4:50 
AnswerRe: copy paste linux style in windows Pin
__yb31-Oct-05 21:40
__yb31-Oct-05 21:40 
Questionhelp! how to carry out this function? Pin
ewighell30-Oct-05 4:30
ewighell30-Oct-05 4:30 
AnswerRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 11:40
protectorChristian Graus30-Oct-05 11:40 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 14:35
ewighell30-Oct-05 14:35 
GeneralRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 15:10
ewighell30-Oct-05 15:10 
GeneralRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 15:11
protectorChristian Graus30-Oct-05 15:11 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 15:18
ewighell30-Oct-05 15:18 
QuestionSpeed up compilation by ramdisk? Pin
Christof Schardt30-Oct-05 0:46
Christof Schardt30-Oct-05 0:46 
AnswerRe: Speed up compilation by ramdisk? Pin
Gary R. Wheeler31-Oct-05 3:26
Gary R. Wheeler31-Oct-05 3:26 
GeneralRe: Speed up compilation by ramdisk? Pin
Blake Miller31-Oct-05 4:01
Blake Miller31-Oct-05 4:01 

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.