Update: Also, I did this:
private void button1_Click(object sender, EventArgs e)
{
var source = new PHAC();
Thread t = new Thread(source.SomeMethod);
}
And on the PHAC I'm getting an error saying:
And my dll library file is called PHAC.dll and under...
Shouldn't I not use "var" as my variable type and actual variable types?
SomeTypeFromLibrary source = new SomeTypeFromLibrary();
Thread t = new Thread(source.SomeMethod);
Or no?
Hello there everyone!
I have created a simple dll file that will sleep for 5 seconds then show a message and repeat.
I want to call in my .exe program my dll in a new thread and run it constantly.
So something around:
Thread t = new Thread();
t.run("Test.dll");
Or something around there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.