Thanks, vb5prgrmr. I had been playing around with that before but could not get it to work. It is good to know that I was on the right track.
However, I am still having dificulty. I get a error 430; Class does not support Automation or does not support expected interface. I searched on line for the error and chased a few leads but couldn't get rid of it. So I created two new projects. A standard EXE and a ActiveX EXE.
I tried to keep these as simple as possible to better understand what is going on. I used all the default settings but did rename the ActiveX EXE project name to WPExe. The code in the Class1 of the ActiveX Exe is
Sub StartHere
Msgbox "A"
End sub
With no additional code I made the ActiveX EXE.
In the Standard EXE I added a module, deleted the form, Referenced the compiled ActiveX EXE and added this code to Module1
Option Explicit
public objWP as new Class1
sub Main
msgbox "1"
objwp.starthere
end sub
I made an EXE for the Standard EXE.
Following your directions, I opened the ActiveX EXE, placed a break point at "Msgbox "A"" and choose run with full compile. On the Debugging screen of the Project Properties I referenced the calling program. It started fine(it displayed the Msgbox "1") but when it called the ActiveX EXE I received the Error 430 above. Since the two projects are so basic, I must assume I have something set up incorrectly. Could you offer any further assistnace?
Thanks,
Pat