API Support Forum
OEC API > API Support > How to use the API in a non-MFC environment
Author Topic: How to use the API in a non-MFC environment
(4 messages, Page 1 of 1)
Moderators: VPfau
AAnthony
Posts: 3
Joined: Nov 18, 2009


Posted: Nov 18, 2009 @ 02:32 PM             Msg. 1 of 4
I am using another library to analyze market data and that library is not compatible with MFC, is there a way to access the API without using MFC? The example included with the API only has an MFC example, this is for c/c++.

Anthony Bachler
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Nov 18, 2009 @ 02:47 PM             Msg. 2 of 4
C++ COM Sample uses MFC for user interface only. #import directive doesn't requre MFC. So, you can use it in your application. You will need to use either ATL and prepared COECAPIEvents class from this sample, either to implement event handling by yourself with Microsoft guidelines.
AAnthony
Posts: 3
Joined: Nov 18, 2009


Posted: Nov 19, 2009 @ 03:24 AM             Msg. 3 of 4
Hmmm, so are there any samples that will compile without access to MFC at all?

Anthony Bachler
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Nov 19, 2009 @ 08:26 AM             Msg. 4 of 4
No, we had no goal to avoid using MFC for UI.