| Revision 2869,
600 bytes
checked in by sam, 5 years ago
(diff) |
|
Reorganise ThePimp? and pipi-sharp, adding a test program and allowing to
build using the autotools.
|
| Rev | Line | |
|---|
| [2866] | 1 | // MyClass.cs created with MonoDevelop |
|---|
| 2 | // User: sam at 13:14 04/10/2008 |
|---|
| 3 | // |
|---|
| 4 | // To change standard headers go to Edit->Preferences->Coding->Standard Headers |
|---|
| 5 | // |
|---|
| 6 | |
|---|
| 7 | using System; |
|---|
| 8 | using System.Runtime.InteropServices; |
|---|
| 9 | using System.Security; |
|---|
| 10 | |
|---|
| 11 | namespace Pipi |
|---|
| 12 | { |
|---|
| 13 | public static class Libpipi |
|---|
| 14 | { |
|---|
| 15 | [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), |
|---|
| 16 | SuppressUnmanagedCodeSecurity] |
|---|
| 17 | private static extern IntPtr pipi_get_version(); |
|---|
| 18 | public static string getVersion() |
|---|
| 19 | { |
|---|
| 20 | return Marshal.PtrToStringAnsi(pipi_get_version()); |
|---|
| 21 | } |
|---|
| 22 | } |
|---|
| 23 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.