Setting a reference to Microsoft Jet and Replication Objects 2.6 Library
Is there a way to statically link so a separate DLL isn't created in the project?
Printable View
Setting a reference to Microsoft Jet and Replication Objects 2.6 Library
Is there a way to statically link so a separate DLL isn't created in the project?
Give an example, if you mean creating say your own custom controls they can be added to the project and appear in your tool box.
This is a VB.Net console application:
The project creates Interop.JRO.dll inside the bin folder with the exe.VB Code:
Module Module1 Sub Main(ByVal Arguments() As String) Dim MyJetEngine As New JRO.JetEngine If Arguments.Length() > 1 Then Try 'Type=4 compacts an Access 97 Database MyJetEngine.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & Arguments(0), _ "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & Arguments(1) _ & "Jet OLEDB:Engine Type=4") Catch ex As Exception Console.WriteLine(ex.Message) End Try Else Console.WriteLine("Usage: dbutil source destination") End If End Sub End Module
But in VB6, I think the link was static and no DLL would be created. I want VB.Net to statically link and not make the DLL.