redss Posted October 22, 2003 Posted October 22, 2003 I'm learning C# (and vb.net as I go also) with Visual Studio 2002, and am trying to get over a little hump... Can someone please give me a descriptive example of the following process: 1) looking up any function in the Visual studio help that is not included in the default namespace 2) describe how to add that reference to the project so that when I compile it will be found. Its apparently not as simple as in C where (for example) I can look up strtok() and see that all I have to do is put "include <string.h>" at the top Any examples (both C# and VB actually) will be appreciated! Quote
*Experts* Nerseus Posted October 22, 2003 *Experts* Posted October 22, 2003 Assuming you can find the class or function in the help, go to the class's (if a function) Overview help page and at the bottom you'll see a line like "Namespace: System.IO". That's what you need for the using part. The DLL Reference is almost always the same, or a higher named version if it doesn't exist. Meaning, if the namespace is System.X.Y.Z and you don't see the file System.X.Y.Z.DLL then look for System.X.Y.DLL or System.X.DLL -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.