Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Today at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Yesterday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Jun 25, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Learn to make own .DLL Files
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Core" data-source="post: 6688079" data-attributes="member: 263471"><p><u>What are the library files</u></p><p></p><p></p><p>library files usually defines as .DLL and it's a way to make a part of programming codes to future using ,after that all you have to do is just refer the library file and insert the input and eventually you can get the output from library file </p><p></p><p>like make a cake you insert the cake to oven and finally you get out a baked cake so in here the oven acts as a library file</p><p></p><p><u>Advantages of using Library files</u></p><p></p><p></p><p>You don't need to type codes so much ,once you made a library file for special part ,like (basic arithmetic calculation )then you may need to insert the first_value and second_value to the library file and finally you can get the answer from the library file so it's the answer of above two values</p><p></p><p>also you can use it in different languages ,assume you made a .DLL file in VB.nET then you can also use it under any Microsoft (but same CLR version (.NET version)) languages which come along with Visual Studio package </p><p></p><p></p><p><u></u></p><p><u>Way to make Library Files</u></p><p></p><p>In this example I am going to perform some basic arithmetic operation </p><p></p><p>First make a new project</p><p>Select Class Library as your project type</p><p></p><p>Now you can see there is almost nothing just spaces with few lines</p><p></p><p><span style="font-family: 'Courier New'"><em>Now add the following codes</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'///////////The .DLL (Class Library File)</em></span></p><p><span style="font-family: 'Courier New'"><em>'********************************************</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Public Class Arithmetic_Operation</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//all codes were written by Core(myself) and belong to Core so don't steal this shit</em></span></p><p><span style="font-family: 'Courier New'"><em>'//reposting , copy paste doesn't matter but need to put the reference first </em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Dim _firstValue ,_secondValue ,_answer as Double</em></span></p><p><span style="font-family: 'Courier New'"><em>Dim _symbol as String</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Public Function calculate(ByVal firstValue , ByVal secondValue ,ByVal symbol ) as Double</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Select case symbol </em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>case "+"</em></span></p><p><span style="font-family: 'Courier New'"><em>answer = Val(firstValue) + Val(secondValue)</em></span></p><p><span style="font-family: 'Courier New'"><em>case "-"</em></span></p><p><span style="font-family: 'Courier New'"><em>answer = Val(firstValue) - Val(secondValue)</em></span></p><p><span style="font-family: 'Courier New'"><em>case "/"</em></span></p><p><span style="font-family: 'Courier New'"><em>answer = Val(firstValue) / Val(secondValue)</em></span></p><p><span style="font-family: 'Courier New'"><em>case "*"</em></span></p><p><span style="font-family: 'Courier New'"><em>answer = Val(firstValue) * Val(secondValue)</em></span></p><p><span style="font-family: 'Courier New'"><em>case ""</em></span></p><p><span style="font-family: 'Courier New'"><em>MsgBox("error Message")</em></span></p><p><span style="font-family: 'Courier New'"><em>End Select</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Return answer </em></span></p><p><span style="font-family: 'Courier New'"><em>End Function </em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Class</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'********************************************</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>the main form</em></span></p><p><span style="font-family: 'Courier New'"><em>------------------------</em></span></p><p><span style="font-family: 'Courier New'"><em>Import DLLNAME.Arithmetic_Operation</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Public Class MainForm</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Dim _firstValue ,_secondValue Double</em></span></p><p><span style="font-family: 'Courier New'"><em>Dim _symbol as String</em></span></p><p><span style="font-family: 'Courier New'"><em>Dim _dll_file as new DLLNAME</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//add button</em></span></p><p><span style="font-family: 'Courier New'"><em>Public Sub btn_add(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_add.Click</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>_firstValue = TextBox.Text '//get the value from textbox(user typed value </em></span></p><p><span style="font-family: 'Courier New'"><em>'//to firstValue variable)</em></span></p><p><span style="font-family: 'Courier New'"><em>_symbol = "+" '//symbol represents what to do (it may useful in equal '//button because we have only one equal button)</em></span></p><p><span style="font-family: 'Courier New'"><em>TextBox.Clear() '//clear the textbox to type to second value </em></span></p><p><span style="font-family: 'Courier New'"><em>'// 1 + 2 = 3 ('//first you type 1 then + then 3 then finally = )</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'('//first you type 1 then + then 3 then finally = )</em></span></p><p><span style="font-family: 'Courier New'"><em>'when you type the value 1 then display box (textbox shows it on itself)</em></span></p><p><span style="font-family: 'Courier New'"><em>'then you type one of operator keys (because anyone can type any 'operator it doesn't matter first + ,- ,* ,/ so symbol is needed to determine</em></span></p><p><span style="font-family: 'Courier New'"><em>'which operator key was clicked finally clear the textbox to type to second 'value </em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Sub</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//subtract button</em></span></p><p><span style="font-family: 'Courier New'"><em>Public Sub btn_subtract (ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_subtract .Click</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>_firstValue = TextBox.Text</em></span></p><p><span style="font-family: 'Courier New'"><em>_symbol = "-"</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Sub</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//multiply button</em></span></p><p><span style="font-family: 'Courier New'"><em>Public Sub btn_multiply (ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_multiply.Click</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>_firstValue = TextBox.Text</em></span></p><p><span style="font-family: 'Courier New'"><em>_symbol = "*"</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Sub</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//divide button</em></span></p><p><span style="font-family: 'Courier New'"><em>Public Sub btn_add(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_divide.Click</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>_firstValue = TextBox.Text</em></span></p><p> <span style="font-family: 'Courier New'"><em>_symbol = "/"</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Sub</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>Public Sub btn_equal(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_equal.Click</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'insert the input values to the DLLNAME.Arithmetic_Operation's(DLL file) 'calculate method and that method finally return the answer to its name 'so 'all you have to do is just refer its name with insert values ,it will return the </em></span></p><p><span style="font-family: 'Courier New'"><em>'answer eventually so that value pass over to the display (in here TextBox's .Text Property because only values show on that pass to .Text property)</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>_secondValue = TextBox.Text '//get the second value and pass to second 'Value variable</em></span></p><p><span style="font-family: 'Courier New'"><em>TextBox.Text = Val(_dll_file.</em></span><span style="font-family: 'Courier New'"><em>calculate</em></span><span style="font-family: 'Courier New'"><em>(_firstValue,_secondValue,_symbol))</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>'//the Val(as String)as Double method returns any values contains in any string variable</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Sub</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span></p><p><span style="font-family: 'Courier New'"><em>End Class</em></span></p><p><span style="font-family: 'Courier New'"><em></em></span> </p><p></p><p>NOTE</p><p>if I have done anything wrong then plz tell me I am bored to test this out anyway don't copy and paste because this format is not suitable and there should be done some modifications but basically coding goes like this way</p><p>remember to use ' ' for comments to comment out my texts</p></blockquote><p></p>
[QUOTE="Core, post: 6688079, member: 263471"] [U]What are the library files[/U] library files usually defines as .DLL and it's a way to make a part of programming codes to future using ,after that all you have to do is just refer the library file and insert the input and eventually you can get the output from library file like make a cake you insert the cake to oven and finally you get out a baked cake so in here the oven acts as a library file [U]Advantages of using Library files[/U] You don't need to type codes so much ,once you made a library file for special part ,like (basic arithmetic calculation )then you may need to insert the first_value and second_value to the library file and finally you can get the answer from the library file so it's the answer of above two values also you can use it in different languages ,assume you made a .DLL file in VB.nET then you can also use it under any Microsoft (but same CLR version (.NET version)) languages which come along with Visual Studio package [U] Way to make Library Files[/U] In this example I am going to perform some basic arithmetic operation First make a new project Select Class Library as your project type Now you can see there is almost nothing just spaces with few lines [FONT=Courier New][I]Now add the following codes '///////////The .DLL (Class Library File) '******************************************** Public Class Arithmetic_Operation '//all codes were written by Core(myself) and belong to Core so don't steal this shit '//reposting , copy paste doesn't matter but need to put the reference first Dim _firstValue ,_secondValue ,_answer as Double Dim _symbol as String Public Function calculate(ByVal firstValue , ByVal secondValue ,ByVal symbol ) as Double Select case symbol case "+" answer = Val(firstValue) + Val(secondValue) case "-" answer = Val(firstValue) - Val(secondValue) case "/" answer = Val(firstValue) / Val(secondValue) case "*" answer = Val(firstValue) * Val(secondValue) case "" MsgBox("error Message") End Select Return answer End Function End Class '******************************************** the main form ------------------------ Import DLLNAME.Arithmetic_Operation Public Class MainForm Dim _firstValue ,_secondValue Double Dim _symbol as String Dim _dll_file as new DLLNAME '//add button Public Sub btn_add(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_add.Click _firstValue = TextBox.Text '//get the value from textbox(user typed value '//to firstValue variable) _symbol = "+" '//symbol represents what to do (it may useful in equal '//button because we have only one equal button) TextBox.Clear() '//clear the textbox to type to second value '// 1 + 2 = 3 ('//first you type 1 then + then 3 then finally = ) '('//first you type 1 then + then 3 then finally = ) 'when you type the value 1 then display box (textbox shows it on itself) 'then you type one of operator keys (because anyone can type any 'operator it doesn't matter first + ,- ,* ,/ so symbol is needed to determine 'which operator key was clicked finally clear the textbox to type to second 'value End Sub '//subtract button Public Sub btn_subtract (ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_subtract .Click _firstValue = TextBox.Text _symbol = "-" End Sub '//multiply button Public Sub btn_multiply (ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_multiply.Click _firstValue = TextBox.Text _symbol = "*" End Sub '//divide button Public Sub btn_add(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_divide.Click _firstValue = TextBox.Text _symbol = "/" End Sub Public Sub btn_equal(ByVal sender as Object,ByVal e as System.EventArgs)Handler btn_equal.Click 'insert the input values to the DLLNAME.Arithmetic_Operation's(DLL file) 'calculate method and that method finally return the answer to its name 'so 'all you have to do is just refer its name with insert values ,it will return the 'answer eventually so that value pass over to the display (in here TextBox's .Text Property because only values show on that pass to .Text property) _secondValue = TextBox.Text '//get the second value and pass to second 'Value variable TextBox.Text = Val(_dll_file.[/I][/FONT][FONT=Courier New][I]calculate[/I][/FONT][FONT=Courier New][I](_firstValue,_secondValue,_symbol)) '//the Val(as String)as Double method returns any values contains in any string variable End Sub End Class [/I][/FONT] NOTE if I have done anything wrong then plz tell me I am bored to test this out anyway don't copy and paste because this format is not suitable and there should be done some modifications but basically coding goes like this way remember to use ' ' for comments to comment out my texts [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom