Results 1 to 3 of 3

Thread: Reference and DLL

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Question Reference and DLL

    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?

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    This is a VB.Net console application:
    VB Code:
    1. Module Module1
    2.  
    3.     Sub Main(ByVal Arguments() As String)
    4.  
    5.         Dim MyJetEngine As New JRO.JetEngine
    6.  
    7.         If Arguments.Length() > 1 Then
    8.             Try
    9.                 'Type=4 compacts an Access 97 Database
    10.                 MyJetEngine.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;" _
    11.                 & "Data Source=" & Arguments(0), _
    12.                 "Provider=Microsoft.Jet.OLEDB.4.0;" _
    13.                 & "Data Source=" & Arguments(1) _
    14.                 & "Jet OLEDB:Engine Type=4")
    15.             Catch ex As Exception
    16.                 Console.WriteLine(ex.Message)
    17.             End Try
    18.         Else
    19.             Console.WriteLine("Usage: dbutil source destination")
    20.         End If
    21.  
    22.     End Sub
    23.  
    24. End Module
    The project creates Interop.JRO.dll inside the bin folder with the exe.

    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.

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