What exactly is wrong with referencing both System.Web and System.Windows.Forms in my class library?
For example, library could contain some code which needs to reference Web or WinForms-specific classes.
...
I am trying to optimize some arithmetic by using the MMX and SSE instruction sets with inline assembly. However, I have been unable to find good references for the timings and usages of these enhanced instruction sets. Could you please help me find references that contain information about the throughput, latency, operands, and perhaps s...
I've been searching everywhere and there seems to be very little about Zen Cart... at least anything much deeper than "install and go". I'm skinning (templating) a Zen Cart store, but the design I want doesn't fit in with the current layout, so I've had to make extensive changes to tlp_header.php, tpl_footer.php, tlp_main_page.php, etc.
...
In the following Perl code, I would expect to be referencing an array reference inside an array
#!/usr/bin/perl
use strict;
use warnings;
my @a=([1,2],[3,4]);
my @b = @$a[0];
print $b[0];
However it doesn't seem to work. I would expect it to output 1.
@a is an array of references
@b is $a[1] dereferenced (I think)
So what's the...
Consider three django models: AA, BB and CC.
AA has an M2M reference to BB and BB has an M2M reference to CC.
I have a single instance of AA. How do I execute a filter() QuerySet over the set of CC instances that are M2M related the the BB instances that are M2M related to that single AA instance?
...
After reading through the MSDN article How the Runtime Locates Assemblies and also reading this, I am still unsure about how weakly named assemblies are resolved at runtime.
Eg. if I have a reference to some dll file in my project, I compile and deploy, will it pick up a new version of the referenced dll file if I just replace the old o...
Hi, All
I have two entities:
public class A : EntityWithTypedId
{
Guid UniqueIdentifier;
IList<B> Children;
}
public class B: EntityWithTypedId
{
A Parent;.....
}
I want to make the reference using the Guid column not the primary key
Id (so I will have in the B table UniqueIdentifier not A_id).
I can't make it to work for ...
I have some JavaScript/jQuery code that watches for the "changed" event on a checkbox:
$(control).change(function() {
alert("changed to: " + $(this).is(":checked"));
});
This works fine.
I'd like to create a reference to the change() function on the particular object, and call it indirectly, like so:
var onSomeChange = $(control...
I'm trying to create a reference based linked list anyone would be able to provide me an example of it??
...
I am trying to understand how to assign by "reference" to a class field in c#.
I have the following example to consider:
public class X
{
public X()
{
string example = "X";
new Y( ref example );
new Z( ref example );
System.Diagnostics.Debug.WriteLine( example );
}
}
public class Y
{
public Y( ref stri...
I have a WPF .NET 4.0 class library referencing a Silverlight 4 class library.
The SL library compiles fine but when I compile the WPF class library, I get:
Error 2 Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been ...
Possible Duplicate:
How do I assign by reference to a class field in c#?
Hello everyone - tell me how to make this work? Basically, I need an integer reference type (int* would work in C++)
class Bar
{
private ref int m_ref; // This doesn't exist
public A(ref int val)
{
m_ref = val;
}
public void A...
So I have a class like this:
def Word
end
and im looping thru an array like this
array.each do |value|
end
And inside that loop I want to instantiate an object, with a handle of the var
value = Word.new
Im sure there is an easy way to do this - I just dont know what it is!
Thanks!
...
Hi all,
In Visual Studio 2010, I have project A (asp.net application). Project A references project B (class library). Project B references assembly C (direct reference to a DLL).
When building project A, only project A and project B binaries are present in the /bin directory of project A, but not the assembly C. Why is that? If projec...
Hi All,
I think most would be surprised about the topic again, However I am referring to a book "C++ Common Knowledge: Essential Intermediate Programming" written by "Stephen C. Dewhurst".
In the book, he quotes a particular sentence (in section under Item 5. References Are Aliases, Not Pointers), which is as below
A reference is ...
Hi
Im trying to add a reference to a dll i downloaded which I want to use for some sftp work.
as soon as i add it i get
"could not load file or asse3mble....failed to grant minimum permission requests"
Is this to do with my own account permissions?
thanks
DD
...
Hi all,
I am passing some weakrefs from Python into C++ class, but C++ destructors are actively trying to access the ref when the real object is already dead, obviously it crashes...
Is there any Python C/API approach to find out if Python reference is still alive or any other known workaround for this ?
Thanks
...
I am trying to consume a WCF service in a class library by adding a service reference to it. In one of the class libraries it gets consumed properly and I can access the client types in order to generate a proxy off of them. However in my second class library (or even in a console test app), when i add the same service reference, it only...
I have a Visual Studio solution containing two web applications.
I would like the first to depend on the second (pages in the first may contain links to, or possibly post to pages in the second).
Furthermore, I would like to be able to launch the first project on a development server (standard debugging procedure for web apps in VS) an...
I have a bit of a memory leak issue in my Flex application, and the short version of my question is: is there any way (in AcitonScript 3) to find all live references to a given object?
What I have is a number of views with presentation models behind each of them (using Swiz). The views of interest are children of a TabNavigator, so when...