Gerrit-Jan Linker
|
vb6 and lost references In classic VB, VB6, references to other OLE objects can get lost. It is a real pain. You need to use the references dialog to add them again, but which one was it?... I found that you can edit the .vbp file to add them manually. For example referencing Office 2007 I added a reference to mso.dll. However I also want to use this when I am using Office 2003. True, the 2007 functionality won't work but it is still nice if the project compiles, right? So, I renamed mso.dll to mso12.dll and put it in the project directory. I added the following reference in the .vbp: Reference=*\G{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}#2.4#0#MSO12.DLL# Please note that I removed all information after the last #. If you keep this VB6 will recognise the dll and mess it up again.
|