Dark Bit Factory & Gravity

PROGRAMMING => Purebasic => Topic started by: inc. on February 28, 2017

Title: Looking for example SC , build exe from a tool
Post 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
Title: Re: Looking for example SC , build exe from a tool
Post by: Rbz on February 28, 2017
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  :).
Title: Re: Looking for example SC , build exe from a tool
Post by: inc. on February 28, 2017
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?

Title: Re: Looking for example SC , build exe from a tool
Post by: Knurz on March 07, 2017
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.
Title: Re: Looking for example SC , build exe from a tool
Post by: inc. on March 07, 2017
thank you. 32bit is more than enough. i hope your link can guide :)

reply later