Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. RichEdit Controls / Embedded Objects

RichEdit Controls / Embedded Objects

Scheduled Pinned Locked Moved C / C++ / MFC
hardwaretutorialquestion
9 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Thresher
    wrote on last edited by
    #1

    I'm trying to replicate the recipient text control from Outlook which converts the text typed into objects that contain the formats CF_TEXT, CF_UNICODETEXT and MsOffice8Recipent. I've created an IDataObject with the CF_TEXT format but I can't work out how to get it into the RichEdit control as an object. There is a sample on MSDN for inserting bitmaps that uses OleCreateFromFile() to create the object but I can't work out which OleCreate function to use for my object. OleCreateStaticFromData() returns invalid clipboard format and OleCreateFromData() generates the following exception: 'Unhandled exception at 0x7730de64 (ntdll.dll) in acc3st.EXE: 0xC0000005: Access violation reading location 0x0023ffff'. Can anyone suggest what I'm doing wrong?

    L 1 Reply Last reply
    0
    • S Steve Thresher

      I'm trying to replicate the recipient text control from Outlook which converts the text typed into objects that contain the formats CF_TEXT, CF_UNICODETEXT and MsOffice8Recipent. I've created an IDataObject with the CF_TEXT format but I can't work out how to get it into the RichEdit control as an object. There is a sample on MSDN for inserting bitmaps that uses OleCreateFromFile() to create the object but I can't work out which OleCreate function to use for my object. OleCreateStaticFromData() returns invalid clipboard format and OleCreateFromData() generates the following exception: 'Unhandled exception at 0x7730de64 (ntdll.dll) in acc3st.EXE: 0xC0000005: Access violation reading location 0x0023ffff'. Can anyone suggest what I'm doing wrong?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I was going to comment on your question, but after checking the picture on your homepage, I think you are a wonderful and generous person, whose contribution to society is immeasurable!

      S 1 Reply Last reply
      0
      • L Lost User

        I was going to comment on your question, but after checking the picture on your homepage, I think you are a wonderful and generous person, whose contribution to society is immeasurable!

        S Offline
        S Offline
        Steve Thresher
        wrote on last edited by
        #3

        Would you care to elaborate on that most bizarre response?

        L 1 Reply Last reply
        0
        • S Steve Thresher

          Would you care to elaborate on that most bizarre response?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It's late, and the gun is scary! Sorry Steve, stupid English (feeble attempt at) humour!

          S D 2 Replies Last reply
          0
          • L Lost User

            It's late, and the gun is scary! Sorry Steve, stupid English (feeble attempt at) humour!

            S Offline
            S Offline
            Steve Thresher
            wrote on last edited by
            #5

            The picture was taken on while on my brothers stag week and it's the first and only time I've fired a real gun. I'd no idea it would elicit that kind of a response!

            L 1 Reply Last reply
            0
            • S Steve Thresher

              The picture was taken on while on my brothers stag week and it's the first and only time I've fired a real gun. I'd no idea it would elicit that kind of a response!

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              The only one of these functions I ever used was OleLoadPicture() which I used to get a JPEG image loaded and displayed. This required the file to be read into memory first and then accessed via a LPSTREAM pointer. You may find that OleLoadFromStream() offers similar capabilities. To be brutally frank I don't fully understand these functions, but I just did a lot of poking around until I got it to work.

              S 1 Reply Last reply
              0
              • L Lost User

                The only one of these functions I ever used was OleLoadPicture() which I used to get a JPEG image loaded and displayed. This required the file to be read into memory first and then accessed via a LPSTREAM pointer. You may find that OleLoadFromStream() offers similar capabilities. To be brutally frank I don't fully understand these functions, but I just did a lot of poking around until I got it to work.

                S Offline
                S Offline
                Steve Thresher
                wrote on last edited by
                #7

                Thanks for the info. It sounds like I might be able to use the OleLoad() function to do what I want. Someone really ought to write a book on what's going on inside OLE :)

                G 1 Reply Last reply
                0
                • S Steve Thresher

                  Thanks for the info. It sounds like I might be able to use the OleLoad() function to do what I want. Someone really ought to write a book on what's going on inside OLE :)

                  G Offline
                  G Offline
                  Gary R Wheeler
                  wrote on last edited by
                  #8

                  They did. It's called The NecronomiCOM.

                  Software Zen: delete this;
                  Fold With Us![^]

                  1 Reply Last reply
                  0
                  • L Lost User

                    It's late, and the gun is scary! Sorry Steve, stupid English (feeble attempt at) humour!

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #9

                    Silly Hoplophobe. :rolleyes:

                    The latest nation. Procrastination.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups