Can you create an MyProgram.exe without windows interface?

Just starting out? Need help? Post your questions and find answers here.
mqsymth
User
User
Posts: 30
Joined: Fri Aug 28, 2015 8:13 pm

Can you create an MyProgram.exe without windows interface?

Post 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.
Last edited by mqsymth on Sat Aug 04, 2018 9:54 pm, edited 1 time in total.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

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

Post by Josh »

Have a look to Process library, specifically ProgramParameter()
sorry for my bad english
dige
Addict
Addict
Posts: 1409
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

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

Post by dige »

I guess you look for excecutable format: console?
"Daddy, I'll run faster, then it is not so far..."
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

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

Post 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
Post Reply