| | |
building dll with exe
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2007
Posts: 70
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: 70
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 |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






