Re: Call EViews 8 (64 bit) from Matalb 2013a (64 bit)
Posted: Tue Jun 03, 2014 3:59 pm
Wow, this one is difficult to figure out...
At best as I can determine, MATLAB seems to be remembering where the original type library was initially found for a given ProgID (in our case "EViews.Manager"). Once "remembered, MATLAB will continue to look for that file in the original location regardless of what the Windows registry is saying. This means that if the first time you wrote your MATLAB program you were using EViews 7, and then you upgraded to EViews 8 and uninstalled EViews 7, you would find that MATLAB is no longer working with EViews.
I haven't been able to figure out how to reset this cache (I've tried "clear all" and "rehash" without success) other than possibly uninstalling MATLAB, then re-installing it.
However, I did figure out an easy workaround. MATLAB only needs the EViews 7 file that contained the type library, which was: EViewsMgr.dll.
Actually, ignore this workaround -- I've figured out a better one -- see other postings below...
At best as I can determine, MATLAB seems to be remembering where the original type library was initially found for a given ProgID (in our case "EViews.Manager"). Once "remembered, MATLAB will continue to look for that file in the original location regardless of what the Windows registry is saying. This means that if the first time you wrote your MATLAB program you were using EViews 7, and then you upgraded to EViews 8 and uninstalled EViews 7, you would find that MATLAB is no longer working with EViews.
I haven't been able to figure out how to reset this cache (I've tried "clear all" and "rehash" without success) other than possibly uninstalling MATLAB, then re-installing it.
However, I did figure out an easy workaround. MATLAB only needs the EViews 7 file that contained the type library, which was: EViewsMgr.dll.
Actually, ignore this workaround -- I've figured out a better one -- see other postings below...
SteveSo I've made a modified public version of this file available for download. It needs to placed in the exact same location as where your previous EViews 7 installation was located. By default this location is:
(Windows 32-bit) c:\Program Files\EViews7 (note there is no space between "EViews" and "7")
(Windows 64-bit) c:\Program Files (x86)\EViews7 (note there is no space between "EViews" and "7")
Here's the download link for the modified file:
http://eviewsdropbox.s3.amazonaws.com/EViewsMgr.dll
Once you have this file in its original directory, you should be able to use EViews 8 via COM Automation from MATLAB 2013a.
If I ever figure out how to reset MATLAB, I'll post that too...