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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC Commandline....

MFC Commandline....

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestionc++
4 Posts 3 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.
  • P Offline
    P Offline
    Phil Benson
    wrote on last edited by
    #1

    Silly question, had a lok in the MSDN but could not find any thing that satisfied my curiosity, how long can a command line be? I´m asking because I am passing a path to a file,plus an SQL query to an external process (using create process), so can I expect any problems regarding a very long SQL query... Thanks in advance Phil bum... and I thought I´d got rid of all the bugs :(

    Who the F*** is general failure and why is he reading my hard drive?

    A M 2 Replies Last reply
    0
    • P Phil Benson

      Silly question, had a lok in the MSDN but could not find any thing that satisfied my curiosity, how long can a command line be? I´m asking because I am passing a path to a file,plus an SQL query to an external process (using create process), so can I expect any problems regarding a very long SQL query... Thanks in advance Phil bum... and I thought I´d got rid of all the bugs :(

      A Offline
      A Offline
      Abhi Lahare
      wrote on last edited by
      #2

      from stdlib.h on VS.NET /* * Sizes for buffers used by the _makepath() and _splitpath() functions. * note that the sizes include space for 0-terminator */ #define _MAX_PATH 260 /* max. length of full pathname */ #define _MAX_DRIVE 3 /* max. length of drive component */ #define _MAX_DIR 256 /* max. length of path component */ #define _MAX_FNAME 256 /* max. length of file name component */ #define _MAX_EXT 256 /* max. length of extension component */ Hope these help Regards Abhishake Lahare

      1 Reply Last reply
      0
      • P Phil Benson

        Silly question, had a lok in the MSDN but could not find any thing that satisfied my curiosity, how long can a command line be? I´m asking because I am passing a path to a file,plus an SQL query to an external process (using create process), so can I expect any problems regarding a very long SQL query... Thanks in advance Phil bum... and I thought I´d got rid of all the bugs :(

        M Offline
        M Offline
        Monty2
        wrote on last edited by
        #3

        The maximum command line length for the CreateProcess function is 32767 characters More Info here (Old New thing blog)[^]


        **You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"

        Only kings, presidents, editors, and people with tapeworms have the right to use the editorial "we."**

        P 1 Reply Last reply
        0
        • M Monty2

          The maximum command line length for the CreateProcess function is 32767 characters More Info here (Old New thing blog)[^]


          **You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"

          Only kings, presidents, editors, and people with tapeworms have the right to use the editorial "we."**

          P Offline
          P Offline
          Phil Benson
          wrote on last edited by
          #4

          Tanks monty, with that mayn characters, I think I´m on the safe side :-D bum... and I thought I´d got rid of all the bugs :(

          Who the F*** is general failure and why is he reading my hard drive?

          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