Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Passing Arguments

Passing Arguments

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luke_ratliff
    wrote on last edited by
    #1

    I have been trying to create a CFormView (via Visual C++ 6 AppWizard) that will receive 6 parameter by way of the command line. I want to display each parameter in its own edit box. I have tried several different method of accessing the command line but most give some type of compile error (undefined, etc.). Does anyone have an example and explanation as to how to do this? Luke Ratliff

    C 1 Reply Last reply
    0
    • L luke_ratliff

      I have been trying to create a CFormView (via Visual C++ 6 AppWizard) that will receive 6 parameter by way of the command line. I want to display each parameter in its own edit box. I have tried several different method of accessing the command line but most give some type of compile error (undefined, etc.). Does anyone have an example and explanation as to how to do this? Luke Ratliff

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      there are dozens of ways to do this. if you just want the command line parameters, you can use the __argv and __argc variables in you CWinApp::InitInstance the same way you use the argv and argc variables in a standard C program. there are a number of command line utilities on this site, too. (i know, i wrote one of them) -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups