Search Results - CodeGuru Forums
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.20 seconds.

  1. Replies
    8
    Views
    485

    Re: Using Slider Control in client area

    As Victor already said, if you have a form view (which is based on a dialog resource), you can easily put a slider as well as any other type of controls in its client area.
    Otherwise, put it in a...
  2. Re: How to link a static library struct to a user app ?

    To use a global variable in more than one translation unit, declare it in a header using extern specifier...


    // MyLib.h

    // ...

    extern sTensor g_tensor; // declaration

    ...and define it...
  3. Re: Why is Microsoft pushing Windows 10 so hard?

    Yes, probably The Big Blue has a special call center that still offers support for electric tabulating machines manufactured between the late XIX and early XX century years. :)
  4. Re: Why is Microsoft pushing Windows 10 so hard?

    Probably true, in your dreams.
    Don't worry, getting rid of them is not an insurmountable problem! :)
  5. Re: App(mfc) failing in Release build due to compiler optimization but works in debug

    DO NOT TRUST in what you see when step into a RELEASE build!
    Because of code optimization, wrong values may be shown.
    If you want to trace code also in RELEASE, use a logging system (e.g. write...
  6. Re: Confused about when I can use toolbox tools.

    You want to add a .Net Framework Component in an MFC Application project, which is NOT possible.
    To show a file open dialog in MFC, just use in your code a CFileDialog object.

    Example


    void...
  7. Re: how to code a menu item to invoke a form

    One aside note

    Probably you tried to use IMG tags for showing image files from your local computer. That's not working, for sure.
    Instead, when editing your post, use Insert Image button and...
  8. Replies
    1
    Views
    196

    Re: Wtl support for atl dll project

    Please, let me google that for you! :)
  9. Re: CMake unable to build a project when both vs2010 ultimate and express are install

    Quoted from https://en.wikipedia.org/wiki/CMake#Microsoft_Visual_Studio

    IMO, if develop using Visual Studio, can get rid of third party stuff like CMake.
  10. Replies
    5
    Views
    323

    Re: CMenu ON_COMMAND problem

    Because pWnd parameter of CMenu::TrackPopupMenu identifies the window which receives the commands from that menu and you've set it to something else.

    Again, just handle WM_CONTEXTMENU in the...
  11. Replies
    5
    Views
    323

    Re: CMenu ON_COMMAND problem

    You've set the dialog's parent for receiving menu's commands.
    Anyway, for showing a floating context menu, instead of handling WM_RBUTTONDOWN or NM_RCLICK child notify, a better, easier and the...
  12. Re: How do i make a transparent richtextbox in visual c++ (visual studio express 2010

    If search for "RichEdit" and not for "richtextbox", for sure you'll find more C++ articles related to this subject.
    AFAIK, many of them are not 100% reliable but you can try.

    Alternatively, may...
  13. Re: Visual Studio 2013 console window doesn't stay open after I run my program

    What? No offense but this is a statement good for a non-programmer or for a programmer smoking a kind of bad grass. :)
  14. Replies
    22
    Views
    25,356

    Re: CString class in non-MFC static library

    "Third party"? Prefer saying MFC and ATL are C++ wrapper libraries over native Windows API.

    Probably, in a parallel world and a future life, we'll have a standard C++ supporting all native OS's...
  15. Re: Some use of syntax won't compile on Visual Studio 2010

    Correct! :thumb:
  16. Re: Some use of syntax won't compile on Visual Studio 2010

    That's what could happen when mixing STL and WinAPI.
    Somewhere in WinDef.h header file, there is the following macro definition


    #define max(a,b) (((a) > (b)) ? (a) : (b))

    and for...
  17. Replies
    2
    Views
    430

    Re: Edit and continue in VS2013

    Check Enable native Edit and Continue as well.

    33911
  18. Replies
    5
    Views
    556

    Re: File extension setup on CFileDialog

    Generally true, but in this case the zero index is used for preserving the filter pattern chosen by the user.
    See nFilterIndex and lpstrCustomFilter members of OPENFILENAME structure.
    ...
  19. Replies
    2
    Views
    424

    Re: How to fix flickering

    You have pointed to a quite old article. Meanwhile, MFC implemented its own CMemDC Class, although it was designed for internal use.
    Now, you have three choices:

    use the class from MFC adapting...
  20. Replies
    8
    Views
    761

    Re: Need Good Graphics Library

    MFC has already its own classes for easy use of Direct2D and related.
    See these articles: http://codexpert.ro/blog/tag/direct2d/
  21. Thread: Saving view

    by ovidiucucu
    Replies
    5
    Views
    560

    Re: Saving view

    Generally, if using pointers, calling CGdiObject::GetSafeHandle is safer than directly accessing the m_hObject member.
    In our case, if pBitmap is NULL, pBitmap->GetSafeHandle() will return NULL...
  22. Thread: Saving view

    by ovidiucucu
    Replies
    5
    Views
    560

    Re: Saving view

    [ additional note ]

    CImage is a wonderful ATL/MFC class which can help you to save lines, time and improve the code readability and maintainability, by making not obviously necessary to write...
  23. Thread: Saving view

    by ovidiucucu
    Replies
    5
    Views
    560

    Re: Saving view

    Once you have the (composed) bitmap, there's no sweat to attach it to a CImage object, then save it in a file.

    Example


    HRESULT CFoo::SaveCBitmapToFile(CBitmap* pBitmap, LPCTSTR szFilePath)...
  24. Replies
    10
    Views
    1,045

    Re: Double/wavy underline

    Nothing reliable.
    Is any good reason to stay stuck in older versions as long as anyway, RichEdit 4.1 is shipped with Windows XP SP1 and newer?
    See RichEdit versions.
  25. Thread: Graph

    by ovidiucucu
    Replies
    2
    Views
    495

    Re: Graph

    One alternative solution is to make your own custom or ActiveX control and draw in it everything your muscles want.
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

This is a Codeguru.com survey!


HTML5 Development Center