View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Julia[_2_] Julia[_2_] is offline
external usenet poster
 
Posts: 4
Default Errors with #import "Excel9.olb"

Hi

I have a standard VC++ Win32 DLL that exports some functions. I am
trying to utilize some of the functionality in Excel and as far as I
can tell the easiest way to do that is to #import "Excel9.olb". The
problem is that when I include this line of code I get loads of build
errors like "error C2504: '_IMsoDispObj' : base class undefined".

Does anyone know why I'm getting these errors – am I neglecting to do
something? Or, is there a better way to automate Excel other than
#import, and if so, what?

Many thanks
Julia.