This is an extension of
my previous question[
^].
I have now written a very simple dialog-based MFC app with automation enabled. It doesn't do anything at all except display the dialog. It's called "test_server", and was produced using Visual Studio 2008 with absolutely nothing but default settings, just what the New Project wizard produces. I also wrote a standard deployment project for this which just puts the app into Program Files and a shortcut to it onto the Start menu.
I wrote a very simple VBS script:
Set test=Wscript.CreateObject("test_server.Application")
MsgBox "Click to exit test_server",,"Exit"
The script launches the app fine in XP after a clean install (so long as I run the app in stand-alone mode first to register it, which is acceptable), but fails in Vista.
I get the message "Could not locate automation class ..." with the error number 80020009.
I'm quite sure that this must be a well-known issue, but I've steered clear of Vista up to now, and so it's new to me. Any help in solving greatly appreciated. (Obviously, this is just a test stub for a problem involving two much larger MFC programs that interact OK in XP but fail in Vista).
thanks,
Bill Heitler