building dll with exe
Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
![]() |
•
•
Posts: 63
Reputation:
Solved Threads: 1
listen i got to compile one file to a dll and one to an exe
all in one project
so i got 1 file called
main.cs
when i compile i am getting only the exe file and not the dll
so i cant use the dll funcs!!
i am using visual C# express
can anybody help me with this one???
i heard i have to add some command but i have no idea where to add it and what command i am freaked off
help me lol please
all in one project
so i got 1 file called
main.cs
// File: main.cs
using UtilityMethods;
class TestCode
{
static void Main(string[] args)
{
System.Console.WriteLine(add(2,3));
}
}// add.cs
using System;
namespace MyMethods
{
public class MultiplyClass
{
public static int add(int x, int y)
{
return (x+y);
}
}
}when i compile i am getting only the exe file and not the dll
so i cant use the dll funcs!!
i am using visual C# express
can anybody help me with this one???
i heard i have to add some command but i have no idea where to add it and what command i am freaked off
help me lol please
You create 1 solution holds your 2 project (exe and dll)
From your (exe) project add reference to your dll project then press Ctr + F5
From your (exe) project add reference to your dll project then press Ctr + F5
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
REading this will help http://www.c-sharpcorner.com/UploadF...058AM/dll.aspx
"If you judge people, you have no time to love them." Mother Teresa
Make love, no war. Cave ab homine unius libri.
First rule of debugging: "If you get a different error message, you're making progress."
Danny
Make love, no war. Cave ab homine unius libri.
First rule of debugging: "If you get a different error message, you're making progress."
Danny
•
•
Posts: 63
Reputation:
Solved Threads: 1
•
•
•
•
You create 1 solution holds your 2 project (exe and dll)
From your (exe) project add reference to your dll project then press Ctr + F5
ok its helped
but now i am getting an error at my main func
"The name 'add' does not exist in the current context"
any ideas?
![]() |
Similar Threads
Other Threads in the C# Forum
- Reversing a Algorithm (C)
- Dll Loader/Injector (C++)
- problem with cygcurl-2.dll (C++)
- Dll's and problems with them (C++)
- Help - surf sidekick 3 is attacking! (Viruses, Spyware and other Nasties)
- Building DLLs in VC++ (C++)
- DVD+RW/+R Burning problems Update (Storage)
- Virus/Spyware on computer, Hijack This log file (Viruses, Spyware and other Nasties)
- outlook 97 will not run (Windows NT / 2000 / XP / 2003)
- Missing BRIDGE.dll on Windows startup (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: A collection of TabPages without the tabsection
- Next Thread: Typecasting
•
•
•
•
Views: 819 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode