PDA

Click to See Complete Forum and Search --> : Reference in notepad????


quetzalcoatl
Oct 31st, 2003, 11:58 AM
i'm programming in notepad, because i donīt have the VS.Net IDE, i jut downloaded the framework.net, and then how i need make an example with OBDC.net, in the axample, is asked to add a reference to the OBDC.dll, but it is by Project menu of the VS.Net IDE, but i don't have this IDE, so how can i add a reference to a DLL if i using the notepad as editor for my C# programs????

Musician
Nov 1st, 2003, 11:06 AM
First of all I would recommend you get something better than notepad like Webmatrix - www.asp.net - which will make life easier for you.
I'm fairly sure you can get away without a reference if you use the full name of what you are referencing e.g.:-

System.Data.OleDb.OleDbConnection oledbConnection1 = new System.Data.OleDb.OleDbConnection();
oledbConnection1.ConnectionString = myConnectionString;

or at the top of your code page (assuming you are using a seperate code page) put - using System.Data.OleDb;

using System.Data.OleDb;

public class WebForm1 etc.......

then you could use

OleDbConnection oledbConnection1 = new OleDbConnection();

and so on.