|
In my experience ( four client/server projects deploying winsock 2.0) is to avoid CSocket and CAsyncSocket at all costs!
A basic server implementing *raw* sockets can be coded in more or less 3 hours, that includes the Multithreading side as well. A good book to buy is Programming Winsock 2.0 by Lewis Napper.
Hope this helps.
Normski. - Professional Windows Programmer
|
|
|
|
|
I need the advice from somebody who already made software product using Microsoft Speech SDK. I want to implement simplest command recognition. After trying the SDK samples and writing small prototype I found that recognition quality seems to be not enough for my product. Now I consider to check out other products such as The Dragon NaturallySpeaking® SDK.
However, Microsoft programming interface is really the best and I can waste a lot of time learning other products and finally get almost same recognition quality.
My question is: are there speech recognition engines significally better than one supplied with Microsoft Speech SDK?
I need only English support for now, and my command dictionary is supposed to contain 20-30 commands.
Any information from developers who already used Microsoft Speech SDK or other product will be helpful to me.
Thank you in advance.
|
|
|
|
|
Alex Farber wrote:
[...] I found that recognition quality seems to be not enough for my product.
What kind of hardware are you using (microphone), and how much have you trained the engine? Those have a decent effect on the accuracy of the engine.
Peace!
-=- James.
|
|
|
|
|
1) Creative VIBRA sound card
2) Andrea DA-400 2.0 Desktop Array Microphone
3) I created my profile using Speech Settings Wizard and set it's sensitivity and accuracy to the values that seem to be optimal.
The program executes my commands, but if I am just talking (event not in English), it sometimes reacts. I consider to turn on microphone only when I make the command, and turn it off after this. I am wondering if any other speech recognition engine has such paranoidal reactions?
|
|
|
|
|
Hi All,
Is there any API or Interface to query browser "in which internet zone existing web-page is?" I wanted to do it programmatically. I can see an icon and text get displayed at right-hand-side of status-bar.
Thanks for your suggestions.
-- Sumit
|
|
|
|
|
There are a lot of information on that in MSDN, so I won't copy it here. Look for interface IInternetZoneManager in MSDN and you'll find all what you need
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Sent you by e-mail, by in case some one else want to know that, so below the code that do the work:
USES_CONVERSION;
CString csZone = _T("Unknown");
IInternetSecurityManager *pManager = NULL;
HRESULT hr = CoCreateInstance(CLSID_InternetSecurityManager, NULL, CLSCTX_INPROC_SERVER,
IID_IInternetSecurityManager,(void**)&pManager);
if (hr == S_OK) {
DWORD dwZone;
pManager->MapUrlToZone(T2OLE(lpszURL), &dwZone, 0);
pManager->Release();
switch(dwZone) {
case URLZONE_LOCAL_MACHINE:
csZone = _T("Local");
break;
case URLZONE_INTRANET:
csZone = _T("Local Network");
break;
case URLZONE_TRUSTED:
csZone = _T("Trusted");
break;
case URLZONE_INTERNET:
csZone = _T("Internet");
break;
case URLZONE_UNTRUSTED:
csZone = _T("Untrusted");
break;
default:
csZone = _T("Unknown");
break;
}
}
csZone now contains the name of zone
The lpszURL contains the URL to check
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Hi,
I'm chasing some code that will let me insert splitter panes dynamically. For example I want to start with 2 rows, and then add extra ones when required. Any ideas?
Thanks
|
|
|
|
|
Look for CSplitterWnd in MSDN. There are methods like SplitRow() and DeleteRow() that can do the work for you
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
This is really fundamental, but no matter how i tried, I can't create modeless dialogs. I used Create and ShowWindow as stated in books but my dialog remained modal.
if (resultsdlg != NULL)
resultsdlg->SetFocus();
else
{
resultsdlg = new CResultsDialog;
resultsdlg->Create(IDD_RESULTS);
resultsdlg->ShowWindow(SW_SHOW);
}
And in the .rc file, my dialog style is:
WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
I've tried with DS_MODALFRAME, WS_CHILD, and many other combinations, but none worked. Please help!
|
|
|
|
|
I tend to put the create and showwindow calls in the constuctor, it makes the code much nicer. I also always specify this as the parent, you never know when you'll want to know who the parent is.
Have you traced to see this code is being called ? Initialised resultsdlg to NULL ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Yes, I've initialised resultsdlg to NULL and tried Create(IDD_RESULTS, this) too.
I noticed that the dialog generated is not actually modal, in that I can still access the main application. In fact, it's more like the dialog became 'Always On Top'and when I minimised it, it doesn't go into the taskbar. Strange behaviour!
|
|
|
|
|
Btw, I initially remove the ID_OK and ID_CANCEL cos I dun need them. Could this lead to the problem?
|
|
|
|
|
Are you sure it is modal? The code looks ok. Maybe you think that it is modal cause you don't see it in the task bar?
Anyway, try to give the parent to your dialog, for example the Desktop as parent (CWnd::GetDesktopWindow() )
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Interesting, using the desktop as the parent works. But that leads to another problem, how do I access my document data from the dialog? This dialog is a protected member of my MainFrame btw.
|
|
|
|
|
Depends on what your dialog is doing. You can pass a pointer to CDocument or CView, and access the document's methods and variables, or you can even pass a pointer of CMainFrame to it and enumerate the open documents...
Another way to use messages (SendMessage() and PostMessage() ) to pass data between your frame-view-dialog.
As I said depends on what you want it to do
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Thanks, you've been most helpful. I managed to do it using messages
|
|
|
|
|
Hi,
i have placed a list box in my dialog, and i want to add strings to that list box. when i try to send the message LB_ADDSTRING using the SendMessage function, its showing me an error that the handle to the control is invalid. How do u get the handle to a control in the dialogbox, if the control id is know, as well as the dialog id.
Can anyone help me. I'm doing the program in SDK.
Vini
|
|
|
|
|
Hi,
there are at least 2 ways to solve your problem:
Assume
o hWndDialog is the Window-handle of your dialog
o IDC_LISTBOX is the Id of the ListBox
o pszStringToAdd is a pointer to the string you want to add
1) You could use GetDlgItem() like this
HWND hWndListBox = GetDlgItem(hWndDialog,IDC_LISTBOX);
if(hWndListBox)
{
// Found the Window-handle of the ListBox
SendMessage(hWndListBox,LB_ADDSTRING,0,(LPARAM)pszStringToAdd);
}
else
{
// Didn't found the Window-handle of the ListBox. Deal with the Error
...
}
2) alternatively, you could use SendDlgItemMessage() like this:
SendDlgItemMessage(hWndDialog,IDC_LISTBOX,LB_ADDSTRING,0,(LPARAM)pszStringToAdd);
HTH
Cheers,
Pierre Heler-Caruel
|
|
|
|
|
Guess I should have previewed my last message, the #includes did not come through and the desired format is not as I typed it. Guess this is just the way things are going today
Beginning Student Programmer
|
|
|
|
|
Edit your post and check the "Display this message as-is" checkbox. You might also check out the VC forum FAQ (link at the top of this page), which answers this question and many others.
--Mike--
My really out-of-date homepage
Buffy's on. Gotta go, bye!
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
I am having trouble using setprecision(), setw(), fixed, right, left,..etc... funtions for formatting output.
I want to have a number on top of another number on top of the answer all inline with eachother on the right regardless of the length of each number.
Example of desired output:
234
x 678
------
158652
However, this is what I am getting:
234
x 678
------
158652
with this code:
#include<stdio.h>
#include<iostream>
#include<iomanip.h>
void main()
{
int a, b;
int Answer = 0;
cout << "\nEnter a three digit integer: ";
cin >> a;
cout << "Enter a second three digit integer: ";
cin >> b;
Answer = a * b;
cout << setiosflags(ios::right) << a << endl;
cout << setiosflags(ios::right) << "x " << b << endl;
cout << setiosflags(ios::right) << "------\n";
cout << setiosflags(ios::right) << Answer << endl;
}
This code seems inefficient and is not giving good results. I would be greatful for any suggestions anyone may have.
Beginning Student Programmer
|
|
|
|
|
Performancewise, is it better to pass by reference or pass by pointer if applicable?
Thanks,
Kuphryn
|
|
|
|
|
It makes no difference.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
There is a difference if the function needs to change the pointer
It cant do that to a reference
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|