PureBytes Links
Trading Reference Links
|
Hi there.
Anybody having an example of the Object Model being used in C# from
Visual Studio? I can't get the following to work (after reference to
broker.dll made from broker.tlb using imptlb.exe)...
The following c# code:
----------------------
using Broker
Broker.Application ab = new Broker.Application();
string currentPath = ab.DatabasePath;
----------------------
throws the following exeption:
System.InvalidCastException was unhandled
Message="Unable to cast COM object of
type 'Broker.ApplicationClass' to interface
type 'Broker.IApplication'. This operation failed because the
QueryInterface call on the COM component for the interface with
IID '{2DCDD57B-9CC9-11D3-BF72-00C0DFE30718}' failed due to the
following error: No such interface supported (Exception from
HRESULT: 0x80004002 (E_NOINTERFACE))."
What am I doing wrong? Also, would like to use late binding - but
think using broker.tlb means early binding - or?
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|