Managed C++ wrapper problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Managed C++ wrapper problem

Ragnar Ágústsson
Hi all
 
I was wondering if anyone has had a problem writing a thin wrapper in managed C++.
 
I am calling a managed C++ DLL from a .Net program from which I feed in all the market data and trade information.
 
However all the functions always return 0 (no error returned) so I tried creating a very simple static function that is an exact copy/paste from the main function in EquityOption.cpp sample that comes with the source and I still always get zero values returned. Running the pure C++ sample retults in the correct values.
 
Any ideas?
 
Best regards,
Ragnar
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Managed C++ wrapper problem

Ragnar Þ. Ágústsson
Hi all

I was wondering if anyone has had a problem writing a thin wrapper in
managed C++.

I am calling a managed C++ DLL from a .Net program from which I feed
in all the market data and trade information.

However all the functions always return 0 (no error returned) so I
tried creating a very simple static function that is an exact
copy/paste from the main function in EquityOption.cpp sample that
comes with the source and I still always get zero values returned.
Running the pure C++ sample retults in the correct values.

Any ideas?

Best regards,
Ragnar
Authorised by Fjarmalaeftirlitid in Iceland and the Financial Services Authority. Regulated by the Financial Services Authority for the conduct of UK business. Registered in England and Wales number BR008311. Landsbanki Islands hf is incorporated in Iceland with Limited Liability.

Fyrirvari/Disclaimer - http://www.landsbanki.is/disclaimer

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Managed C++ wrapper problem

John Maiden
In reply to this post by Ragnar Ágústsson
I don't know much about managed c++, but I wrote QuantLib code in an unmanaged
c++ dll and was able to send it to a .net form. How are you passing back
information?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users