|
You are confusing UTF-8 and UTF-16. Both use variable length representation for characters, though with UTF-16, common languages are represented with two bytes, with things like musical notes and cuneiform in the escaped range.
See the following: https://en.wikipedia.org/wiki/UTF-16[^]
|
|
|
|
|
Please can someone recommend a good book about Windows programming for people who know the C++ language? For the various functions and messages my main paper source, rather than online, currently is a book published in 1992 and a book published in 1993 in Windows 3.1 times. But many things have changed since.
|
|
|
|
|
|
|
Hi,
The book [Beginning Visual C++ 2012]
Ivor Horton's Beginning Visual C++ 2012:
•Introduces you to the current version of the C++ language (C++ 11), as it is implemented in Microsoft® Visual Studio® 2012
•Provides a comprehensive tutorial on using the complete Visual C++ programming language
•Explains the C++ Standard Template Library and how to apply it to make your programming tasks easier
•Shows you the principal elements of developing Windows desktop applications in C++ using the Microsoft Foundation Classes
•Guides you through the development of a substantial Windows® 7 desktop application that you can also run under Windows® 8
•Illustrates how to develop Windows 8 Apps with Visual C++ using a working game example
Not completely sure this book is what you are looking for but at least it provides information on STL and MFC and it's not expensive.
With friendly greetings,
Eric Goedhart
|
|
|
|
|
Sound card is capable of input/output the audio signals. Can it distinguish between the local voice (a music file on local drive) and a voice coming from network (skype call)? If yes, how can we implement it in C++?
This world is going to explode due to international politics, SOON.
|
|
|
|
|
This question is impossible to answer in a forum such as this. There are many packages available for sound processing, and Google will help you find examples.
|
|
|
|
|
IAudioClient::Initialize Method.
The function above has a parameter named REFERENCE_TIME hnsBufferDuration. Now this parameter is expressed in 100-nanosecond units. What does it mean? How does this definition fits the following initialization?
int hnsDuration = 10000000 * 15;
Thanks for any pointer.
|
|
|
|
|
The prefix nano is 10 to the power -9, or one billionth in common parlance. so 100 nano-somethings is 10 to the power -7, or one ten-millionth. Simply put, 100 nano-seconds is one tenth of a micro-second. So from the above, 10,000,000 100-nano-seconds is 1 second, multiplied by 15 is 15 seconds.
Fixed; well spotted Carlo.
|
|
|
|
|
5.
Richard MacCutchan wrote: 10,000,000 nano-seconds is 1 second 10,000,000 * 100 nano-seconds is 1 second.
Veni, vidi, vici.
|
|
|
|
|
Oh poo!
|
|
|
|
|
Hello Every Body
I am looking do the project on blocking the unwanted site or redirecting so that children can not access the particular site.
so will you people guide which way should i proceed...
|
|
|
|
|
|
Hello,
Thanks for reply.
I research it can be achieved by using winsock and LSP(Layered Service Provider) so i thing its comes under MFC and C++ so putted my question in MFC and C++..
Thanks
sarfaraz
|
|
|
|
|
Your question has nothing to do with C++. You only asked how to redirect some website to yourself.
|
|
|
|
|
A filtering proxy, a router with URL-filtering, a Winsock filter-hook driver etc. It depends on where you want this software to run. On the PC of the children or what. Be more precise.
-- Gisle V.
|
|
|
|
|
Chapter 12 of the following book contains what you need:
Network Programming for Windows[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I have a CMDIChildWnd derived frame – a static splitter - and would like to dynamically modify its menu.
I used Spy and MFC tracer to find out what messages are send when the mouse hovers over the menu item - WM_NCHITTEST with HTMENU parameter.
WindowProc should intercept the message, however the doc is not clear where the message goes, and I cannot see it in the frame.
Is there a way to use Spy or MFC trace to find where to process the “nonclient” message?
Any help is as always greatly appreciated.
Cheers
Vaclav
Answer
<b>To the main frame of the MFC app where OnNcHitTest can process it.
</b>
-- modified 25-Feb-14 12:17pm.
|
|
|
|
|
The menu belongs to the frame.
So you need to create a handler for the WM_NCHITTEST message in the CMDIFrameWnd derived class.
The handler would look something like this -
LRESULT CMainFrame::OnNcHitTest(CPoint point)
{
LRESULT result = CMDIFrameWnd::OnNcHitTest(point);
if (HTMENU == result)
{
AfxMessageBox(L"On the menu");
}
return result;
}
The thing to keep note is that the message box will popup whenever the mouse hovers anywhere on the menu bar and not only on the menu items.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
Thanks for the reply.
I can detect the mouse hits, but only on the title bar of the splitter frame.
I may have problem with the adittional window whose function is to provide tab access to additional documents.
I am still not sure where the message goes from the frame menu.
I'll keep working on that, thanks for the suggestion, it really helps.
Cheers
Vaclav
|
|
|
|
|
OK, I am making progress.
Using default MDI app I can see the WM_NCHITTEST being processed ( WindowProc) by main frame - the menus hits, and by the doc/view frame - the window title area.
I am getting message #867 (?) as hit in my frame menu and WindowsProc in splitter ( my frame) catching it but since it is not near WM_NCHITTEST it is not processed.
I need to find out about this rogue 867 message origin.
|
|
|
|
|
The code that I posted earlier is working code on a default MDI application.
Here is some information on command routing in an MDI application - Command Routing Illustration[^]
The message #867(0x363) is an internal MFC message defined as -
#define WM_IDLEUPDATECMDUI 0x0363
You can find this in the afxpriv.h header file.
Here is some information about internal MFC messages - MFC Defined Messages[^]
Here is an excerpt from the above link -
WM_IDLEUPDATECMDUI
This message is sent in idle time to implement the idle-time update of update-command UI handlers.
«_Superman_»
I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) (October 2009 - September 2013) Polymorphism in C
|
|
|
|
|
Thanks for the update.
In retrospect - my "mistake" was not understanding how main frame non-client message gets back to windows message processing. After accessing the current active MDI frame I have a better understanding of things.
Of couse few "new" documents ( DirectShow graph) insterted during test and left in did not help.
Many thanks for your assistance, appreciate it.
Vaclav
|
|
|
|
|
Hi, am new to coding and to mfc, am on an application development on mfc, the problem is in my toolbar alignment, i have 9 toolbars and i want to arrange as follows
T1-T2-T3-T4-T9
T5-T6-T7-T8
Am using VS2010 and already tried of "DockPaneLeftOf" but its not helping me whenever i rebuilt my project all toolbars is appearing in a single column. please help me out, am tired out of searching
|
|
|
|
|
Don't forget to remove the registry entry associated with your application.
The toolbar position might be written and read from the registry and position you try to setup in the code will be overridden by that.
Also, be careful at the order you call DockPaneLeftOf; I think that you need to order them from right to left:
DockPaneLeftOf(&T4, &T9);
DockPaneLeftOf(T3, T4);
DockPaneLeftOf(T2, T3);
DockPaneLeftOf(T1, T2);
Good luck.
I'd rather be phishing!
|
|
|
|