API Support Forum
General > Feedback > starting
Author Topic: starting
(5 messages, Page 1 of 1)
Moderators:
NZaitsev
Posts: 1
Joined: Jul 12, 2007


Posted: Jul 12, 2007 @ 05:37 PM             Msg. 1 of 5
can I get instructions how to get things working?
I figured out that it is something about .NET. I do not have any experience in that (in java, C++, VB I do), so it might be useful to get 'take-off' suggestions.
How can I compile example to make it working for instance?
Edited by NZaitsev on Jul 12, 2007 at 05:37 PM
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jul 13, 2007 @ 10:51 AM             Msg. 2 of 5
you can use MSVS 2005 studio for .NET C# OEC API sample, or download COM API with C++ and Delphi samples.

Then open a project file in the desired IDE and compile it.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Jul 17, 2007 @ 01:27 PM             Msg. 3 of 5
I had no problem using either the .NET/C# or COM/C++ samples. However, I wasn't sure how to integrate the COM API with my own project. I just happened to make it work by importing the libid that was used in the sample project and copying the OECAPIEvents.h header file, however I have a feeling that wasn't the best way to do it. Should there be a way in MSVC 2005 that will generate the appropriate libid line and header file from the COM API DLL?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jul 17, 2007 @ 02:08 PM             Msg. 4 of 5
as far as I know there is no automated way to generate libid line, but you can use #import "oecapicom.tlb" to avoid using LIBID.

The OECAPIEvents.h file is not generated by MSVC - it is provided by OEC for convenience. You can wirte your own implementation if needed.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Jul 17, 2007 @ 02:29 PM             Msg. 5 of 5
Thank you for clearing that up. I think that would have helped me getting started quicker knowing to use #import "oecapicom.tlb" and the OECAPIEvents.h file.