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 0.06 seconds; generated 27 minute(s) ago.

  1. Re: Do not understand conditional in for loop

    It doesn't compile? And what the compiler says?
  2. Re: Opening .xlsx file in Excel programmatically

    As Victor already stated, we can do the magic by using Excel Automation. Here is an example:

    void CExcelRunnerApp::OpenWorkbook(const CStringW& strFile,
    const CStringW& strPassword,
    BOOL...
  3. Thread: postmessage

    by ovidiucucu
    Replies
    8
    Views
    844

    Re: postmessage

    Thank you, Victor!
    Just to add a method in which the receiver doesn't need to delete: using of smart pointers, i.e. std::unique_ptr since C++11.
    Here is an example:


    void...
  4. Re: PRIMARY KEY vs. UNIQUE restrictions in MySQL

    In SQL language, NULL simply means "unknown value" or "not yet set value". Because a primary key is intended to (unique) identify a record in a table, a NULL PK has no sense, so is not permitted.
  5. Re: How to capture the screen of a window that contains transparency?

    Neither Snipping Tool nor Print Screen resolve the problem if the window is covered by another. Please, read carefully the original post!
  6. Replies
    1
    Views
    1,371

    Re: How to fix Rect & DrawText?

    DrawText takes an argument which is the rectangle in which the text is to be drawn. You probably enlarged the font size without adjusting that rectangle. You can determine the width and height of the...
  7. Re: executable behaving differently when launched via shortcut?

    I can guess you are using or passing to the third party library paths relative to the application/process current directory (e.g. ".\data", "..\data" or just the file name). The current process...
  8. Thread: postmessage

    by ovidiucucu
    Replies
    8
    Views
    844

    Re: postmessage

    Taking a look in your sample code...


    ::PostMessage( dlghandle , WM_SOMEMSG , (WPARAM)&s, 0 );
    PostMessage( WM_SOMEMSG , (WPARAM)&s, 0 );

    ...I have to add a little but important note, beside...
  9. Replies
    0
    Views
    1,251

    STL: What is Filesystem Library?

    Filesystem Library can help you you to easily perform operations on file systems components, such as paths, regular files, and directories. It was initialy developed in boost library and introduced...
  10. Transparent SDI View by using Layered Windows

    Here it is step-by-step!

    1. Define a "transparent" color, preferable in the application's class header.

    // ...
    #define TRANSPARENT_COLOR RGB(1, 2, 254)
    2. In the main frame class...
  11. Transparent SDI View by Using Window Regions

    Override CFrameWnd::RecalcLayout and...

    class CMainFrame final : public CFrameWnd
    {
    // ...
    // Overrides
    virtual void RecalcLayout(BOOL bNotify = TRUE);
    // ...
    };
    ...after...
  12. Replies
    9
    Views
    9,193

    Re: How are these controls created ?

    Well, using the "thousands" word here is a little bit exaggerated. :)
  13. 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...
  14. Replies
    6
    Views
    3,567

    Re: Hello world prgram not runing

    @Ketanco
    Have you created a Windows Console Project or is something else?
    35611
  15. 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...
  16. Re: Dynamic Library: Do you need to export variables of a class?

    That's a very good reason.
  17. Replies
    5
    Views
    3,461

    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...
  18. Replies
    5
    Views
    3,461

    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...
  19. Replies
    5
    Views
    3,461

    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...
  20. Replies
    20
    Views
    21,845

    Re: Using web services from MFC

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

    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.
  22. Replies
    20
    Views
    21,845

    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).
  23. 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...
  24. Replies
    13
    Views
    137,049

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

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

    https://www.amazon.com/dp/1786465183
  25. Replies
    3
    Views
    4,699

    Re: LNK2005 ERROR on Visual C++

    #include "BST.cpp" // <<-- include BST.h, not BST.cpp
Results 1 to 25 of 1980
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured