references

How do I make Visual Studio automatically add references when I add a project to the solution?

Programming is (so far) just a hobby for me, so I try to find ways to improve, learn some basic algorithms and programming skills that might come in handy in the future. Currently I'm working my way though Project Euler and solving the puzzles there. I'm working in C#, and have set up a solution named ProjecEuler in which I add one new ...

What does "cannot convert 'this' pointer from 'const hand' to 'hand &' mean? (C++)

The error occurs when I try to do this friend std::ostream& operator<<(std::ostream& os, const hand& obj) { return obj.show(os, obj); } where hand is a class I've created, and show is std::ostream& hand::show(std::ostream& os, const hand& obj) { return os<<obj.display[0]<<obj.display[1]<<obj.display[2]<<obj.display[3]<<obj.di...

visual studio.net dll reference problems

Hello, We have several c# projects, libraries and solutions (a few asp.net applications, a few class libraries, windows applications like windows services and winform apps. etc.) which most of them depends each others output dlls. Some of our projects are grouped into solutions and they use project dependency. But some projects are not...

Reference Name case is not CLS Compliant

I have a .NET 3.5 C# project that has a namespace of "SampleNamespace.Tools.Sample" If i add an assmebly called "Samplenamespace.Utils.Example" to my project i get the following warning. "Identifier 'Samplenamespace' differing only in case is not CLS-compliant" Note the lower case 'n' in Samplenamespace. I'm not even using the refe...

Flex Project Structure

I am trying to create a large flex project. This Project consists of a CORE application, and other sub-applications. The CORE application should contain information that will be shared by all other projects (e.g., link to database, data manager which loads data from the database, application information like height width colors fonts......

Checking for the existence a reference/type at compile time in .NET

I've recently found the need to check at compile-time whether either: a) a certain assembly reference exists and can be successfully resolved, or b) a certain class (whose fully qualified name is known) is defined. These two situations are equivalent for my purposes, so being able to check for one of them would be good enough. Is there a...

In YUI, is there a way to reference the tab or tabview objects from the DOM?

It seems like there should be, but I've looked over the API and nada. I don't see how it's done in 2.x. Currently, I store references with the elements to the tab and tabview objects via jQuery's data method. The why: When I interact with the tabs via mouseovers and clicks, I need to be able to reference the YUI tab/tabview objects' pr...

Project Reference Vs File Reference?

References can be added in two ways in a project. Project Reference. File Reference. But, When to use Project and when to use File reference? ...

C# dll version conflict

I have a project like this: Test Solution Project TestApplication References: TestFunctions.dll(ver 1.0.0.0),Project TestDLL Project TestDLL References: TestFunctions.dll(ver 1.0.0.1) In the application when i make a call to TestDLL.Methodx() inside it calls TestFunctions.HelloWorld() but it gives a MissingMethodException because T...

Two classes that refer to each other

I'm new to C++, so this question may be basic: I have two classes that need to refer to each other. Each is in its own header file, and #include's the other's header file. When I try to compile I get the error "ISO C++ forbids declaration of ‘Foo’ with no type" for one of the classes. If I switch things so the opposite header gets pa...

VS2008 Prefers GAC reference to Assemblies in Solution Folder

I am using some 3rd party libraries in my solution and have saved these in a separate source-controlled folder called 3rdParty. I have added references to the DLLs in this folder from the VS2008 IDE. However, I find that after saving, closing and opening the solution, the references have been changed to point to the assemblies in the GAC...

XCode Different Resources For Different Targets

Hi. I am developing an iPhone app and there will be a Full as well as a Lite version of that app. In order get both bundles from the same source code and xcode project I added another target to the xcode project. Now, I want to have the Lite target copy only a subset of the resource files to the bundle. But, xcode won't simply let me d...

How can I play a flashmovie which is in my references? (C#)

My program works, except I want to take a flash movie out of the references, not from an external location. The FlashObject.Movie requires a string location though, and I don't know how to do this. Any ideas? This should be possible I think. ...

In Perl how do you dynamically pick what method to use as a callback?

In Perl, it's pretty trivial to specify a callback or code reference if its package is known: package Foo; sub foo { print "in foo" } # and then package main; sub baz { my $code = shift; $code->(); } baz( \&Foo::foo ); And this prints in foo. Lets say you have an object, ever so trivial, like this: package Foo; sub new ...

Reference-type conversion operators: asking for trouble?

When I compile the following code using g++ class A {}; void foo(A&) {} int main() { foo(A()); return 0; } I get the following error messages: > g++ test.cpp -o test test.cpp: In function ‘int main()’: test.cpp:10: error: invalid initialization of non-const reference of type ‘A&’ from a temporary of type ‘A’ test.cpp:6: er...

How can I copy an item from references to disk? (c#)

For example, I have a flash movie in my references. How do I copy this to a location outside of the application? ...

How to get a previous revision of an assembly from an open source project

I want to make use of Castle.Facilities.Logging.dll, however getting the latest version from the trunk causes problems with my already referenced version of Castle.MicroKernal. Specifically, the error message is: "Assembly 'Castle.Facilities.Logging, Version=1.0.3.0, ...' uses 'Castle.MicroKernel, Version=2.0.0.0, ...' which has a highe...

VS.NET - Multiple Find All References Result Windows?

Visual Studio has a "Find All References" tool that is great in navigating the codebase to find out where a function is called or where a variable is used. When navigating a large code base, I tend to do find all references multiple times to find the top level of where a function is called. Imagine we have the following: A1() calls B1(...

problems with shared project in netbeans

Hi I work with my student group on a project : We have some problems sharing our project. There are 2 files that we have to modify everytime : project.properties private.properties The Problem is, that we use librarys and they are relative paths to our hard drives. so when we check out : we have to modify these files to get the pro...

.NET Multiple Class Library in One Library

I am working in VS2008. I have a custom class library (CL1) which references another custom class library (CL2). This ends up having CL1 and CL2 in my release folder. Now the consumer of CL1 needs to include two dll's in the project which I think is not appropriate. I have strong feeling that there must be a way to achieve a single DLL s...