L
Lou
I created a comclass from VB .NET 2005 but it fails when I try to load it
(.dll)
into VB6.
I followed these instructions
To create a COM object using the COM class template
1.. Open a new Windows Application project from the File menu by clicking
New Project.
2.. In the New Project dialog box under the Project Types field, check
that Windows is selected. Select Class Library from the Templates list, and
then click OK. The new project is displayed.
3.. Select Add New Item from the Project menu. The Add New Item dialog box
is displayed.
4.. Select COM Class from the Templates list, and then click Add. Visual
Basic adds a new class and configures the new project for COM interop.
5.. Add code such as properties, methods, and events to the COM class.
6.. Select Build ClassLibrary1 from the Build menu. Visual Basic builds
the assembly and registers the COM object with the operating system.
(.dll)
into VB6.
I followed these instructions
To create a COM object using the COM class template
1.. Open a new Windows Application project from the File menu by clicking
New Project.
2.. In the New Project dialog box under the Project Types field, check
that Windows is selected. Select Class Library from the Templates list, and
then click OK. The new project is displayed.
3.. Select Add New Item from the Project menu. The Add New Item dialog box
is displayed.
4.. Select COM Class from the Templates list, and then click Add. Visual
Basic adds a new class and configures the new project for COM interop.
5.. Add code such as properties, methods, and events to the COM class.
6.. Select Build ClassLibrary1 from the Build menu. Visual Basic builds
the assembly and registers the COM object with the operating system.