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