Oxygen Basic
Programming => Problems & Solutions => Topic started by: Frankolinox on December 27, 2013, 04:58:08 AM
-
lalala :)
.
-
Hi Frank,
Do you mean something like this ?
function simpletest(string filename ) as string
#file "peter.exe" filename
return filename
end function
string a
simpletest ("test.txt")
print "test ends"
-
#file "t.exe"
#file "t.dll"
These are directives to produce a PE binary, and normally go at the top of the program. A string literal or string constant can be used but not a string variable
-
Hi Frank,
The RTLs were not designed to work as a DLL. They contain bootstrap code, required before any program can be executed.
Powrbasic's future is not secure at present, so I would advise caution before using it for any major new project.
-
#file (like #include) is an Oxygen directive to create a PE file, nothing to do with FreeBasic.
It has to be resolved at compile-time, variables only exist at run-time.