dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ovidiucucu

Page 1 of 80 1 2 3 4

Search: Search took 2.48 seconds.

  1. Replies
    9
    Views
    598

    Re: How are these controls created ?

    Well, using the "thousands" word here is a little bit exaggerated. :)
  2. Re: C or C++ equivalent to Java 2D graphics functionality

    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...
  3. Replies
    6
    Views
    875

    Re: Hello world prgram not runing

    @Ketanco
    Have you created a Windows Console Project or is something else?
    35611
  4. Re: C or C++ equivalent to Java 2D graphics functionality

    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...
  5. Re: Dynamic Library: Do you need to export variables of a class?

    That's a very good reason.
  6. Replies
    5
    Views
    730

    Re: Password style for the text control

    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...
  7. Replies
    5
    Views
    730

    Re: Password style for the text control

    Here is an example that validates the password when the user pushes "OK" button:

    void CSignInDlg::OnOK()
    {
    UpdateData();
    CPasswordChecker password(m_strPassword);
    if...
  8. Replies
    5
    Views
    730

    Re: Password style for the text control

    "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...
  9. Replies
    20
    Views
    3,731

    Re: Using web services from MFC

    Cool! Is this the joke of the month? I may be wrong also, of course. :)
  10. Replies
    20
    Views
    3,731

    Re: Using web services from MFC

    ...then of course, can use GDI, GDI+ or Direct2D to render the images you have got with C++ REST SDK.
  11. Replies
    20
    Views
    3,731

    Re: Using web services from MFC

    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).
  12. Re: Controlling a image(.bmp) inside a dialog box.

    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...
  13. Replies
    13
    Views
    83,845

    Re: C++ General: What are good books about C++ ?

    Modern C++ Programming Cookbook (CodeGuru's Marius Bancila)

    https://www.amazon.com/dp/1786465183
  14. Replies
    3
    Views
    905

    Re: LNK2005 ERROR on Visual C++

    #include "BST.cpp" // <<-- include BST.h, not BST.cpp
  15. Thread: on events

    by ovidiucucu
    Replies
    5
    Views
    1,057

    Re: on events

    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...
  16. Replies
    8
    Views
    1,462

    Re: Overlapped dialog that is not overlapped

    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...
  17. Replies
    8
    Views
    1,462

    Re: Overlapped dialog that is not overlapped

    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).
  18. Replies
    3
    Views
    889

    Re: CGridCtrl in CCtrlView

    Here is the code:


    class CTestGridView : public CView // not CCtrlView
    {
    CGridCtrl m_gridCtrl;
    // ...
    };
  19. Replies
    3
    Views
    889

    Re: CGridCtrl in CCtrlView

    class CTestGridView : public CCtrlView
    {
    // ...
    CGridCtrl& GetGridCtrl() const {return *(CGridCtrl*)this;} // <--bad
    // ...
    }

    It crashes because neither CCtrlView nor...
  20. Re: An CALLBACK function could be member of an class ?

    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...
  21. Re: Problems when re-compiling a VC 6 Project with VC 2012

    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
    {...
  22. Re: Problems when re-compiling a VC 6 Project with VC 2012

    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,...
  23. Replies
    6
    Views
    1,446

    Re: MFC Message maps

    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...
  24. Replies
    3
    Views
    1,049

    Re: Array of array

    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"...
  25. Replies
    2
    Views
    724

    Re: hello, guys im newbie help me :(

    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...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)