| | |
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 app application array bitmap box c# check checkbox client color combo combobox concurrency control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset datatable date/time datetime degrees dll draganddrop drawing enabled encryption enum excel file filename finalyearproject foreach form format forms function gdi+ getoutlookcontactusinfcsvfile globalization gtk image input install installer java keypress label list localization math microsoftc#visualexpress mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server sleep socket sql sql-server statistics string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser winforms wpf xml






