Page 1 of 1

Can you create an MyProgram.exe without windows interface?

Posted: Sat Aug 04, 2018 9:37 pm
by mqsymth
I'd like to create a myprogram.exe without a windows interface that can be called by another exe program .

as an example: run = "c:\myprogram.exe variable1, variable2 , variable3"

or a main function as in C++ Main()

I've searched but cannot find any examples that don't have a Procedure Win() with a
If OpenWindow(#WinMain, 0, 0,InnerWidth, InnerHeight, "myprogram", iFlags).

Thanks for any Purebasic references that can show me how to do this.

Re: Can you create an MyProgram.exe without windows interfac

Posted: Sat Aug 04, 2018 9:46 pm
by Josh
Have a look to Process library, specifically ProgramParameter()

Re: Can you create an MyProgram.exe without windows interfac

Posted: Mon Aug 06, 2018 7:21 am
by dige
I guess you look for excecutable format: console?

Re: Can you create an MyProgram.exe without windows interfac

Posted: Mon Aug 06, 2018 7:35 am
by Marc56us
mqsymth wrote:I'd like to create a myprogram.exe without a windows interface that can be called by another exe program .
as an example: run = "c:\myprogram.exe variable1, variable2 , variable3"
or a main function as in C++ Main()
I've searched but cannot find any examples that don't have a Procedure Win() with a
If OpenWindow(#WinMain, 0, 0,InnerWidth, InnerHeight, "myprogram", iFlags).
You didn't look very far or very long :wink:

Console program: https://www.purebasic.com/documentation ... index.html
Examples at bottom of help page

Programs parameters
https://www.purebasic.com/documentation ... meter.html