• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

All Excel C++ Interop Interfacing Visualisation here

And note incorrect and correct calls. (Check your ExcelDriver.cpp)

Code:
//Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem("Sheet1");
Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem(1); //Language-independent
 
And note incorrect and correct calls. (Check your ExcelDriver.cpp)

Code:
//Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem("Sheet1");
Excel::_WorksheetPtr sheet = workbook->Worksheets->GetItem(1); //Language-independent
doesn't it make it placement dependent? I don't think that's necessarily an incorrect call
 
Using "Sheet1" only works with the English version of Excel.
I don't disagree with that. However, using the ordinal number assumes you are looking at the first sheet. If a new sheet is inserted the code stops working. I rather use the name since Sheet1 is going to change to something meaningful (you don't plan to keep Sheet1, correct?) and you can use whatever name you picked going forward.

If you keep the name of the worksheet you are interacting with as Sheet1, Sheet2, etc, we are ready for a more meaningful discussion.
 
I don't disagree with that. However, using the ordinal number assumes you are looking at the first sheet. If a new sheet is inserted the code stops working. I rather use the name since Sheet1 is going to change to something meaningful (you don't plan to keep Sheet1, correct?) and you can use whatever name you picked going forward.

If you keep the name of the worksheet you are interacting with as Sheet1, Sheet2, etc, we are ready for a more meaningful discussion.
Well, I would like to but "Sheet1" will crash non-English versions.

The name is not so important for visualisation at the moment, the latter being the objective in the C++ course.
 
Well, I would like to but "Sheet1" will crash non-English versions.

The name is not so important for visualisation at the moment, the latter being the objective in the C++ course.
in that case, change the name. That's what needs to be done.
 
any name that conveys the content of the worksheet. Sheet1 is definitely not a good one though.
In general, yes. It would be a s/w change control request.
The name occurs in a specific context and using 1 is OK. It is possible to change the name afterwords if need be.
 
I am using MS Visual Studio Express 2013, it seems to be not compatible
the file generated by the compiler .... debug\vbe6ext.tli
has this label
// Created by Microsoft (R) C/C++ Compiler Version 12.00.21005.1 (cbedc806). hence the error ?
 
Last edited:
compiler says
fatal error C1083: Cannot open type library file: 'C:\Program Files(x86)\Common Files\microsoft shared\OFFICE14\mso.dll': No such file or directory

but it is there !

Couldn't this simply be due to admin restrictions?
 
Couldn't this simply be due to admin restrictions?
Indeed

1. No file (hint: check file _is_ on disk)
2, Wrong access rights

3. Maybe you have a Express (by definition, Express < Full).
4. file is somewhere else?
 
Last edited:
I don't remember the last time I used MS Excel, Google Sheets are the trend
Excel is still a standard. Traders use Excel a lot.

Anyways, I built the ExcelDriver in C++ and C# to display FDM output. It's cool.
 
Back
Top