Go Back   DailyFX Forum

View Single Post
  #12 (permalink)  
Old 06-09-2009, 05:31 PM
Nikolay.Gekht Nikolay.Gekht is offline
Member
 
Join Date: Oct 2008
Posts: 474
Nikolay.Gekht is on a distinguished road
Just to note:
The code of the instantiation above will work but has one small lack. When "core" is declared as an "Object" and then created via CreateObject("...") - the compiler-time type checking and intellisense technology in which could prevent a lot of programming problems will not work in Microsoft Visual Studio IDE.

For example, if you write
"core.MakeTradeDesk" instead of "core.CreateTradeDesk" - the code above will fail at the execution time, but when you will use project references and declaration in the form: "Dim core as FXCore.CoreAut", the error will be found during the compilation time. This can save your time during the application writing and debugging.

...OLE Automation API in the Windows provides too much variants to do the same things but sometimes helps developers to have "...two ways to tie shoes. One way is only good for lying down. The other way is good for walking." ((c) R.A. Heinlein, Stranger in a Strange Land).

Last edited by Nikolay.Gekht; 06-09-2009 at 05:35 PM..
Reply With Quote
 


Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.

All times are GMT -5. The time now is 08:30 PM.
Copyright ©2009 Daily FX. All Rights Reserved.