OLE Clipboard :: Win32 API vs. MFC

This is a discussion on OLE Clipboard :: Win32 API vs. MFC within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I use Programming Windows with MFC, Second Edition by Jeff Prosise as a reference for the OLE Clipboard. Prosise ...

  1. #1
    kuphryn
    Guest

    OLE Clipboard :: Win32 API vs. MFC

    Hi.

    I use Programming Windows with MFC, Second Edition by Jeff Prosise as a reference for the OLE Clipboard. Prosise demonstrates both Win32 API method and MFC simple classes encapsulating the Win32 API method for the OLE Clipboard.

    The Win32 API method is not difficult, just takes up a little bit more code than if you use MFC. I would like to know is there any advantage to using Win32 API instead of MFC for OLE Clipboard and even COM?

    I enjoy working with Win32 API, but not for GUI.

    Thanks,
    Kuphryn

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: OLE Clipboard :: Win32 API vs. MFC

    Originally posted by kuphryn
    Hi.

    I use Programming Windows with MFC, Second Edition by Jeff Prosise as a reference for the OLE Clipboard. Prosise demonstrates both Win32 API method and MFC simple classes encapsulating the Win32 API method for the OLE Clipboard.

    The Win32 API method is not difficult, just takes up a little bit more code than if you use MFC. I would like to know is there any advantage to using Win32 API instead of MFC for OLE Clipboard and even COM?

    I enjoy working with Win32 API, but not for GUI.

    Thanks,
    Kuphryn
    From little I've done with COM, I prefer as much help as possible.......its a real nasty technology to do in C++ unless you have a decent library to help you (ATL, MFC....)

    If you want to look at COM as raw as it gets try this. The MASM distro itself has more ASM/COM stuff too....

  3. #3
    kuphryn
    Guest
    Okay. Thanks.

    Kuphryn

  4. #4
    kuphryn
    Guest
    Okay. I tested an OLE Clipboard implementation with some lines of text. Everything works good, except for that fact that the data buffer ingored all newlines. For example, let this copy the following data, which I first save in a string object, to the OLE Clipboard.

    -----
    Test
    1
    2
    3
    Testing Completed
    -----

    This is what I would see when I paste to Notepad.

    -----
    Test[]1[]2[]3[]Testing Completed
    -----

    I am using the OLE Clipboard strictly for text. I would like to know is it possible to copy data to the clipboard so Windows would recognize all new lines?

    Thanks,
    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 04:26 PM
  2. Win32 API and MFC
    By loopshot in forum C++ Programming
    Replies: 6
    Last Post: 12-07-2004, 11:58 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM
  4. Thread Synchronization :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-09-2002, 10:09 AM
  5. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 09:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21