How to add library in project

zoran035

Member
Licensed User
Longtime User
I am new in b4a and want to connect to MS SQL Server.
I wrote
dowbload : System.Data.SqlClient.Dll file and the MSSQL.Dll.
"..., now the application run after copy the System.Data.SqlClient.Dll file
and the MSSQL.Dll.!!!"
Sub App_Start
Form1.Show
cnDatos.New1
End Sub

Sub Button1_Click
If cnDatos.Open("Persist Security Info=False;Integrated Security=False;Server=XPS,1433; initial catalog=windip; user id=sa; password=12345;") Then
Msgbox("Conexion exitosa!!!","My First Program",cMsgboxYesNo,cMsgboxHand)
Else
Msgbox("Conexion ERRONEA!!!","My First Program",cMsgboxYesNo,cMsgboxHand)
End If

End Sub


My question is where to copy LIB, and how to attached in bv4
Pleas help me
 

BarrySumpter

Active Member
Licensed User
Longtime User
Answered - How to add a library to project

Not trying to hijack this thread,
but every time I search for this subject I get this thread.

So for those searching for how to add a library to your project:

In general, libraries are located on:

c:\Program Files\Anywhere Software\Basic4android\Libraries

Usually consisting of an xxx.jar and a matching xxx.xml

To include them in your project:
In the b4a IDE in the far right window pane at the bottom there is a Libs tab.
Click on the Libs tab and tick the Referenced Library you want to include.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
How to load a library is also explained in the Beginner's Guide.
chapter 13.7 Libraries
chapter 13.7.2 Additional librairies folder
chapter 18.3 How loading / updating a library

The chapter numbers refer to Edition 2.0 of the Beginner's Guide.

Best regards.
 
Upvote 0

kikloo

Member
Licensed User
Longtime User
Not trying to hijack this thread,
but every time I search for this subject I get this thread.

So for those searching for how to add a library to your project:

In general, libraries are located on:

c:\Program Files\Anywhere Software\Basic4android\Libraries

Usually consisting of an xxx.jar and a matching xxx.xml

To include them in your project:
In the b4a IDE in the far right window pane at the bottom there is a Libs tab.
Click on the Libs tab and tick the Referenced Library you want to include.

Thanks man. Was looking how to do this! No tutorial told this!
 
Upvote 0
Top