thefool wrote:But i can not tell if you need at least one "proceduredll". Otherwise the dll could not be used for anything.
Ok, today is the day that people get to learn how I acquired the nickname
Noah Phense. It stands for No Offense. So, if you cannot take advice, or
personal criticism, then please, stop reading now.
No, you cannot have a DLL or a LIB without a ProcedureDLL. (fact)
Here's my functional code to back up the things *I'm* talking about.
Just create a regular exe with this, and then execute it. Don’t execute
stuff like this from inside the IDE, unless your looking for problems, then
by all means, go ahead. Format your harddrive while your at it.
Code: Select all
Procedure Create1000(filename.s)
If CreateFile(0,filename)
For a = 1 To 1000
WriteStringN("Procedure Test" + Str(a) + "()")
WriteStringN(" b = 0")
WriteStringN("EndProcedure")
Next a
CloseFile(0)
ret = 1
Else
Goto getout
EndIf
EndProcedure
Procedure AppendFile(FileName.s, String.s)
If OpenFile(99, FileName)
FileSeek(Lof())
WriteStringN(String)
CloseFile(99)
EndIf
EndProcedure
Create1000("test.pb")
AppendFile("test.pb", "ProcedureDLL.l tTest(a.l, b.l)")
AppendFile("test.pb", " c.l = a + b")
AppendFile("test.pb", " ProcedureReturn c")
AppendFile("test.pb", "EndProcedure")
getout:
End
If you used your “cut and pasteâ€