CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
native_library.h
1
2#pragma once
3#include <system/iequatable.h>
4#include <system/string.h>
5
6namespace System { namespace Runtime { namespace InteropServices {
7
8class ASPOSECPP_SHARED_CLASS NativeLibrary
9{
10public:
14 ASPOSECPP_SHARED_API static IntPtr Load(const String& libraryPath);
19 ASPOSECPP_SHARED_API static bool TryLoad(const String& libraryPath, IntPtr& handle);
22 ASPOSECPP_SHARED_API static void Free(IntPtr handle);
27 ASPOSECPP_SHARED_API static IntPtr GetExport(IntPtr handle, const String& name);
28};
29
30}}}
static bool TryLoad(const String &libraryPath, IntPtr &handle)
Loads native dynamic library.
static IntPtr GetExport(IntPtr handle, const String &name)
Gets address of given library item.
static void Free(IntPtr handle)
Unloads dynamic library.
static IntPtr Load(const String &libraryPath)
Loads native dynamic library. Throws on error.
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:125
Definition: db_command.h:9