Results 1 to 3 of 3

Thread: Command Line Compile options

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Question Command Line Compile options

    I've been testing out compiling via the command line and it seems to be failing me all the time.

    Well, it kinda works..OBJ files get created but at the end, the Link object seems to be failing.
    It shows a Device I/O error?


    Compile.bat
    Code:
    "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE" /make "C:\Users\VB\Desktop\XProj\XProj.vbp" isEXE=-1:isDebug=0
    Anything wrong with this?
    Last edited by some1uk03; May 3rd, 2018 at 06:16 AM.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,167

    Re: Command Line Compile options

    Quote Originally Posted by some1uk03 View Post
    Anything wrong with this?
    It's missing /d option as in /d const=value[:more_const...]

    Try "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE" /? for a quick cheat-sheet of (some of) the options available.

    cheers,
    </wqw>

  3. #3
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,909

    Re: Command Line Compile options

    Hi some1uk03,

    I don't use all of the command line options available, but a BAT (batch) file with a command line is the only way I've compiled my primary application for years. There are several other "notes" in the batch file, but here's the main line (edited to make generic) that I use to direct VB6 to compile and link.

    Code:
    "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6" /MAKE "C:\Users\Elroy\Desktop\SomeFolder\MyProgram.vbp" /outdir "C:\Users\Elroy\Desktop\SomeFolder"
    Maybe that'll help.

    Elroy

    EDIT1: This isn't really true anymore, but I started this (command line compile) practice back when I was developing on laptops that may not have a screen as large as some of my forms. What I found is, if I compile from the IDE, all of the forms in the project get re-adjusted to a maximum size of the computer's screen. However, if I compiled from the command line, it didn't tamper with my form sizes.

    Also, as a further note about developing on a computer with a screen smaller than your forms, so long as you don't open the forms in the IDE, you're fine. However, if you open these forms, they'll be resized to the size of the computer's screen, and there's not much you can do about it to put them back to the correct (larger) size. None of my forms are larger than 1920x1080, and it's rare these days that I'm sitting at a computer with a screen smaller than that, but that wasn't always the case.
    Last edited by Elroy; May 3rd, 2018 at 10:08 AM.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width