You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Runtime.InteropServices;
-
- namespace NScript.Filmscript
- {
- public static class GeneralBindings
- {
- // raw bindings
- [DllImport("filmscript.dll")]
- public static extern string filmscript_version();
-
- private static bool? dllExists = null;
-
- public static string Version()
- {
- return filmscript_version();
- }
-
- public static bool DllExists()
- {
- if (dllExists != null) return dllExists.Value;
- try
- {
- filmscript_version();
- return true;
- }
- catch (DllNotFoundException)
- {
- return false;
- }
- }
- }
- }
|