Excel Add-in Development in C/C++ pptx

425 370 1
Excel Add-in Development in C/C++ pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 4.12 Accessing DLL functions from VB Accessing DLL functions from Excel 5 Turning DLLs into XLLs: The Add -in Manager Interface 5.1 Adding the Excel library and header files to a DLL project 5.2 What does the Add -in Manager do? 5.2.1 Loading and unloading installed add-ins 5.2.2 Active and inactive add-ins 5.2.3 Deleted add-ins and loading of inactivate add-ins 5.3 Creating an XLL: The xlAuto interface... 2.5 EXCEL INPUT PARSER When a user types input to a cell in Excel and commits the data (by pressing enter, tab or selecting another cell), Excel performs several operations in the order outlined below In essence, it is attempting to guess what kind of input the user was providing, and then tries to interpret accordingly Understanding the order in which Excel does these things may help you when creating... 9.5.3 Calling user-defined commands using COM 9.5.4 Calling user-defined functions using COM 9.5.5 Calling XLM functions using COM 9.5.6 Calling worksheet functions using COM 9.6 Maintaining large data structures within the DLL 9.7 A C++ Excel name class example, xlName 9.8 Keeping track of the calling cell of a DLL function 9.8.1 Generating a unique name 9.8.2 Obtaining the internal name of the calling cell... accessed directly by Excel Chapter 5 Turning DLLs into XLLs: The Add -in Manager Interface How to turn a DLL into an add -in that Excel can load using the add -in manager: an XLL The functions that Excel needs to find in the DLL How to make DLL functions accessible directly from the worksheet Chapter 6 Passing Data between Excel and the DLL The data structures used by the Excel C API Converting between these... to use and so understand, another development language, and another compiler or IDE In essence, this is no harder than using VBA and the VB 6 Excel Add -in Development in C/C++ editor The additional requirement is to know what Excel expects from and provides to anything calling itself an Excel add -in In other words, you need to understand the Excel interface The two interfaces that have been available... 6.10 Initialising xlopers Missing arguments ix 157 160 7 Memory Management 7.1 Excel stack space limitations 7.2 Static add -in memory and multiple Excel instances 7.3 Getting Excel to free memory allocated by Excel 7.3.1 Freeing xloper memory within the DLL call 7.3.2 Freeing xloper memory returned by the DLL function 7.4 Getting Excel to call back the DLL to free DLL-allocated memory 7.5 Returning... Getting the available stack space: xlStack Converting one xloper type to another: xlCoerce Setting cell values from a command: xlSet Getting the internal ID of a named sheet: xlSheetId Getting a sheet name from its internal ID: xlSheetNm Yielding processor time and checking for user breaks: xlAbort 8.7.8 Getting Excel s instance handle: xlGetInst 8.7.9 Getting the handle of the top-level Excel window:... and in what order does Excel call the XLL interface functions? 5.5 XLL functions called by the Add -in Manager and Excel 5.5.1 xlAutoOpen 5.5.2 xlAutoClose 5.5.3 xlAutoAdd 5.5.4 xlAutoRemove 5.5.5 xlAddInManagerInfo 5.5.6 xlAutoRegister 5.5.7 xlAutoFree 6 Passing Data between Excel and the DLL 6.1 Handling Excel s internal data structures: C or C++? 6.2 How Excel exchanges worksheet data with DLL add -in. .. resource.) NET add-ins and controllers Excel 2002 or later A C/C++/ C# compiler capable of building NET components for Microsoft Office applications At the time of writing, a good starting point for locating Microsoft downloads is www.microsoft.com/downloads/search.asp 1.2.1 VBA macros and add-ins VBA is supplied and installed as part of all 32-bit versions of Excel If you only want to write add-ins in VB, then... stored internally depending on binary representation of mantissa Integer (stored by Excel as floating point): ± i where 0 ≤ |i| ≤ 1,000,000,000,000,000 (1015 ) (Outside these bounds, floating point representations truncate lowest order digits.) Notes: 1 Certain number formats have narrower limits than these, e.g., dates and times 2 Integer division is, in fact, floating point division and may, in extreme . y0 w0 h0" alt="" Excel Add -in Development in C/C++ Applications in Finance Steve Dalton Excel Add -in Development in C/C++ Wiley Finance Series For other titles in the Wiley Finance Series please. and inactive add-ins 96 5.2.3 Deleted add-ins and loading of inactivate add-ins 96 5.3 Creating an XLL: The xlAuto interface functions 96 5.4 When and in what order does Excel call the XLL interface functions?. XLLs: The Add -in Manager Interface 95 5.1 Adding the Excel library and header files to a DLL project 95 5.2 What does the Add -in Manager do? 95 5.2.1 Loading and unloading installed add-ins 95 5.2.2

Ngày đăng: 27/06/2014, 08:20

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan