Hi MR. Duffy,
I purchased your book " Monte Carlo frameworks, Building customisable High performance C++ Application, and i tried to compile the source code from the following cd folder:
file:///Z:/content/Chapter27 - Excel Projects/Black Scholes/
And, i registered the BlackscholesAddin.dll in the registry. It is successfully registered under HKEY_LOCAL_Machine\Microsoft\Office\Excel\AddIns
However, when i open your BlackScholes.xls (from the cd), all the following fields showed " #Name? "
-Price
-Delta
-Gamma
-Vega
-Put price
-Call price
To test the Com DLL is successfully registered, i written the following internal VBA code, it run successfully, and Result = 2.4679
Private Sub CommandButton1_Click()
Dim tp As New BlackScholes
Dim Result As Double
Dim temp As Double
Result = tp.Price(1, 0.1, 0.2, 95, 0.5, 100, 0.05)
End Sub
But i do not understand why it doesn't work on excel worksheet, meaning the following formula on excel cell returns error ( #Name?) :
BlackScholesAddin.BlackScholes.1.Price(B2,B3,B4,B5,B6,B7,B8)
Could you please help to assit me? I have done alot of googling.. but no lucks still.