Results 1 to 3 of 3

Thread: Command Line vs IDE compile - something weird...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2005
    Posts
    571

    Command Line vs IDE compile - something weird...

    I've got a big project. The IDE would crash when I compiled so I wrote up a little batch file to compile from the command line and that worked well. Out of memory or something? No idea.

    Later I switched computers and did a full VB6 reinstall and now the program compiles without crashing inside the IDE. But just for fun I tried the command line compile.

    When I compile the project inside the IDE it compiles with no error. When I compile it from the command line I get an error Line 662 User Defined Type Not Defined. Is this a big deal? No idea. But the program is acting up a bit. When I use frmTest.show(1) I get an error. When I use Dim TestForm as new frmTest and TestForm.show(1) it works. So that's weird.

    I just know there's something up. But what?

    I really don't know how the command line compile reads lines. Does it count comments? Does it include blank lines or exclude them? I don't see any way to determine which line the command line is choking on.

    I opened the form with NotePad++ and scrolled down to the 662nd line of the form and it was just Exit Sub.

    Any ideas how I can see if there is really an error of some type and how I can figure out where it is?

    Any help would be much appreciated.

  2. #2
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,356

    Re: Command Line vs IDE compile - something weird...

    Quote Originally Posted by Darkbob View Post
    I opened the form with NotePad++ and scrolled down to the 662nd line...
    Notepad++Line 662 <> VB6IDE-Line662

    Olaf

  3. #3
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    5,401

    Re: Command Line vs IDE compile - something weird...

    Open the form’s codepane in VBIDE and as you scroll down there is a position indicator on the toolbar right saying “Ln 123” — this matches the line which compiler is reporting on compile errors. It does not match line in NPP as it skips form designer data in front and attributes throughout the code.

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