| | |
building dll with exe
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
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 array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop picturebox pixelinversion platform post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






