Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

activex error

Status
Not open for further replies.

sqlpro

Programmer
Dec 30, 2003
297
NZ
Hi friends
i am having problem with a control (richtextbox)in runtime on WINXP os.
it is giving error like
"Ole error code 0x80007000e:Not enough storage is available
to complete this operation"
actually we created a activex control in vb and using it foxpro.
funny thing is it happens intermittently and funny thing is it works perfectly well on one winxp machine but not the other.It causing our client lot of frustration.
Have u guys had similar problem and fixed it.
I tried various ways like...

i created new form and placed olecontrol and selected richtextbox(RICHTX32.OCX) not our activex to see if actual richtextbox works on that machine.

this form ran well on my machine (win2000) but i ran it our
client machine it gave me following error..
Unspecified error:eek:le object being ignored :record no "4"
it runs form but without any control on it.

i even tried adding control thr code like
Code:
this.addobject('ctrl','olecontrol','RICHTEXT.RichtextCtrl.1')
this.ctrl.visible=.t.
this.ctrl.width=352
this.ctrl.height=162
thisform.refresh
but this gives different error
class is not licensed ......
want to know how to debug this sort of error.
Any ideas Plz
(our client machine has vfp6 runtime)

cheers
 
It seems we finally got it working.
we copied following files from our vfp8 runtime and registered them on our client machine

RICHED.dll
riched20.dll
riched32.dll
RTFWRAP.ocx (this is actually our activex control)

only thing is we copied these files our application installation directory and registered them but
for some reason if we copy them to windows\system directory it does not work!!!

anyway it worked finally :)

cheers
 
You have to register ActiveX controls, they can't just be copied. IMO, you should be using a good installer program that will properly install and register everything on the client PC. You can use InstallShield Express that ships with VFP 8.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
Yes,Craig
Now we r using Installshield for VFP8 application.
Thanks :)

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top