I have a C program and I created a dll file. I am using Windows Vista and Visual C ++.
Now I need to access the method from this DLL, from the Main () method of C # code. What are the steps for doing this?
So far I have added the dll file as a link, after which what should I do?
This is just an example:
int main1( void ) {
prinf("Hello World");
}
Please note that this class also makes us out of other .lib functions, but I was able to successfully create a DLL from it. (I do not know how relevant this is)
Now I need to access this method from my C # Main ();
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
illep source
share