Discussion thread Part I: Fundamentals

Building Customisable High Performance C++ Applications

Discussion thread Part I: Fundamentals

Postby Cuchulainn » Sat Oct 10, 2009 4:40 pm

Discussing the book, chapters 0 - 7
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Mon Nov 23, 2009 2:30 pm

In a few files in chapter 0 we have (for example)



#include "Utilities/VectorsAndMatrices/Vector.cpp"

#include "Utilities/Geometry/Range.cpp"



The official directory now is "UtilitiesDJD". Please change these to below:





#include "UtilitiesDJD/VectorsAndMatrices/Vector.cpp"

#include "UtilitiesDJD/Geometry/Range.cpp"





Two other files in directories



a. chapter25/NumericalIntegrator

b. chapter9/InterestRateProblem





We have 2 utilities directories, one for each author.
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Mon Nov 23, 2009 5:22 pm

If you using ExcelMechanisms, put



UtilitiesDJD/BitsAndPieces/StringConversions.cpp



into project
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Mon Nov 23, 2009 5:49 pm

We use English version in ExceleDriver.cpp. For other languages (e.g. German, French)you need to change the following



// Rename "Sheet1" to "Chart Data".

Excel::_WorkbookPtr pWorkbook = xl->ActiveWorkbook;

Excel::_WorksheetPtr pSheet

= pWorkbook->Worksheets->GetItem("Sheet1");

pSheet->Name = "Chart Data";
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Mon Nov 23, 2009 7:31 pm

These are the files you need for the projects in chapter 0 (NB don't forget to define additional include directories one level above UTILITIESDJD!!)



Only use 1 active test.cpp program at any one time.
Attachments
MakeAProject.jpg
MakeAProject.jpg (323.73 KiB) Viewed 15635 times
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Wed Dec 23, 2009 5:58 pm

A user question on set up



It is pleasure to read your well-written book ?Monte Carlo Frameworks?. Here I have a question on files in #include. When all the CD files are copied to, say, C:\C++MonteCarloframework, how should I change settings in Visual studio 2008 in order to includes these files properly, for example #include "UtilitiesDJD/Geometry/Tensor.cpp".



The second question is, supposed that the path of the included files has been set, do I have to change your code to



<UtilitiesDJD/Geometry/Tensor.cpp>, or leave it as it is.



//

Answer (DJD)

Define in VS project Additional include directories to



C:\C++MonteCarloframework



under it you should then have a directory such as



C:\C++MonteCarloframework\UtilitiesDJD



regarding "" and <> just keep "x.hpp" is fine
User avatar
Cuchulainn
 
Posts: 677
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands


Return to Monte Carlo Frameworks (Duffy/Kienitz)

Who is online

Users browsing this forum: No registered users and 1 guest

cron