|
-
Nov 2nd, 2000, 07:25 PM
#1
Thread Starter
Hyperactive Member
I have VB6 installed here on WinMe, I tried to import riched20.dll into VB
by going to "components" and adding it in. But I get an error saying
"riched20.dllwas not registerable as an ActiveX Component".
do you have any idea on how I could import it into VB?
cheers,
Abdul
-
Nov 2nd, 2000, 07:50 PM
#2
Register it by...
go to Start > Run
then type Regsvr32.exe riched20.dll
-
Nov 3rd, 2000, 03:34 AM
#3
Thread Starter
Hyperactive Member
many thanks...
many thanks...
but.. when I did that I get the following error
"riched20.dll was loaded, but the DllRegisterServer entry point was not found"
Does anyone have any idea on what I can do?
has anyone used the riched20.dll in VB?
any ideas Megatron?
thanks!
Abdul
-
Nov 3rd, 2000, 05:09 AM
#4
Junior Member
A dll file is not an Active X control and therefore is not listed in the components. dll are registered in the references section.
If the dll registration failed do a search for regsvr32.exe once you have located it go to a dos prompt window and execute the command from the directory where regsvr32.exe is located and give the full path of the dll.
eg
C:\windows\system>regsvr32.exe "C:\windows\system\riched20.dll"
On the menu Bar in your VB project (the one using the dll) select Project then select References in the list you should see your new dll. tick the box and the whole thing should work.
[Edited by charliecatney on 11-03-2000 at 05:17 AM]
-
Nov 3rd, 2000, 05:12 AM
#5
Thread Starter
Hyperactive Member
thanks
thanks, I tried it..
but then what do I do?
how do I use the control? I have added the dll to the refferences now (in VB)... but how can I use the dll now?
thanks a lot
yours,
Abdul
-
Nov 3rd, 2000, 05:30 AM
#6
Junior Member
If everything is registered and referenced properly.
I added the dll and the reference is called "tom"
To make use of the dll
Carry out the following
Code:
Dim x as new tom.'Selected Class'
'use the properties methods and events for the dll as
x.'Property/Method/event'
Charlie
-
Nov 3rd, 2000, 05:37 AM
#7
Thread Starter
Hyperactive Member
thanks charlie
thanks,
am still confused, as I have done what you said... and yes "tom" appears now in my refferences.
But.. I dont know how to use this dll. I mean.. is it not to be used like a control you see in the tools on the left (in VB).. like command button, label, image, combobox etc etc ?
thanks again !
Abdul
-
Nov 3rd, 2000, 07:25 AM
#8
You can check to see if it is a control.
Richt click on your toolbox, select components. and search for it in you list. Perhaps it exist as a control..
-
Nov 3rd, 2000, 09:30 AM
#9
The Text Object Model is a right pain in the butt ot use. Have a look at vbAccelerators RichEdit control (www.vbaccelerator.com)which uses a lot of the functions avaialble in the tom, although he is send API messages instead of going throug the tom.
- gaffa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|