Re: managed c++

Posted by Toyin Akin on
URL: http://quantlib.414.s1.nabble.com/managed-c-tp2937p2938.html

 
Hi,
 
I believe .NET has a Calendar class within the system Namespace.
It looks like you have Namespace problems.
 
Either place your own namespace in front of your own class or rename your own Calendar class.
 
Toyin Akin.
www.CapeTools.net
----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Friday, May 14, 2004 1:49 PM
Subject: [Quantlib-users] managed c++

hi,
 
 
I am trying to convert the calendar class of Quatlib to managed c++.
I have added the calendar class and other support classes as generic c++ class codes.

I am able to instantiate the class properly. When i access the class methods such as addDays, addHours, it exposes the method parameters properly. At compile time i get error that method is not part of Calendar class

error C2039

i used following code for class instantiation

Calendars::London * LN=new Calendars::London();
LN->AddDays(System::DateTime::Today,1);

i would appreciate if anyone can guide me on the problem.

regards,

Vitthal