Dark Bit Factory & Gravity
PROGRAMMING => Purebasic => Topic started by: inc. on February 28, 2017
-
Hi,
i'm stuck on following point.
i wanna create from my GLSL Shader tool or maybe something other tool a exe file.
i have programmed a tool in PureBasic and now i wanna include in my tool a option that allow: create final
create a final win 32 exe from the stuff that was created with the tool.
can some one guid me?
thanks
-
Your tool export to a .pb file right?
How about using purebasic compiler command line. (http://www.purebasic.com/documentation/reference/cli_compiler.html)
In your tool use RunProgram (https://www.purebasic.com/documentation/process/runprogram.html) to compile the new purebasic .exe file.
Of course, the user will need to have a copy of purebasic to compile it :).
-
thanks for the suggestion but this is not what i want to do.
if some ppl don't have the PB Compiler, they are then not be able to build a Final, a exe from its work in my tool.
Any other solution?
-
Maybe http://delphidabbler.com/articles?article=7&part=1 (http://delphidabbler.com/articles?article=7&part=1) helps you to achieve what you want to do.
It's written in and for delphi but the approach he uses should be valid for PB too.
I don't know if you can produce 64bit PE with dynamic added data, but it should work with 32bit PE.
-
thank you. 32bit is more than enough. i hope your link can guide :)
reply later