473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

references do what?

Sad to say, i have developed several B2B web apps using ASP fo rnearly 5
years now and there is on area that i still don't have a grasp on. Why do
you make references? Better yet, what happens if you don't. Here is an
example. For some reason, I couldn't get my latest creation to send email.
Would return something about a SendUsing config being bad. I go to MS site
and use one of their demo codes. It says to create a new project and add a
reference to system.web.dll. Before I added it, I tried my project again and
magically, it has started working. I am pretty sure that the settings that I
made Friday just needed some time to take effect (properly set SMTP config
on IIS serv). But reading the MS code makes me wonder enough to ask: Why do
you manually add references to projects, and what happens if you don't? Mine
worked fine without adding the reference to the project. Are references what
will allow VS.Net to auto complete things for you? For example, when i use
the wizard to start a new web proj, I notice that VS.Net will auto suggest
properties for objects that I have inserted as I am coding. The proj I am
doing now I just linked to a web site (no wizard) and it auto suggests
nothing which makes me have to dig for properties as opposed to it auto
generating a pop up. how do i get VS.Net to auto pop up property suggestions
for objects? Thanks all!
Nov 17 '05 #1
4 944
References tell the compiler where to find the DLLs it needs to compile your
project.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Rick Csucsai" <ri**@cerinosolutions.com> wrote in message
news:uU*************@tk2msftngp13.phx.gbl...
Sad to say, i have developed several B2B web apps using ASP fo rnearly 5
years now and there is on area that i still don't have a grasp on. Why do
you make references? Better yet, what happens if you don't. Here is an
example. For some reason, I couldn't get my latest creation to send email.
Would return something about a SendUsing config being bad. I go to MS site
and use one of their demo codes. It says to create a new project and add a
reference to system.web.dll. Before I added it, I tried my project again and magically, it has started working. I am pretty sure that the settings that I made Friday just needed some time to take effect (properly set SMTP config
on IIS serv). But reading the MS code makes me wonder enough to ask: Why do you manually add references to projects, and what happens if you don't? Mine worked fine without adding the reference to the project. Are references what will allow VS.Net to auto complete things for you? For example, when i use
the wizard to start a new web proj, I notice that VS.Net will auto suggest
properties for objects that I have inserted as I am coding. The proj I am
doing now I just linked to a web site (no wizard) and it auto suggests
nothing which makes me have to dig for properties as opposed to it auto
generating a pop up. how do i get VS.Net to auto pop up property suggestions for objects? Thanks all!

Nov 17 '05 #2
Hi,

The reference task is to add to assembly metadata all the assemblies
that used by the given assembly and indication whether the assembly got
strong name key. VS use that data to load reference assemblies’ metadata
to show inlellisense and CLR loader use it to load those assemblies. By
default when you open VS project certain references are made by the VS.
You can see those references by using ildasm tool and look in the
metadata.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
How is it then that even though I didn't specifically add the reference
that it still works? Also, any answer on how to tell VS to give me the
pop ups as I am entering objects?

Thanks for the reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
It shouldn't. In fact it can't. If the reference isn't there, the runtime is
hopelessly lost. The fact that it is working implies that there is a
reference telling it where to find the assembly

regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Rick Csucsai" <ri**@cerinosolutions.com> wrote in message
news:eR*************@TK2MSFTNGP10.phx.gbl...
How is it then that even though I didn't specifically add the reference
that it still works? Also, any answer on how to tell VS to give me the
pop ups as I am entering objects?

Thanks for the reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Tom | last post by:
The motivation for references seems clear: stop people from using nasty pointers when all they really want is a reference to an object. But C++ references are so inadequate that I'm still using...
22
by: xmp333 | last post by:
Hi All, I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it...
33
by: JKop | last post by:
I understand variables/objects and pointer variables perfectly: int X = 5; int* pX = &X; *pX = 4; int** ppX = &pX:
2
by: Michelle Collier-Moore | last post by:
Please could someone offer some advice regarding adding references to an Access database? I tried to open a project a few days ago sent to me by someone whose developer had left the company. I...
11
by: codebloatation | last post by:
I know how to use references but i DO not get WHY they exist other than to add to the language. Are they actually needed for anything?
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
28
by: Frederick Gotham | last post by:
When I was a beginner in C++, I struggled with the idea of references. Having learned how to use pointers first, I was hesitant to accept that references just "do their job" and that's it. Just...
9
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you...
3
by: CenturionX | last post by:
Hello everybody: I'd like to know what references in my vba code are used or not. I work in a code made by another person previously, i founded to many references and i believe that someones...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.