Permalink
Browse files

Renamed C++/CLI runtime helpers to CppSharp.h.

  • Loading branch information...
1 parent f47dc5b commit 3a663e1a9dc69a9ecd21ec8a385c3487933c9158 @tritao committed Jul 20, 2013
Showing with 13 additions and 8 deletions.
  1. +13 −8 include/{clix.hpp → CppSharp.h}
View
21 include/clix.hpp → include/CppSharp.h
@@ -1,20 +1,25 @@
// ------------------------------------------------------------------------------------------- //
-// clix.hpp (from http://blog.nuclex-games.com/mono-dotnet/cxx-cli-string-marshaling)
+// CppSharp C++/CLI helpers
//
-// Marshals strings between .NET and C++ using C++/CLI (Visual C++ 2005 and later only).
-// Faster and cleaner than the System::Interop method because it uses garbage collected memory.
-// Use at your own leisure. No warranties whatsoever provided.
+// String marshaling code adapted from:
+// http://blog.nuclex-games.com/mono-dotnet/cxx-cli-string-marshaling
//
-// Original code by Markus Ewald
-// Updated version including several improvements suggested by Neil Hunt
-//
-// Licensed under the IBM CPL (free of charge, closed source commercial use is okay)
+// Licensed under the MIT license
// ------------------------------------------------------------------------------------------- //
#pragma once
#include <string>
#include <vcclr.h>
+public interface class ICppInstance
+{
+ property System::IntPtr^ NativePtr
+ {
+ System::IntPtr^ get();
+ void set(System::IntPtr^);
+ }
+};
+
// CLI extensions namespace
namespace clix {

0 comments on commit 3a663e1

Please sign in to comment.