From: pv AT cs DOT montana DOT edu (Paul Peavyhouse) Newsgroups: comp.os.msdos.djgpp Subject: Re: Loading code at runtime Date: Wed, 09 Apr 1997 01:09:01 GMT Organization: Montana State University Message-ID: <5ifise$okb@netra.montana.edu> References: <5hufkb$pav AT news DOT asu DOT edu> NNTP-Posting-Host: esus.cs.montana.edu Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <5hufkb$pav AT news DOT asu DOT edu>, zilym AT imap1 DOT asu DOT edu wrote: > Is there a way to load a file from disk at runtime that would >contain compiled code and then execute routines from within it? That's called a DLL. Implementation would depend on what you were trying to do. Another option may be to have an object/class to store "self" to disk. An idea that I am contemplating how to implement works on this theory. It's an AI engine that is _my_ (I use that phrase loosely) idea of how "common sense" should be represented in an artificially "sentient" computer. The program loads its base class "Thing" and everything is derived from that "Thing" as either a tangible Thing or an intangible Thing. The idea is to create a Knowledge Base similar to the CYC project. Back from my tangent, the point is that everything in the code is object oriented (I'm actually writing it in Java) and saves itself to disk as each entry is "learned". When the program exits it stores a hard copy of its brain to disk, and thus when started back up it will remember everything it has learned by loading its brain from disk. Ah, I'm rambling, I'll shutup now. If anyone is interested though please email me; I could use the help. PV ______________________________________________________________________________ Paul Peavyhouse http://www.cs.montana.edu/~pv email: pv AT cs DOT montana DOT edu ______________________________________________________________________________ _Your_consciousness_ is the only censorship. -- Apollo 440