Ariane Soft PPL2 Pocket Programming DataMite

Go Back   ArianeSoft Forums > PPL version 2 > Support

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-14-2009, 09:18 PM
Nicknack's Avatar
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default include code from compiled ppc files

is this possible without the use of #include ? I know there a functions like run(),eval()..., but these only execute the extern code not adding the extern functions to current code for further use.
this would be useful to add additional plugins to an existing program, also plugins which are dynamic generated by users with an extra prog for that.
any ideas to accomplish this?
__________________
Software bugs are impossible to detect by anybody except the end user.
A Computer program is doing what you write, not what you want.
Reply With Quote
  #2  
Old 10-15-2009, 05:15 AM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default Re: include code from compiled ppc files

Just a quick note to let you know that I will be looking at this email and the others you've left tomorrow or Friday and give you answers.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #3  
Old 10-15-2009, 08:55 AM
Nicknack's Avatar
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

ok I can wait, only the solution for getobjproc has a bigger importance for my current project.

just one more little question to fill up this post: works LAddr in combination with spritedata?
__________________
Software bugs are impossible to detect by anybody except the end user.
A Computer program is doing what you write, not what you want.

Last edited by Nicknack; 10-15-2009 at 09:06 AM.
Reply With Quote
  #4  
Old 10-15-2009, 07:39 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

A trick that might work:

Calling program:
Code:
a$ = Eval(AppPath$ + "plugin.ppc", -1);
linkapp(a$);  // This is a new function just added in. unlinkapp() is also included.
test;  // proc test is now available to current app. Classes are also available.
unlinkapp(a$);  // unlink app procedures and classes.
killapp(a$); // kill plugin app from memory
Plugin.ppl:
Code:
forcelink proc test
end;

func winmain
  return(true);  // Make sure plugin app does not get freed from memory.
end;


LAddr():

Code:
l$ = Add(10, 20, 30, 40);
static(l$);  // Makes the list stay in memory and not get deleted.
SetSpriteData(s$, laddr(l$));
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #5  
Old 10-16-2009, 02:38 PM
Nicknack's Avatar
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

oh that sounds good, thanks again for all your answers!
__________________
Software bugs are impossible to detect by anybody except the end user.
A Computer program is doing what you write, not what you want.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd