logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
harryyeh  
#1 Posted : Wednesday, July 4, 2007 11:15:49 PM(UTC)
harryyeh

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 7/5/2007(UTC)
Posts: 1

Is it possible to call Metastock functions from within a powerbasic DLL? Also what is the recommended version of Powerbasic to use with the MDK to create MSX DLL's and functions?
wabbit  
#2 Posted : Thursday, July 5, 2007 12:10:54 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Harryyeh,

The short answer is, you cannot.

The longer answer involves reading the MDK users manual, particularly the section, "Things you cannot do with an MSX DLL" where it includes, "Access the standard MetaStock built-in functions".

To have the same functionality, either rebuild the function in your DLL, or "send" the function to the external function as an argument.

You can use any version of PowerBasic you like, just so long as the compiler can create the required Win32.dll



Hope this helps.

wabbit [:D]

P.S. This is not a limitation of PowerBasic or any other programming language, it a limitation of the realtionship between external functions and internal functions of MetaStock.

zentrader  
#3 Posted : Saturday, January 8, 2011 6:58:14 AM(UTC)
zentrader

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2005(UTC)
Posts: 24

@all, to clarify the fact: Using the MDK support, you are able to build so-called "external" Metastock functions (which can be used in Metastock to extend the limited functionality of the Metastock script language)) with some programming languages, e.g. using PowerBasic. PowerBasic (www.powerbasic.com) is a powerful language (mighty and fast as C/C++, but imho easier to learn and to maintain your written programs!). The current version is v9.05 - the new version v10 is already announced (january/february 2011) - but v9.05 has far enough power to build external Metastock DLLs... bye, zentrader
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.