--- In [email protected], Benjamin Scott
<[EMAIL PROTECTED]> wrote:
>
> If you want a user to be able
> to start a program, You need
> int Main(), or Winmain.  Sorry.

Sorry to keep going on about this, but technically you don't if you
write a Linux device driver with your program in (or called from) the
driver's initialisation function and load it (eg. using insmod).

No, it's not ideal, especially if you are running Windows :-) or your
program does things that easily implemented in a (kernel) device
driver like most forms of user interaction, and you need super-user
privileges to use insmod. But it is still an answer to the OP's
question, and the OP didn't place any conditions on the answer.

I'm sure there are other ways as mentioned in previous replies, but
this is the only one I know anything about.

BTW presumably you mean main(), not Main().

Reply via email to