• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2026 Replies
  • 331 Replies
    1928 Replies

Make this .DLL file in VB.NET

Locked
User avatar
Scottie1972
Codenstuff Elite
Posts: 953

Make this .DLL file in VB.NET

Tue Sep 07, 2010 1:05 am

Can anyone make this a stand alone .dll file?

Code: Select all

    'Connection String
    Public connStr As String = "Database=DB_NAME;" & _
                    "Data Source=DB_HOST;" & _
                    "User Id=DB_USERr;" & _
                    "Password=DB_PASSWORD;" & _
                    "Port=DB_PORT;" & _
                    "Connection Timeout=20"
ie: DB.Conn.dll
Image

User avatar
mandai
Coding God
Posts: 2585

Re: Make this .DLL file in VB.NET

Tue Sep 07, 2010 12:41 pm

A dll file to store a connection string?

User avatar
Scottie1972
Codenstuff Elite
Posts: 953

Re: Make this .DLL file in VB.NET

Tue Sep 07, 2010 2:00 pm

Yes.
This wat if I change MySQL host or Login Information, All my app has todo is download the new DB.Conn.dll then it can connect to the proper database server.

I have a working .dll (Thanks Cody) but I am always on the look out for new was of doing things.
Image

User avatar
Scottie1972
Codenstuff Elite
Posts: 953

Re: Make this .DLL file in VB.NET

Sat Sep 11, 2010 3:38 pm

I have sorted this out.
Thanks to some very helpful members of codenstuff.com
Image

Locked

Return to “Dynamic Link Libraries (DLLs)”