I have a project which is not Doc-View Architecture. Now in the basic project the view class is derived from CWnd whereas I want to derive from CView .Will this have any problem with the basic functionality of the application since I want to write code in the OnDraw() of CView and not in OnPaint().
im a semi newbie to MFC. Im developing an application where in i have to copy the text whereever my mouse navigates and selects some texts. It can be like i select some texts by the mouse cursor and then hit a hot key(ctr+T etc..)so that my Application reads the texts and dumpsand then further process the received texts. Can any one please suggest me that idea that what functions or classes i can use.
1) Register your hotkey (RegisterHotKey).
2) When hotkey pressed.
a. get focused or current window handle using "WindowFromPoint" API
b. send below message to window using handle to get text.
WM_GETTEXT or EM_GETSELTEXT or EM_GETSEL
I am doing an application with an "exe" file and some "dll" that are called from the exe.
When I run the exe in Debug (or Debug64) mode and the dll are compiled in Debug (or Debug64) mode the application runs without any problem. But if I mix Debug with Release (or Debug64 with Release 64) the application does not run, and I get this error:
"Unhandled exception at 0x77d4dd50 in PruebaLinkado.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012c160.."
The dll has "Multi-threaded DLL (/MD)" option
And the exe file has "Multi-threaded (/MT)" option.
And how will you know what is happening in the executable if it is built with no debug information? For instance, if an assertion occurs in the executable (even while loading the DLL), you won't know it. You don't have to compile the executable every time. You say the executable remains the same, so, you can have it built with debug symbols in it. After your bugs are fixed, you can build binaries without debug information in it.
Somehow, the idea of mixing separate binaries, some with and some without debug information doesn't look strikingly impressive.
It is a crappy thing, but it's life -^Carlo Pallini