command line arguments
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: command line arguments

  1. #1
    Join Date
    Oct 2013
    Posts
    8

    command line arguments

    how does the command line interpreter pass parameters to int main?
    Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,301

    Re: command line arguments

    Quote Originally Posted by icealys View Post
    how does the command line interpreter pass parameters to int main?
    I guess it uses something similar to what CommandLineToArgvW does.

    Quote Originally Posted by icealys View Post
    Does the kernel use a callback function to get int main's apinumber in the table from the process environment block in order to pass the parameters to int main by calling it?
    Why do you need to know how it is implemented?
    What are you trying to achieve or/and develop?
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2013
    Posts
    8

    Re: command line arguments

    I am a beginner to understanding how programs work and I was curious .
    Thx for the reply

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,201

    Re: command line arguments

    Quote Originally Posted by icealys View Post
    I am a beginner to understanding how programs work and I was curious .
    Thx for the reply
    Start by reading rather than asking questions. That way you can cover a wide range of technical areas in a short time. Asking questions in a forum is the slow way.

    Here's a good place to start:
    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    For more, search bing or google for "processes and threads explained".

    Read about as much as you can and try the code samples in what you read.

    If you get stuck, post questions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center