Rank: Member
Groups: Registered, Registered Users Joined: 5/22/2012(UTC) Posts: 19
|
Hi,
i'm new in metastock , and i like to program a dll with power basic
this is the code,it's for testing link between MS and powerBasic;
#COMPILE DLL
#DIM ALL
#INCLUDE ONCE "Win32API.inc"
DECLARE FUNCTION maxjour (BYVAL haut AS SINGLE)EXPORT AS SINGLE
GLOBAL o AS INTEGER
GLOBAL maxj AS SINGLE
GLOBAL ghInstance AS DWORD
FUNCTION maxjour (BYVAL haut AS SINGLE)EXPORT AS SINGLE
maxjour=haut*2/3
END FUNCTION
I make the dll in C:\Program Files (x86)\Equis\MetaStock\External Function Dlls
after that i restart Metastock with "executer en tant que administrator" but i can't found either the name of dll in function category or the function in paste function.
Have you any suggestions or solutions .
and Thank you by advance.
|
|
|
|
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)
|
The headers required for MS DLLs are contained in the MDK, which comes with a manual and PB sample codes.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 5/22/2012(UTC) Posts: 19
|
Thank you for your replay wabbit,
where i can found the MDK ??
Thanks.
|
|
|
|
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)
|
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 5/22/2012(UTC) Posts: 19
|
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
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.