[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Error 432 - OLE Automation problem

In my VB5 program that uses OLE Automation, I use a CreateObject statement :

Dim x as Object

set X = CreateObject("reflectionibm.application")
.
.

When I run the program under the VB5 (Professional edition) development environment in Windows WorkStation 4.0, the program works ok and as expected. When I compile the program into a standard EXE and ran the EXE I hit the following error :

   432 - filename or classname not found during automation            operation

I think the problem may be due to some Registry problem, what I don't understand is why the pgm works under VB5 development environment while the compiled EXE fails.
0
tanwee
Asked:
tanwee
1 Solution
 
fasterCommented:
I myself have not had such problem so far, but I guess it might be related with your type library.  If the control supports dual interface, then the complier might try to look for it and however it fails somewhere.  When you run it in devlopment phase, it is using the dispatch interface so is OK.  Maybe you can try to use dual interface in your code as try again in development env and see how.                  .
0
 
tanweeAuthor Commented:
I am not familiar with the type library etc and running short of time- so we cannot  pursue farther on  your pointer. we're be moving the application to WIN95 where the executable does work. Thanks anyway
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now