|
-
Aug 8th, 2003, 10:53 AM
#1
Thread Starter
Frenzied Member
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?
-
Aug 10th, 2003, 06:57 PM
#2
Hyperactive Member
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.
-
Aug 11th, 2003, 09:04 AM
#3
Thread Starter
Frenzied Member
This is a VB.Net console application:
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|