tshad wrote:
I have a program in C# that needs to access a couple of C++ dlls and libs.
Can this be done?
COM DLL's or Win32 DLL's.
COM stuff can be used directly.
Win32 DLL's can be used via dllimport.
A very simple example:
using System;
using System.Runtime.InteropServices;
class MainClass
{
[DllImport("msvcrt.dll")]
public static extern int system(string cmd);
public static void Main(string[] args)
{
Console.WriteLine("Hello world");
system("CLS");
}
}
Arne