> I am developing an out-of-process ActiveX server (ActiveX EXE) and have a
> standard application that references it. Both are VB6 projects.
[quoted text clipped - 10 lines]
> Error: Automation Error
> %1 is not a valid Win32 application.
That doesn't look like the error message you should be getting. Sounds
like a corrupt file to me. You might want to recompile. If you do,
unregister that one and delete it.
VB will do everything it can to create a reference to the component you
have specified in the references dialog... that includes re-registering
it automatically... even if that's not what you want. That causes big
problems when you've broken compatibility. It's better to unregister and
delete (don't forget to empty the recycle bin)
> ------------------------------------------
>
[quoted text clipped - 3 lines]
> 1) Before changing my ActiveX class, I went to my client application
> and de-referenced the ActiveX server.
at this point, it's best (imo) to exit VB, unregister the component
(optionally zip it up) and delete it.. empty the recycle bin too.
This avoids registry garbage that can have a very bad effect on the
project. If you have RegClean, run that too.
> 2) Closed the application project.
> 3) Opened the ActiveX server project, made my change and compiled.
[quoted text clipped - 4 lines]
> 5) Opened the application project
> 5a) Added a reference to the ActiveX server
No extra entries for the server in the references dialog? Unregister and
delete all versions of that server, run RegClean and rebuild... then,
setup compatibility.
> 5b) Compiled and ran -- got error.
>
> TIA!
> Lee

Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..