Search:
Type: Posts; User: ovidiucucu
Search:
Search took 0.07 seconds.
-
Well, using the "thousands" word here is a little bit exaggerated. :)
-
I know many projects developed for years using cross-platform libraries, but never targeted other OS than Windows.
IMO, the most optimal approach is to write as much as possible cross-platform code...
-
@Ketanco
Have you created a Windows Console Project or is something else?
35611
-
If the target OS is Windows, the best choice is Direct2D libray.
You can directly use Direct2D COM interfaces or, much easier, the MFC Support for Direct2D.
See
Direct2D
MFC Support for...
-
November 19th, 2018, 09:20 AM
That's a very good reason.
-
November 17th, 2018, 08:33 AM
If you really, really want to make an edit control with "no echo" it's not so much to sweat.
derive your own class from CEdit;
add a member variable for keeping the password and a public...
-
November 17th, 2018, 05:59 AM
Here is an example that validates the password when the user pushes "OK" button:
void CSignInDlg::OnOK()
{
UpdateData();
CPasswordChecker password(m_strPassword);
if...
-
November 17th, 2018, 03:02 AM
"Blind" typing of password is used in some console aplications. If have a GUI, that may be frustrating for the user.
Instead, you can let the default behavior of the edit control with ES_PASSWORD...
-
September 30th, 2018, 07:52 AM
Cool! Is this the joke of the month? I may be wrong also, of course. :)
-
September 26th, 2018, 04:05 AM
...then of course, can use GDI, GDI+ or Direct2D to render the images you have got with C++ REST SDK.
-
September 26th, 2018, 03:16 AM
As long as MFC is a C++ library, you can use C++ REST SDK to interact with web services in an MFC-based application (or other Windows native applications).
-
September 26th, 2018, 03:01 AM
Probably, you are a VB programmer. :)
No problem, you may try start programming C++ as well.
Let's see...
As stated in MSDN documentation, C2228 compiler error means "The operand to the left...
-
April 17th, 2018, 11:08 PM
Modern C++ Programming Cookbook (CodeGuru's Marius Bancila)
https://www.amazon.com/dp/1786465183
-
April 17th, 2018, 11:02 PM
#include "BST.cpp" // <<-- include BST.h, not BST.cpp
-
April 2nd, 2018, 03:02 AM
Completing what already is answered above:
CWinThread::PumpMessage is documented in MSDN. Note that AfxGetApp gets a pointer to the application object which is of a class derived from CWinApp and...
-
February 20th, 2018, 04:02 PM
In order to understand each other when talking about "overlapped", "popup" and so on, please have a look at these FAQs:
What is an overlapped window?
What is a pop-up window?
What is a...
-
February 20th, 2018, 03:28 PM
Who said that? A dialog is a window and each window can be visible or not.
To make a window visible call ShowWindow(SW_SHOW).
To hide a window call ShowWindow(SW_HIDE).
-
February 20th, 2018, 03:20 PM
Here is the code:
class CTestGridView : public CView // not CCtrlView
{
CGridCtrl m_gridCtrl;
// ...
};
-
February 20th, 2018, 02:53 PM
class CTestGridView : public CCtrlView
{
// ...
CGridCtrl& GetGridCtrl() const {return *(CGridCtrl*)this;} // <--bad
// ...
}
It crashes because neither CCtrlView nor...
-
February 11th, 2018, 11:42 AM
An alternative to member functions is to use lambdas, introduced by C++11.
Example:
void CEnumDialog::EnumPens(CDC& dc)
{
dc.EnumObjects(OBJ_PEN,
[](LPVOID lpLogObject, LPARAM...
-
November 15th, 2017, 06:04 AM
A little bit beyond the topic...
If your C++ compiler supports last C++ standards (C++11 and newer) features, you can write, for example, something like this:
class CFooWnd : public CWnd
{...
-
November 15th, 2017, 02:49 AM
Completing what Victor already pointed
AFX_ZERO_INIT_OBJECT is a undocumented macro which has been removed in newer MFC versions. Having a look at MFC Macros and Globals in VC6.0 documentation,...
-
November 7th, 2017, 09:29 AM
Check if OnUpdateUIState has the corect prototype. If is mapped by using ON_MESSAGE macro, it must be
afx_msg LRESULT OnUpdateUIState(WPARAM wParam, LPARAM lParam);
Also, is not bad to...
-
October 20th, 2017, 11:10 AM
As Arjay already suggested, I would like to advise: even in an MFC aplication, prefer STL containers over MFC collections whenever is possible. Since I said "do not use STL in MFC-based applications"...
-
Beside what 2kaud already answered: each time you get a warning or error and the description is not enough clear, you can take a look in MSDN documentation for more details and examples.
Here is...
|
Click Here to Expand Forum to Full Width
|