Jasmin01
asked on
C# Console application
Hi.
I am writing a console application that I would like to use to call a procedure from another program, instead of rewriting the code again. I have added the program to my "References" file, but I am unsure of how to call the procedure from the other program. Can anyone give me some samples on how to do this? I am using Visual Studio 2008
I am writing a console application that I would like to use to call a procedure from another program, instead of rewriting the code again. I have added the program to my "References" file, but I am unsure of how to call the procedure from the other program. Can anyone give me some samples on how to do this? I am using Visual Studio 2008
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have created the console application and I have referenced the exe application, like the code below:
using System;
using System.Collections.Generic ;
using System.Linq;
using System.Text;
using AppMailer;
namespace Mailer
{
class Program
{
static void Main(string[] args)
{
}
}
}
I have to call the function found in my form1.vb file, but I don't know how to do this. Can you help?
using System;
using System.Collections.Generic
using System.Linq;
using System.Text;
using AppMailer;
namespace Mailer
{
class Program
{
static void Main(string[] args)
{
}
}
}
I have to call the function found in my form1.vb file, but I don't know how to do this. Can you help?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@kaufmed - very nice explanation.
try below sample
http://msdn.microsoft.com/en-us/library/3707x96z(v=vs.80).aspx