[Liblas-devel] liblas problems

Martin Vales martinvales00 at gmail.com
Fri Oct 31 18:12:27 EDT 2008


Hi:

I have created a test program using 3 DLLs (mateus, hobu and me):
The app is here:
http://3xfjvg.bay.livefilestore.com/y1pu_QS9lTIfOZVSH_Vx_e-VqQGzOFqJorMDtcJWH89ma-PMMgwIHRhigFGWwC3HDZinwQDhNcLvks/test_liblas_compilations.rar?download

I have and error using the hobu DLL.

the code is this:

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace test_liblas1
{
    public class mateusCAPI
    {
        [DllImport("mateus_liblas.dll")]
        public static extern String LAS_GetVersion();
    }
    public class hobuCAPI
    {
        [DllImport("hobu_liblas.dll")]
        public static extern String LAS_GetVersion();
    }

    public class martinCAPI
    {
        [DllImport("martin_liblas.dll")]
        public static extern String LAS_GetVersion();

    }

    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("choose a API (hobu=1,mateus=2,martin=3)->");
            string read = Console.ReadLine();

            if (read == "1")
            {
                Console.WriteLine("Liblas version= " +
hobuCAPI.LAS_GetVersion());
                Console.WriteLine("hobu compilation!!");
            }
            else if (read == "1")
            {
                Console.WriteLine("Liblas version= " +
mateusCAPI.LAS_GetVersion());
                Console.WriteLine("mateus compilation!!");
            }
            else
            {
                Console.WriteLine("Liblas version= " +
martinCAPI.LAS_GetVersion());
                Console.WriteLine("Martin compilation!!");
            }

            Console.Read();

        }

    }

}





Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20081031/b8c5fe18/attachment.html


More information about the Liblas-devel mailing list