PureBytes Links
Trading Reference Links
|
Hello,
i have read the description in the AmiBroker help about ActiveX and it sounds very powerful if i could get it to start. Based on the help it also seems to be very easy, but i still can't get it to work. Can someone please tell me the steps to create it with Delphi and/or can someone send me a sample project please? I highly appreciate every help i can get.
Here is the part from the help. In the help is some additional information and snapshots, but i have copied the main steps below. You can find the description in the help through the following search text: Component Object Model support in AFL
Regards Susan
Using external COM/ActiveX objects in AFL In a very similar way we can call functions (methods) in an external COM objects directly from the AFL formula. Here I will show how to write such external ActiveX in Visual Basic but you can use any other language for this (Delphi for example is very good choice for creating ActiveX/COM objects). It is quite easy to create your own ActiveX DLL in Visual Basic, here are the steps required:
- Run Visual Basic
- In the "New project" dialog choose "ActiveX DLL" icon - this will create the "Project1" that looks like in the picture on the right:
- Now click on the (Name) and rename the "Project1" to something more meaningfull, for example "MyAFLObject"
- Then double click on the "Class1" in the project tree item. The code window will get the title of "MyAFLObject - Class1 (Code)" as shown below:
- Now you should choose Run->Start in Visual Basic to compile and run the
component. The code in Visual Basic will wait until external process accesses
the code.
To access the freshly created ActiveX we will use the following AFL formula (enter it in
the Formula Editor and press Apply):
Die neue Generation der Windows Live Services - jetzt downloaden! Hier klicken!
__._,_.___
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|
|