Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"num#" errors .. how to average a group with a "num#" error | Excel Discussion (Misc queries) | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Excel Discussion (Misc queries) | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Setting up and Configuration of Excel | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions |