Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Errors with #import "Excel9.olb"

Julia wrote:
I have a standard VC++ Win32 DLL that exports some functions.


I may be wrong, but I don't think we have many experts in C++ in this
newsgroup which focuses on the use of VBA within Excel.

You might be better trying a group such as
microsoft.public.vc.language

The OLB file provides a set of object class definitions for Excel.
In the VB world we would Reference the file rather than Import it - but
I don't know how that translates into C++

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"num#" errors .. how to average a group with a "num#" error Byron Excel Discussion (Misc queries) 3 May 20th 09 04:32 AM
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Excel Discussion (Misc queries) 0 April 23rd 09 08:53 PM
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. Phillip Pi Setting up and Configuration of Excel 0 April 23rd 09 08:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM


All times are GMT +1. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"