You have your CompObj.DLL in the directory with your program.
Start your program and that CompObj.DLL is loaded.
Start Word and it has no problems with the newer version of CompObj.DLL.
Close both. There are no references to your newer CompObj.DLL, so it is unloaded
from memory.
Start Word. It loads CompObj.DLL from Windows\System -- the older CompObj.DLL is
now in memory.
Try to start your program. CompObj.DLL is already running in memory, so yours is
not loaded. But the one in memory is older, and your program can't use it. Ergo,
error.
Solution -- copy your newer CompObj.DLL to Windows/System. (Save the old one
elsewhere, just in case)
>Hello Visual Basic programmer,
>I have a question about DLL's.
>for example:
>Installing Word for Windows on a PC (using his own COMPDLG.DLL).
>Installing my beautiful program in a subdirectory to copuy all the DLL and
>OCX etc.
>Starting Word, great it workes perfect.
>Ouit Word.
>Start MyProgram, great it workes perfect.
>I still have my program active when I start Word and Word workes perfect.
>Quit Word and Quit MyProgram.
>Start Word and then start MyProgram, MyProgram comes with the error that
>the COMPOBJ.DLL is an old version.
>Please help me.
>Does anybody Know how to solve this problem??????
>Frank