Compile error while saving VB6 project to disk from IDE

Posted on 2007-08-02
Last Modified: 2012-06-27
I recently took a number of active X DLL projects for a VB6 project group and merged their various classes and forms into the main exe project that was using them.

Now Im running with full compile to find all the places where there is an error that was referencing the external DLL and changing the code to reference the internal class instead.

It was all going fine until I tried to save the project. I got a compile error, in fact I got the same error as I got when I clicked run with full compile.

I thought that was strange so I fixed the error and clicked save again. The IDE opened a file Ive not even had a chance to work with yet and said I had a compile error User defined type not defined

I know that type is not defined, I need to refractor it to its new name. So I fixed that one as well and clicked save, and got another user defined type not defined error.

So I tried to close the app and it wont close.

I ended the process to close the app.

Now ever time I open the project and start trying to fix all the references and then save I get the same problem!

Is the IDE telling me I cant save the project until every error is fixed? (there are hundreds)

Any advice?
Question by:xersoft
    LVL 13

    Accepted Solution


    that is a strange case for sure.....

    have you updated to the last version of the service pack?
    try to turn off (temp) all plugins that could be modifying the behavior of vb
    LVL 5

    Author Comment

    The problem went away after removing the plugin MZ Tools 3.0. After fixing all the errors I re-enabled the plugin with out issue.

    Very very odd....

    Thanks for the help.
    LVL 13

    Expert Comment


    great this is solved so easily!

    and thanks for the grade!
    LVL 13

    Expert Comment


    MZ tools is a great plugin,
    you should report this issue to the creators.
    I think they appreciate it

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    This article will show, step by step, how to integrate R code into a R Sweave document
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now