RichEdit Controls / Embedded Objects
-
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?
-
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?
-
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!
Would you care to elaborate on that most bizarre response?
-
Would you care to elaborate on that most bizarre response?
-
It's late, and the gun is scary! Sorry Steve, stupid English (feeble attempt at) humour!
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!
-
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!
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 aLPSTREAM
pointer. You may find thatOleLoadFromStream()
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. -
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 aLPSTREAM
pointer. You may find thatOleLoadFromStream()
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.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 :)
-
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 :)
They did. It's called The Necronomi
COM
.Software Zen:
delete this;
Fold With Us![^] -
It's late, and the gun is scary! Sorry Steve, stupid English (feeble attempt at) humour!