473,497 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dll reference..

VJ
I have a functions in a CS file as below. This is cs in say a EXE

private void Test1()
{
try
{
//lot of statments here, can even return without reaching Test2.
Test2("hello",1);
}
catch
{

}
}

private void Test2()
{
try
{
// Has a "new" reference to a dll..like
Namespace1.MyTest tst = new Namespace1.MyTest(); //MyTest is
in a dll, that is referenced in exe projects and is not present in the using
statment.
}
catch
{

}
}

Now the Dll referenced by the project is not in a path that the exe can
load. Will the above continue to work normally if Test2 was never hit i.e or
called in Test.

Yes this many catch is bad, I am just trying to understand the concept
here.. please help!
VJ
Mar 26 '07 #1
1 1269
VJ
Also would like to whether having the catch in Test makes a difference or
not

VJ

"VJ" <no***********@yahoo.comwrote in message
news:%2********************@TK2MSFTNGP05.phx.gbl.. .
>I have a functions in a CS file as below. This is cs in say a EXE

private void Test1()
{
try
{
//lot of statments here, can even return without reaching
Test2.
Test2("hello",1);
}
catch
{

}
}

private void Test2()
{
try
{
// Has a "new" reference to a dll..like
Namespace1.MyTest tst = new Namespace1.MyTest(); //MyTest is
in a dll, that is referenced in exe projects and is not present in the
using statment.
}
catch
{

}
}

Now the Dll referenced by the project is not in a path that the exe can
load. Will the above continue to work normally if Test2 was never hit i.e
or called in Test.

Yes this many catch is bad, I am just trying to understand the concept
here.. please help!
VJ


Mar 26 '07 #2

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

Similar topics

2
13102
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
110
9806
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
11
2166
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
13
17903
by: Abe Frohnman | last post by:
Hello all, I'm passing a reference to a class into the constructor of a form, like so: public MyForm(int count, ref Area myArea) {...} How can I use myArea outside the constructor? Should I...
4
3391
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
13
2621
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
4390
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
4183
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
41
3606
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
275
12025
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
6993
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
7162
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
7197
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...
1
6881
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
5456
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
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.