How to include Price History API in .NET?
The article discusses how to include Price History API in .NET 2.0 and 4.0 application.
Details
To include Price History API in your .NET 2.0 application, you should:
1. Place your application program in the same directory where supporting dlls are located (usually the bin folder containing gsexpat.dll, pricehistorymgr.dll, quotesmgr2.dll , etc.). You can do this by either building your executable into the folder with supporting dlls or by copying the required dlls into your target directory. For example, if the folder C:\PriceHistoryAPI\bin contains these libraries, a post-built event command line can look like this:
copy C:\PriceHistoryAPI\bin\*.dll "$(TargetDir)"
2. Add net\dotnet20\pricehistorymgr_net.dll as a reference to your project.
3. Add namespace Candleworks.PriceHistoryMgr to your project:
using Candleworks.PriceHistoryMgr;
To use Price History API in your .NET 4.0 application, you should:
1. Place your application program in the same directory where supporting dlls are located (usually the bin folder containing gsexpat.dll, pricehistorymgr.dll, quotesmgr2.dll , etc.). You can do this by either building your executable into the folder with supporting dlls or by copying the required dlls into your target directory. For example, if the folder C:\PriceHistoryAPI\bin contains these libraries, a post-built event command line can look like this:
copy C:\PriceHistoryAPI\bin\*.dll "$(TargetDir)"
2. Add net\dotnet40\pricehistorymgr_net.dll as a reference to your project.
3. Add namespace Candleworks.PriceHistoryMgr to your project:
using Candleworks.PriceHistoryMgr;
This Article in Other Languages
Language: | English • español |
---|