Is it possible to add these DLLs in your code, in stead of adding them as a reference? I find it annoying every time I want to use them that i have to make a whole new solution in stead of just one file.
I tried to use DLLImort, but I guess it isn't ment to import them like this. Is there any way like in C++?
The code I tested (in case it is just Monodevelop) that don't understand it:
Code:using System.Runtime.InteropServices; [DllImport("System.dll")] [DllImport("System.Drawing.dll")] [DllImport("System.Windows.Forms.dll")] class MessageBoxHelloWorld { public static void Main() { System.Windows.Forms.MessageBox.Show("Hello, world!"); } } - ØØ -




Reply With Quote