Board index » delphi » Loading codes during runtime

Loading codes during runtime

Heya, is there a way in BP 7.0 to load and excute program pieces that does not
rely on pre-compiled data ?

i.e.: I want to write a program, and afterwards when I write new features, I
just want to copy the new data into the same directory as the executable, and
make the program /patch/ itself with the new feature. I need something for
Protected mode (DOS), but such codes for Real mode would be helpful too :)

Thanks.

Minoru Toda

 

Re:Loading codes during runtime


Quote
Minoru Toda wrote:
> Heya, is there a way in BP 7.0 to load and excute program pieces that does not
> rely on pre-compiled data ?

You should use DLLs! Check the online help (keywords: library, ..)!

regards
--
Arno Fehm (af...@bigfoot.de)

P.S. To anybody replying to one of my posts (this week): Please send
them to me by mail, too, because else I won't be able to answer them
since I will be gone for one week now and when I'll come back, your
replies will be expired from my news-server! Thank you!

------------------------------------------------------------------------
Member of Grey Dreams Design: visit http://GreyDreams.home.pages.de !!!!
He who can destroy a thing has the real control over it. (Frank Herbert)
------------------------------------------------------------------------

Re:Loading codes during runtime


JRS:  In article <eqa6xAwo#GA....@nih2naad.prod2.compuserve.com> of Thu,
20 May 1999 22:33:43 in news:comp.lang.pascal.borland, Minoru Toda

Quote
<103634....@csi.com> wrote:
>Heya, is there a way in BP 7.0 to load and excute program pieces that does not
>rely on pre-compiled data ?

>i.e.: I want to write a program, and afterwards when I write new features, I
>just want to copy the new data into the same directory as the executable, and
>make the program /patch/ itself with the new feature. I need something for
>Protected mode (DOS), but such codes for Real mode would be helpful too :)

Read about DLLs - dynamic link libraries - in your manual set.

--
 ? John Stockton, Surrey, UK.  j...@merlyn.demon.co.uk   Turnpike v4.00   MIME. ?
  Web <URL: http://www.merlyn.demon.co.uk/> - TP/BP/&c. FAQqish topics & links.
  Timo's TurboPascal <A HREF="ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip">FAQ</A>.
  <A HREF="http://www.merlyn.demon.co.uk/clpb-faq.txt">Mini-FAQ</A> of c.l.p.b.

Other Threads