Skip to content

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • Picture Modification

    question learning
    3
    0 Votes
    3 Posts
    12 Views
    L
    Try http://www.paintlib.de/paintlib/ There you will find a free library that appears to be fairly complete. To quote from the site: "paintlib is a portable C++ class library for image manipulation. Images can be loaded from PNG, TGA, TIFF, JPEG, BMP, PCX and PICT files and saved in TIFF and JPEG formats. Image manipulation can be done either through filters implemented in filter classes or by directly accessing the bitmap bits. Full C++ source is provided." Good luck. Al -- ================== The original message was: Hello, just a beginner question: I need to write a small application which does the following: 1. Loads a colored *.tif file 2. Removes the red color completely from the image 3. Saves the image as a black and white *.tif file How do I go on about this? TIA Best wishes, Matthias Steinbart
  • Layered Window Impl on 98

    csharp com c++ visual-studio graphics
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Layered Window Impl on 98

    csharp com c++ visual-studio graphics
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • GUI Toolkit

    graphics
    4
    0 Votes
    4 Posts
    24 Views
    M
    Check out www.freeamp.org for the source to a winamp clone has exactly what you want. ================== The original message was: Hi, where I can find a GUI toolkit to build graphical GUI like Winamp (non-rectangular dialog, bitmap) Thanks
  • File-Open button in Word2000

    question
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • COM & EventSink and IDispatch

    question wpf wcf com sysadmin
    4
    0 Votes
    4 Posts
    20 Views
    L
    Thanks Alex. I appreciate it. ================== The original message was: Hi! As you've already mentioned you can't use the event map in the late binding. You have to implement the event sink and then use one of the functions below to create a connection between an object's connection point and a client's sink: CComPtr::Advise(...) - using smart pointers AtlAdvise(...) - using ATL IConnectionPoint::Advise(...) - generic interface method And of course you have to Unadvise when you are done with the object. Regards, Alex Gorev, Dundas Software. ================== The original message was: I have used the class wizard to generate a wrapper class from the type library of an in process server. I can access the methods and properties by creating a dispatch like this one for both. if(((*(COleDispatchDriver*)(&m_IMCSClientEvents))).m_lpDispatch==NULL){ //UCS_MCSSERVER.EXE if (!(m_IMCSClientEvents.CreateDispatch("MCSObject.MCSObject.1", &oe))) { But how do I capture the events. Do you create a dispatch for events? If so how do you capture them? I'm confused. I suspect the answer is use the EVENTSINK_MAP. But that would require an IDC value. Since I am late binding I do not have an IDC value I am not sure how to use the EVENTSINK_MAP. Thanks in advance.
  • How to prevent resource renumbering?

    tutorial question learning
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Switch SplitView

    question
    4
    0 Votes
    4 Posts
    24 Views
    L
    The CSplitterEx class was included in my first reply, in an attachment you should be able to get from the forum. Regards, Pascal ================== The original message was: Where I can find the SplitterEx class? ================== The original message was: You can use the SplitterEx class included instead of the standard one, and in your FrameWnd just use m_wndSplitter.ReplaceView(0, 1, RUNTIME_CLASS(CNewView)).
  • Closing down a child window in OnInitialUpdate()

    c++ question
    2
    0 Votes
    2 Posts
    17 Views
    M
    Hi, I'm just guessing. Have you tried WM_MDIDESTROY instead of WM_DESTROY? Martin
  • 0 Votes
    2 Posts
    14 Views
    L
    If you don't mind the zzz and yyy naming for the variables I think this link is what you are looking for http://users.neca.com/vmis/addget.htm ================== The original message was: I am looking for code which promotes a web site to search engines or which determines the position of a web site in a search engine. I would love to see and study some example code, so that in time, I could figure out how to actually promote a web site. Please, any response any one can give me will be greatly appreciated. Sincerely, Erich J. Ruth
  • MAPI Question - getting desperate!

    question help
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Adding a Tab Control to a toolbar

    c++ question
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • OnDraw how to get the invalidated area...

    question graphics help tutorial
    2
    0 Votes
    2 Posts
    19 Views
    L
    check out CDC::GetClipBox Chris ================== The original message was: Hi, I have one application that every time that needs to draw calls a thread to do it ( it has a very sllow drawing proccess some graphical shits...). The problem that I have is..., How can I know what is the invalidated portion ? ( now when I call the thread it repaints all and it's very slow, I would like to know if it is only a portion of a window to redraw...), Is anyway to know this ? Thanks, Bye ! Braulio
  • Screensaver

    tutorial question
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • How to use ADO without #import directive?

    database com tutorial question
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Using #Import

    c++ tutorial
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • hide application from task-bar, task-manager?

    question tutorial
    2
    0 Votes
    2 Posts
    19 Views
    L
    http://www.codeproject.com/docview/notaskbaricon.asp ================== The original message was: Q: how to keep my application from being listed in the task manager and/or the task bar? I think this is a relatively common need, but I can't find where it's documented. Secondly, how can I force a child process of mine (with its own top level window) to be hidden from the task manager? I am not able to alter source-code for this process. Am I up a creek here? Thanks in advance! Nick Hodapp
  • CRichEditCtrl doesn't get WM_LBUTTONUP

    help debugging question
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • Worker pointers

    question c++ learning
    2
    0 Votes
    2 Posts
    14 Views
    U
    I've heard of smart pointer, NULL pointers, and dangling pointers. But worker pointers? Nope. My guess is that they're just local pointers which are used when traversing an array or a linked list; sort of like "iterators". Anyone else have an idea? Alvaro
  • List box not repainting correctly

    help question
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied