Craig Johnston
Craig Johnston

Reputation: 7607

VB6 app: rich textbox control

I have taken responsibility of a VB6 app.

I installed the VB6 IDE on one of my older machines. When I compile the app and copy the .exe to client machines, the Rich Textbox control breaks the app and causes a run-time error.

How important is it what machine you compile an app on? Is it possible that the app is expecting a control with a different ID and therefore there is a run-time error?

Upvotes: 1

Views: 1406

Answers (1)

MarkJ
MarkJ

Reputation: 30408

You need to deploy the Rich Textbox control richtx32.ocx to the client machines. These tables show it is not part of Windows, you need to deploy it yourself.

  • You might want to create an install for your program.
  • You could look into using a manifest so that you can just copy your program and its dependencies (like richtx32.ocx).
  • You could just manually copy the OCX file and use regsvr32 to register the OCX. This will quickly become unmanageable if you have more dependencies or many machines to deploy onto.

Upvotes: 1

Related Questions