Results 1 to 2 of 2

Thread: Compile Error

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Milton, Ontario, Canada
    Posts
    1

    Post

    I developed an app in VB4. Recently I upgraded to VB6. The app was onverted to VB6, but when I try a full compile I get an error which says "Function or interface marked or restricted, or function uses an Automation type not supported by Visual Basic"

    This occurs when at one of my classes at a property of the class. This property exposes a form for the class. ie. the property statement is Property Set ClassForm(aForm as frmSite) etc., where frmSite is the form for this specific class.

    This is a standard procedure I use in many classes, but the compile error seems to happen only at the one class (unless of course this is the first of the many and the compile has not successfully compiled any of these type of classes).

    Anyway, while the app won't compile, I can still run it without a full compile.

    Anyone have any ideas? Any help would be greatly appreciated.

    Steve


  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461

    Post

    When you opened your VB4 app in VB6 for the very first time did it come up with any errors?

    There are numerous problems that can occur when migrating from 4 to 6 because the architectures are so different and a large number of controls have been updated.

    .log files should have been created for each of the forms that had problems in it and I would have a look in your source directory for these...

    Some of the main problems occur with new controls that do not interact with older versions of controls but they are not automatically updated when you import into VB6.

    I would have a look for these and see if any interesting messages come out of it

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