I'm just beginning to use this desktop API, and I'm trying to get it to work with MFC (Microsoft Foundation Classes). I'm also new to all the COM, ActiveX, and automation stuff. So I'm having trouble just getting the ESignal object created and connected successfully.
I've attached a file called DataServer.cpp. This file has a member function called Run, which will eventually download historical data, but I can't seem to get past the initialization phase. I always get the TRACE message "... OLE Exception caught: SCODE = 800401F0". And the SCODE refers to CO_E_NOTINITIALIZED.
for your information I have added the following lines to stdafx.h
// Import the type library file for the eSignal Desktop API
#import "C:\Program Files\eSignal\winsig.tlb" no_namespace
And the class CHooks was automatically generated for me from "winsig.tlb"
If anyone has any experience with MFC and automation, I would appreciate any tips. I suspect that what ever I'm doing wrong must be fairly simple to fix. I simply lack the experience to know what it is.
Thanks,
Bryan
I've attached a file called DataServer.cpp. This file has a member function called Run, which will eventually download historical data, but I can't seem to get past the initialization phase. I always get the TRACE message "... OLE Exception caught: SCODE = 800401F0". And the SCODE refers to CO_E_NOTINITIALIZED.
for your information I have added the following lines to stdafx.h
// Import the type library file for the eSignal Desktop API
#import "C:\Program Files\eSignal\winsig.tlb" no_namespace
And the class CHooks was automatically generated for me from "winsig.tlb"
If anyone has any experience with MFC and automation, I would appreciate any tips. I suspect that what ever I'm doing wrong must be fairly simple to fix. I simply lack the experience to know what it is.
Thanks,
Bryan
Comment