.netc++databaseuniversemultivalue-database

A way for c++ code to access records from the UniVerse database?


I know there is some kind of connection between .NET and UniVerse, by using UniObjects. But I believe that obligates use of .NET, and C# or VB.NET.

Also, I know by reading UniVerse manual that UniVerse can call C/C++ code from within UniVerse, but what I want is the other way around.

  1. Can UniObjects be used for c++ project in .NET?
  2. Can plain c++ (by plain i mean without using .NET platform) retrieve and store the data from and to UniVerse database?

Solution

  • Yes, although you have to hunt for it.

    On the U2 DevZone site Rocket Software has just launched, there is an article about writing a PDO Driver for PHP access. This driver is written in C (iirc) and has all the source code supplied. It uses the U2 InterCall to interact with the U2 system (UniVerse & UniData). You should be able to use this as a way of making calls to the UniRPC process (this is what UniObjects calls).

    You have to sign up to the site to access the article & source code, but sign up is free.