Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionListctrl Problem Pin
shivditya30-Oct-05 16:42
shivditya30-Oct-05 16:42 
QuestionNo One to answer ? Pin
shivditya30-Oct-05 17:30
shivditya30-Oct-05 17:30 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:38
protectorChristian Graus30-Oct-05 17:38 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:40
shivditya30-Oct-05 17:40 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:48
protectorChristian Graus30-Oct-05 17:48 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:51
shivditya30-Oct-05 17:51 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:54
protectorChristian Graus30-Oct-05 17:54 
AnswerRe: Listctrl Problem Pin
shivditya30-Oct-05 18:01
shivditya30-Oct-05 18:01 
GeneralRe: Listctrl Problem Pin
Christian Graus30-Oct-05 18:07
protectorChristian Graus30-Oct-05 18:07 
GeneralRe: Listctrl Problem Pin
ThatsAlok30-Oct-05 21:27
ThatsAlok30-Oct-05 21:27 
GeneralRe: Listctrl Problem Pin
ThatsAlok30-Oct-05 21:29
ThatsAlok30-Oct-05 21:29 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:46
shivditya30-Oct-05 17:46 
Questionchanging process access levels/rights Pin
Luke Murray30-Oct-05 15:39
Luke Murray30-Oct-05 15:39 
AnswerRe: changing process access levels/rights Pin
__yb31-Oct-05 21:33
__yb31-Oct-05 21:33 
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 

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.