Login  Register

managed c++

classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

managed c++

Vitthal  Kulkarni
3 posts

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



Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: managed c++

Toyin Akin
247 posts
 
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.
----- Original Message -----
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