Posts

Showing posts with the label uodotnet

Connecting to UniObjects via .NET using UODOTNET

Image
This tutorial assumes you've installed UniDK and have access to the  UODOTNET.dll. The dll should be available from C:\IBM\UniDK\uonet\bin. This tutorial will use Visual Studio to connect to a UniVerse database. Start by opening Visual Studio and creating a new Windows Forms Appicaltion. Next you can choose to add a button to connect and one to disconnect. I'm also adding a Label in order to tell us whether the connection is active or deactivated. Now go and view your Form1 code (F7). Next add the UODOTNET.dll into your References. Right-click References > Add Reference > Browse... > C:\IBM\UniDK\uonet\bin > Select UODOTNET.dll > Click OK. Your References should now include the UODOTNET.dll Next picture shows you the a sample of how to connect. You'll need 5 parameters to send the UniObjects class OpenSession() method. You can also specify a port if needed. Server / Hostname - The name or network address of the instance of U2 Database to whi...