R
RF
Hi All,
I have a "lib" file and I need to create a wrapper to expose some methods.
How can I do this in C#.
Can I use [DllImport] to expose methods from this lib? Which folder does the
lib file need to stored in order for C# to call unmananged methods.
For Example:
[DllImport("abc.lib",
EntryPoint="apiFunc1",CallingConvention=CallingConvention.Cdecl)]
public static extern Int32 apiFunc1(args);
Will this work? Any help is appreciated.
Thanks,
RF
I have a "lib" file and I need to create a wrapper to expose some methods.
How can I do this in C#.
Can I use [DllImport] to expose methods from this lib? Which folder does the
lib file need to stored in order for C# to call unmananged methods.
For Example:
[DllImport("abc.lib",
EntryPoint="apiFunc1",CallingConvention=CallingConvention.Cdecl)]
public static extern Int32 apiFunc1(args);
Will this work? Any help is appreciated.
Thanks,
RF