YouNameIt.DLL

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
9 posts Page 1 of 1
Contributors
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

YouNameIt.DLL
bisnes_niko
...YourSocksRoxx asked for this how-to make a YouNameIt.DLL

1. Start new Project
1.1 Name the project as a YouNameIt.DLL
1.2 Change the Class name to classYouNameIt.VB

This is just an example code piece to save a file
2. Add this code to your classYouNameIt
Code: Select all
Private Shared Sub SaveFile(ByVal strPath as String, byval strContent as String)
Dim Writer as new system.io.streamwriter(strPath)
Writer.write(Content)
Writer.close
end sub
3.0 Save your project as YouNameIt
3.1 Build your project
4. Start new project (Windows Forms)
4.1 Add reference -> YouNameIt.DLL (\Projects\YouNameIt\YouNameIt\Bin\Build\YouNameIt.DLL)
4.2 Add this code UNDER public class Form1
Code: Select all
 
' This is big help, so you dont have to do the YouNameIt.ClassYouNameIt everytime u wanna do somekind of sub inside it
Dim MY_VERY_OWN_DLL as new YouNameIT.classYouNameIt
 
5. Add a button and double click it
6. Add this code to the button
Code: Select all
MY_VERY_OWN_DLL.SaveFile("PATH..For an example 'c:\blah.txt'", "Hello World (axel?)")
7. Debug and try out
8. Report any problems :P I didnt try this code
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: YouNameIt.DLL
Axel
im gonna try this code tommorow :D is this the kind of "Import thing.thing " thing xd so when i do "Import YoursocksRox.project"
then i could call my own functions like Msg("hehe", Stylecol.lol" and such ? :P
http://vagex.com/?ref=25000
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: YouNameIt.DLL
mandai
You would be better off making the dll function public if you plan on accessing it from a different class.
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

Re: YouNameIt.DLL
bisnes_niko
mandai wrote:
You would be better off making the dll function public if you plan on accessing it from a different class.
Doesnt matter.. works anyways
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: YouNameIt.DLL
mandai
Image
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

Re: YouNameIt.DLL
bisnes_niko
mandai wrote:
Image
I take back my words :oops:
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: YouNameIt.DLL
Axel
hehe it worked :P ty
http://vagex.com/?ref=25000
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: YouNameIt.DLL
Lewis
I changed a few things as madai said and BAM my first dll that worked :P Thanks for this
Image
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

Re: YouNameIt.DLL
NecroPhis
gonna try tha cooll;
thanx for sharing
Image
9 posts Page 1 of 1
Return to “Source-Code”