create and use my own DLL

how would i create a new my DLL and use it?

examples would be very help as im all new to this...

also i have heard of a DLL to retrieve the NT username of current logged in user.  How would i use this DLL?  can it be used in webpage or some kind?  again an example would go down well...

thank you
LVL 16
ellandrdAsked:
Who is Participating?
 
t_itaniumConnect With a Mentor Commented:
hi


you have to create in .net a new class library...write the code .then build it...this will creat in your BIN directory of the project a .dll file....

now open another project.... to creat an application.. write click on the project and click add reference..

browse for files and select this .dll file and then you can use it  as reference...

check this:

http://www.c-sharpcorner.com/2/pr12.asp
0
 
TDSnetConnect With a Mentor Commented:
Then to retrieve the current user name use:

User.Identity.Name

or

System.Security.Principal.WindowsIdentity.GetCurrent().Name
0
 
ellandrdAuthor Commented:
does it have to be in .NET?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
t_itaniumConnect With a Mentor Commented:
no.. it depends on what you want.....you can do it with C .. or vb
0
 
ellandrdAuthor Commented:
well i would like to use it in a webpage for example..
0
 
t_itaniumCommented:
how r u creating your web page??  if your r using ASP.net...then create it with .NET.... and then use it ..if else specify

cheers
0
 
ellandrdAuthor Commented:
our server can handle PERL, PHP and ASP
0
 
ellandrdAuthor Commented:
we have enabled the use of .net so .net is now supported
0
 
t_itaniumCommented:
ok you can then use what i mentioned before..

good luck..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.