Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing values from one form to another Pin
enjoycrack19-Sep-05 2:49
enjoycrack19-Sep-05 2:49 
AnswerRe: Passing values from one form to another Pin
mattylovestara19-Sep-05 20:49
mattylovestara19-Sep-05 20:49 
QuestionDownload from Server Pin
cloudking1196619-Sep-05 0:34
cloudking1196619-Sep-05 0:34 
AnswerRe: Download from Server Pin
enjoycrack19-Sep-05 1:01
enjoycrack19-Sep-05 1:01 
AnswerRe: Download from Server Pin
seee sharp19-Sep-05 1:02
seee sharp19-Sep-05 1:02 
Questioncreate a dll [part 2] Pin
Sasuko19-Sep-05 0:20
Sasuko19-Sep-05 0:20 
AnswerRe: create a dll [part 2] Pin
Stefan Troschuetz19-Sep-05 1:19
Stefan Troschuetz19-Sep-05 1:19 
AnswerRe: create a dll [part 2] Pin
19-Sep-05 11:41
suss19-Sep-05 11:41 
Hi, in your first topic i explained how to create a dll manually without using Visual Studio. Now i'll explain how to reference a dll manually just for your knoledege.

The reference to the dll is added when you compile your .exe file(where you've got your form). So we'll compile the exe and add the dll reference to it.

With explorer browse to the folder where your sources (.cs files) are located (the files that your exe will use) and create a text file with notepad and add the following 2 lines to this new file:

csc.exe /target:winexe /out:MySoftware.exe /reference:MyLibrary.dll *.cs
pause

Save the file, close it and now rename its extension from .txt to .bat, this is a batch file. Now doble click on it (open it) and it will open a DOS window and will start the compiling process. The first line you added to the file will create your exe. In this line there's a '/reference:' parameter, this parameter will link your app to your dll, this example assumes that your dll is in the same path with your exe sources, in case the dll is in another folder use '/reference:MyFolder\MyLibrary.dll' (the path is relative to the batch file or you can type the complete path: C:\dev\app\MyFolder\MyLibrary.dll).
The second line in the batch file will prevent the window to close and it will keep it open so you can see the compiler's output in case something is wrong in your code.
Job's done.

-- modified at 2:04 Thursday 22nd September, 2005
QuestionJavascript or how? Pin
cloudking1196619-Sep-05 0:09
cloudking1196619-Sep-05 0:09 
QuestionTimer Pin
levi's18-Sep-05 23:56
levi's18-Sep-05 23:56 
AnswerRe: Timer Pin
Stefan Troschuetz19-Sep-05 1:21
Stefan Troschuetz19-Sep-05 1:21 
GeneralRe: Timer Pin
levi's19-Sep-05 15:19
levi's19-Sep-05 15:19 
GeneralRe: Timer Pin
Stefan Troschuetz19-Sep-05 21:41
Stefan Troschuetz19-Sep-05 21:41 
GeneralRe: Timer Pin
levi's19-Sep-05 23:44
levi's19-Sep-05 23:44 
GeneralRe: Timer Pin
Stefan Troschuetz20-Sep-05 0:21
Stefan Troschuetz20-Sep-05 0:21 
QuestionAscii sending problem. Pin
cue_ball18-Sep-05 23:45
cue_ball18-Sep-05 23:45 
AnswerRe: Ascii sending problem. Pin
Rob Harrison19-Sep-05 3:01
Rob Harrison19-Sep-05 3:01 
QuestionRename the File name Pin
Anonymous18-Sep-05 23:42
Anonymous18-Sep-05 23:42 
AnswerRe: Rename the File name Pin
Stefan Troschuetz19-Sep-05 0:29
Stefan Troschuetz19-Sep-05 0:29 
AnswerRe: Rename the File name Pin
Dave Kreskowiak19-Sep-05 5:41
mveDave Kreskowiak19-Sep-05 5:41 
QuestionLog Pin
Gktony18-Sep-05 23:05
Gktony18-Sep-05 23:05 
AnswerRe: Log Pin
enjoycrack19-Sep-05 1:23
enjoycrack19-Sep-05 1:23 
GeneralRe: Log Pin
Gktony19-Sep-05 3:36
Gktony19-Sep-05 3:36 
QuestionGDI+ :How to judge a point in the path. Pin
dreamwinter18-Sep-05 23:01
dreamwinter18-Sep-05 23:01 
QuestionExtracting attribute information from an XML file Pin
Vikram A Punathambekar18-Sep-05 20:41
Vikram A Punathambekar18-Sep-05 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.