I have an ASP.NET page A that uses a data layer assembly DAL. I reference the DAL assembly with a
<%@ Assembly Name="NGC.DAL" %> tag since there is no project to add the reference to. The assembly itself I copied to the pages' bin folder.
The assembly DAL is a project that references System and System.Data.
Now when A calls a method in...
I have multiple projects containing multiple WCF service references.
My WCF services are in a state of flux so I frequently have to go around and update all of my service references.
Is there a way to achieve this as a single action?
...
I have a PolygonList and a Polygon type, which are std::lists of Points or lists of lists of points.
class Point {
public:
int x, y;
Point(int x1, int y1)
{
x = x1;
y = y1;
}
};
typedef std::list<Point> Polygon;
typedef std::list<Polygon> PolygonList;
// List of all our poly...
I often have a subroutine in Perl that fills an array with some information. Since I'm also used to hacking in C++, I find myself often do it like this in Perl, using references:
my @array;
getInfo(\@array);
sub getInfo {
my ($arrayRef) = @_;
push @$arrayRef, "obama";
# ...
}
instead of the more straightforward version:
my ...
I have a function which takes a reference to an object-
void move(Ball& ball);
I have another function calling 'move()' which has a pointer to ball -
void foo(Ball* ball){
//call move()
}
How is foo() supposed to pass ball to 'move()'?
Should it be like -
move(*ball);
or
move(ball);
or
move(&ball);
...
I am trying to reference a js file in a class in an ASP.NET and I receive this error:
Assembly 'XXX' contains a Web resource with name 'XXX' but does not contain an embedded resource with name 'XXX'
Searching the web tell me I must have a Path referencing problem, but I can't figure what is it.
Here is the hierarchy
<Root>
<App_C...
I'm getting a compiler error saying that "Acme.Business.User" is not defined.
I have a class library project called "Acme.Business" that has "Acme.Business" as the assembly name and root namespace as well. None of the classes use the "Namespace" keyword, so they all should exist in the namespace "Acme.Business".
I also have a class lib...
Greetings!
This is quite a newbie question but forgive me. Can anyone recommend a good place, either site or book, to get up to speed on the XML Frameworks with .Net. I think I have the basics down but I have the feeling it's not as elegant as it could be.
For example:
When to use XMLDocument or XMLReader for finding elements
How c...
I am compiling and importing this multicolumncombo box class. I am able to run the demo program that comes with it without a hitch. However when I compile it for release and include the /obj/Release/CodeSamples.dll as a reference in my C# project, the examples won't work any more. Specifically, selecting an item doesn't work. I can add a...
I am playing around with the Visual Studio Team Suite Database Edition GDR, and I've imported several of our databases.
I have literally thousands of warnings, most of which are unresolved references.
I understand when we don't have SchemaName.dbo.TableName for external references, but why would there be warnings (even errors) when the...
Is there some kind of subtle difference between those:
void a1(float &b) {
b=1;
};
a1(b);
and
void a1(float *b) {
(*b)=1;
};
a1(&b);
?
They both do the same (or so it seems from main() ), but the first one is obviously shorter, however most of the code I see uses second notation. Is there a difference? Maybe in case it's s...
I am asking about a good reference for multithreading programming in terms of concepts
with good examples using C++/C#?
...
I am wondering if there are any heuristics for when to set copy-local=true for references?
If referenced types are only used internally can I set copy-local to true but if referenced types are exposed as parameters or return values I set copy-local to false and indicate that a specific version of the dependency should be referenced when...
Hi everyone, I have an interesting design problem and I was hoping you all could make some suggestions. I'm using C# and .NET 3.0
I have a very nice, extensible framework built on top of WCF that automates the setup of endpoints and the creation of contracts. The system I'm working in could be run in different ways - endpoints could b...
I have read that removing unused references makes no difference to the compiler as it ignores assemblies that are not being referenced in the code itself.
But I find it hard to believe because then, what is the real purpose of Removing unused references? It doesn't have any noticeable effect on the size of the generated assembly or othe...
hi guys,
i'm currently in the process of modifying a legacy editor application and i need to add in a few data structures which i have made into a class of it's own which i later add to a collection object. but thus far i'm little bit blurry on where to put all of my functions which is related to that object. i'm thinking maybe OO like d...
A web app that I'm writing throws this compiletime error
Error 1 The type or namespace name 'Web' does not exist in the namespace 'ATS.System' (are you missing an assembly reference?)
for every code file in the assembly
the namespace is imported in every file (both System and System.Web)
I've also added references (to both) in th...
Array $imagelist:
Array (
[additional] => Array (
[count] => 2
[image] => Array (
[nokia_e61_1.jpg] => Array (
[name_body] => nokia_e61_1
[name_ext] => jpg
)
[nokia_e61_2.jpg] => Array (
[name_body] => nokia_e61_2
[name_ext] => jpg
)
[nokia_e61_3.jpg] =>...
Does anyone have an idea why the ampersand was chosen as the way to denote references in C++?
AFAIK (though I don't have the book near me), Stroustroup didn't explain that choice, which I find a little odd because the same symbol was already used for address-of in C.
...
I am trying to set a reference in a function. But, I am not able to get this working.
Code I tried:
function set(&$x, &$y)
{
$x =& $y[2];
}
$y = array(
0,
1,
array('something')
);
$x = array('old_val');
print "1. inited, x is:\n";
print_r($x);
set($x, $y);
print "\n2. now, x is: ";
print_r($x);
Output:
1. inited,...