|
Well I can't say that I understand your explanation, but I'm happy that your problem is resolved.
|
|
|
|
|
Actually I did not resolve my problem. Only demonstrated that speech recognition of my program works on Windows Vista.
|
|
|
|
|
How do I prevent the voice recognition native Windows Vista work? It is activated before the speech recognition of my program. He recognizes the text of the listbox and then do not let my program to "act".
When I replace the text of the Listbox ("blue" -> "b.l.u.e.") speech recognition native windows vista can not find anything. So my program can act.
|
|
|
|
|
I am running under Windows Vista. I am adapting to Visual C++ a program which I wrote under Borland C++. It called these:-
DIR :: a struct type which contained the running information on looking through a directory.
Functions:-
opendir(---)
readdir(----) :: step to the next file in the directory
closedir(----)
Please what are their Visual C++ equivalents?
|
|
|
|
|
I think this[^] may have the information you are looking for.
|
|
|
|
|
Check out FindFirstFile[^] and FindNextFile[^] for starters.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
In Visual C++, please how can I stop automatic redirecting of library function names to 2-byte character forms, e.g. SetDlgItemText to SetDlgItemTextW?
modified on Saturday, September 19, 2009 9:57 AM
|
|
|
|
|
Your-Project->Properties menu item, then Configuration Properties->General node , finally set Character Set to Use Multi-Byte character set instead of Use Unicode character set .
however, be aware that (MSDN [^]):
Since Windows NT, all Windows versions are built from the ground up using Unicode. That is, all the core functions for creating windows, displaying text, performing string manipulations, and so forth require Unicode strings. If you call any Windows function passing it an ANSI string (a string of 1-byte characters), the function first converts the string to Unicode and then passes the Unicode string to the operating system. If you are expecting ANSI strings back from a function, the system converts the Unicode string to an ANSI string before returning to your application. All these conversions occur invisibly to you. Of course, there is time and memory overhead involved for the system to carry out all these string conversions.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks. I have sorted it.
|
|
|
|
|
Hi,
Please let me know how to convert Convert CString to std::string
|
|
|
|
|
CString cstr = "This is a CString";
std::string str;
char* cp = cstr;
str = cp;
Why not try it?
|
|
|
|
|
You may use a MFC conversion macro (plaase read here, for caveats) for instance:
USES_CONVERSION;
CString str = _T("foo");
std::string s(T2A(str));
MessageBoxA(NULL, s.c_str(), "Converted CString", MB_OK);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I have MFC application.
I want all the controls created by this application uses Windows 7 theme no matters on which OS it run.
i.e even running this application on Windows XP should use theme of Windows 7
What should I do?
|
|
|
|
|
hyrahul64 wrote: I want all the controls created by this application uses Windows 7 theme no matters on which OS it run.
i.e even running this application on Windows XP should use theme of Windows 7
What should I do?
Try to port the Windows 7 themes and theming engine to XP?
Seriously - think about this - it's not going to work. Windows 2000 didn't have Windows XP themes, so apps looked different in XP and 2000. Windows XP doesn't have Vista/7 theming (I'll count them as the same thing for simplicity), so apps look different in Vista/7 and XP. Deal with it and get over it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
But Google Chrome on XP is using the Windows 7 theme. Did they simply hack the button pics out of Win 7 resource?
|
|
|
|
|
It's a hack, yes. What really gives it away (to me) is that even on WIndows 7, Ultramon can't put it's extra caption buttons on a Chrome window, indicating a completely custom caption bar.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
source code for matrix mulipication in c using linear arrays and pointers required !!!!
|
|
|
|
|
Why don't implement yourself? It maybe amusing.
Anyway, you may have a look at "Numerical Recipes in C" [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Shivam Singh wrote: source code for matrix mulipication in c using linear arrays and pointers required !!!!
Would you like fries with that?
|
|
|
|
|
Hello
I am working with MFC.
I am loading an external DLL using LoadLibrary and call a function within this DLL.
This function opens a dialog box and this dialog box has several controls.
I have the HWND and ids of the dialog box and controls.
I want to register to the getFocus event of one of the controls (On runtime).
I was looking for a long time and couldn't find any helpful function or example, could any one help ?
|
|
|
|
|
what are you exactly trying to achieve by registering for onfocus()? afaik every control is derived from CWnd and every CWnd receives a WM_SET_FOCUS event when it receives a focus. if your control is child of dialog and you dont want to override the default class of control, then maybe you need to check whether your dialog received the WM_SET_FOCUS when one of its child gets the focus as a dialog can never have focus - only its child can have focus.
And if you can get the setfocus function call, you can easily signal your main application from the dll.. or not??
|
|
|
|
|
There is the login dll of windows GinaDLL.dll
In this DLL there is a function that opens a dialog box for entering the login username and password.
I want to use the functionallity of this DLL and not override the whole DLL.
I want to know when the user is typing in the username edit box and when he is typing in the password edit box.
Since this is an external dll, I can't use the DECLARE_MESSAGE_MAP, BEGIN_MESSAGE_MAP and END_MESSAGE_MAP macros.
|
|
|
|
|
|
You may go through subclassing, see, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
i want to find all types of image files those are present in my computer .
and display them by thumbnail view.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|