... completeness:
Accessing Excel Functionality Using the C API 229
8.2.3 Calling Excel worksheet functions in the DLL using
Excel4 (), Excel1 2()
Excel exposes all of the built -in worksheet functions through Excel4 () /Excel1 2().
Calling ... DLL_THREAD_DETACH.
234 Excel Add -in Development in C/C++
int __stdcall Excel4 v(int, xloper *, int, const xloper *[]);
int __st...
... Programmer
Interface).
Feedback
The final method in the listing is printInfo( ), which takes a Class
reference and gets its name with getName( ), and finds out whether it’s
an interface with isInterface( ... System.out.println("Can't find FancyToy");
System.exit(1);
}
printInfo(c);
Class[] faces = c.getInterfaces();
for(int i = 0; i < faces.length; i++)
p...
... dialogs 3 75
9 .5 Accessing Excel functionality using COM/OLE automation using
C++ 376
9 .5. 1 Initialising and un-initialising COM 377
9 .5. 2 Getting Excel to recalculate worksheets using COM 379
9 .5. 3 ... below)
Financial Applications Using
Excel Add -in Development in C/C++
Second Edition of Excel
Add -in Development in C/C++
Steve Dalton
xii Conten...
... that appears
in print may not be available in electronic books.
Library of Congress Cataloging -in- Publication Data
Dalton, Steve.
Financial applications using Excel add -in development in C/C++ / ...
Contents xv
10.9.1 Using Excel and VBA only 50 7
10.9.2 Using Excel and C/C++ only 50 9
10.9.3 Using worksheet functions only 51 1
10.10 Calibration 51 1
10.11...
... contents
of the add -in to help the user decide if they want or need to install it. Chapter 5 Turning
DLLs into XLLs: The Add -in Manager Interface, on page 111, explains how to include
and make ... for
determining the length of a
BSTR: SysStringLen() and SysStringByteLen().
They would return the following when applied to these example strings as passed from
VBA to a DLL:
54 Excel...
... have add-ins with conflicting function names, perhaps different versions of the same
add -in. )
5. 2.3 Deleted add-ins and loading of inactivate add-ins
On termination of an Excel session, the Add -in ... = NULL;
Excel1 2v = NULL;
XLCallVer = NULL;
}
}
5. 2 WHAT DOES THE ADD -IN MANAGER DO?
5. 2.1 Loading and unloading installed add-ins
The Add -in Manager is responsible for l...
... following code
shows how to obtain the full handle using the Windows API
EnumWindows() func-
tion in Excel 2003–. In Excel 2007 and later versions, when called using
Excel1 2(),
the returned
xltypeInt ... 0x4007, obtains an instance handle for the running instance
of Excel that made this call into the DLL. This is useful if there are multiple instances
of Excel running and yo...
... (exported)
Interp (registered with Excel)
Description Takes two columns of inputs, the first being values of x in
ascending order, the second being corresponding values of y.
452 Excel Add -in Development ... of
make_spline(), which fails if this is not the case.
470 Excel Add -in Development in C/C++
(See sections 9.6 Maintaining large data structures within the DLL on pa...