| | |
building dll with exe
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: May 2007
Posts: 69
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
C# Syntax (Toggle Plain Text)
// File: main.cs using UtilityMethods; class TestCode { static void Main(string[] args) { System.Console.WriteLine(add(2,3)); } }
C# Syntax (Toggle Plain Text)
// 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
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
•
•
Join Date: May 2007
Posts: 69
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
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
- 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)
- 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
| Thread Tools | Search this Thread |
.net access algorithm animation array bitmap box c# check checkbox client combobox control conversion csharp customactiondata database datagrid datagridview dataset datastructure date/time datetime datetimepicker degrees directrobot dll draganddrop drawing encryption enum excel file filename files form format formbox forms function gdi+ gis gtk hash image input install java label list mandelbrot math mouseclick mp3 mysql native operator outlook2003 packaging path photoshop picturebox pixelinversion pixelminversion post print process programming radians regex remoting richtextbox safari server sleep snooze socket sql statistics string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser webcam wfa wia winforms wpf xml






