473,507 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any VB/COM experts here??

Applications can retrieve an ITextDocument pointer from a rich edit control.
To do this, send an EM_GETOLEINTERFACE message to retrieve an IRichEditOle
object. Then, call the object's QueryInterface method to retrieve an
ITextDocument pointer.

How to do that?? I tried:

Dim oREO As Object

Dim mIDocument As tom.ITextDocument

SendMessage(Handle, EM_GETOLEINTERFACE, 0, oREO)

mIDocument = CType(oREO, tom.ITextDocument)

But this produces a "Cast Not Valid" message

Anyone have any insight as to how to make VB call QueryInterface??

Thanks in advance
Nov 20 '05 #1
3 888
* " SamSpade" <st**************@REMOVEaol.com> scripsit:
Anyone have any insight as to how to make VB call QueryInterface??


Untested in your situation:
'System.Runtime.InteropServices.Marshal.QueryInter face'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
I had read this but did not understand how to use it.

Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* " SamSpade" <st**************@REMOVEaol.com> scripsit:
Anyone have any insight as to how to make VB call QueryInterface??


Untested in your situation:
'System.Runtime.InteropServices.Marshal.QueryInter face'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
Maybe I've got it
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:Ov**************@TK2MSFTNGP11.phx.gbl...
I had read this but did not understand how to use it.

Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* " SamSpade" <st**************@REMOVEaol.com> scripsit:
Anyone have any insight as to how to make VB call QueryInterface??


Untested in your situation:
'System.Runtime.InteropServices.Marshal.QueryInter face'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
2503
by: ByteSize | last post by:
Dear All, Please, this is not meant to be offensive - but it is a challenge !!! I have posted on over a dozen so called 'vb.net' expert / blog sites - in the vain hope of finding a complete,...
53
3938
by: ROSY | last post by:
hello, response if u ,on all level of questions::: 1.how a self deletable .exe file deleted on some future date & time without invoking the .exe itself? 2.if we want that any wildcard...
0
2143
MMcCarthy
by: MMcCarthy | last post by:
I've decided to replace the announcement with a sticky thread. Again I would like to welcome all experts to this forum. We are gaining some great experts who are contributing significantly to the...
28
15398
MMcCarthy
by: MMcCarthy | last post by:
Policies below superceded by FAQ Post Course Work Questions and Answers. ADMIN
4
1448
by: MrHelpMe | last post by:
Hello experts, Using asp with javascript and after reading many articles I found that 1 way to hide url is to use frames. However, my application has a form in which the user enter's values and...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.