references

Visual Studio 2008 doesn't create *.refresh files for external DLL references... what am I missing?

Hi all-- I've got a question about something that's just been irritating me. A colleague and I are building a support framework for our current client that we want to reference in other projects. The DLL we want as a reference in our project would be an external reference. We're adding it by doing "Add Reference...", then browsing to t...

How to use references, avoid header bloat, and delay initialization?

I was browsing for an alternative to using so many shared_ptrs, and found an excellent reply in a comment section: Do you really need shared ownership? If you stop and think for a few minutes, I'm sure you can pinpoint one owner of the object, and a number of users of it, that will only ever use it during the owner's lifeti...

Where should I store referenced DLL binaries in my visual studio solution

When writing programs (C#.NET) I'll commonly use external libraries I've downloaded from various websites such as custom WinForm controls, or other libraries. Even if the source is available I usually prefer to reference the compiled DLL files rather then create another whole project in my solution for the 3rd party library or control. ...

MSBuild: building website using AspNetCompiler - adding references?

Hi, I'm attempting to build a ASP.NET website using MSBuild - specifically the AspNetCompiler tag. I know that, for my project, I need to add some references. Within Visual Studio I have several references, one is a project reference and the others are some DLLS (AjaxControlToolkit etc). I'm happy not referencing the project and referen...

How can I pass a hash to a Perl subroutine?

In one of my main( or primary) routines,I have two or more hashes. I want the subroutine foo() to recieve these possibly-multiple hashes as distinct hashes. Right now I have no preference if they go by value, or as references. I am struggling with this for the last many hours and would appreciate help, so that I dont have to leave perl ...

Do you have references issues with Visual Studio 2008 and C#.Net?

I'm working on a project and it seems that every time someone checks out the project from source control to build it on their local box they have issues building because references are no longer resolved. I can't figure out if it's a configuration issues or a Visual Studio 2008 issue. Is anyone else having this problem? If so, is there ...

Difference between boost::ref and regular references

What is the difference between boost::ref(i) and & i ? What are the situations where we cannot use regular references and have to go for boost::ref instead? Please include examples if possible. ...

VS2008 VB project - Changing application type automatically adds references

Visual Basic Create a new project with the Empty Project template (Visual Basic -> Windows) Go to the project properties, and change the Application type by choosing something else or reselecting Windows Forms Application. When reselecting, Visual Studio will automatically add references to System.Deployment, System.Drawing and System...

How to configure reference to be deleted on parent table update?

I have two tables: info: ID, fee_id and fee: ID, amount and a reference between them (SQL Server 2008): ALTER TABLE info WITH CHECK ADD CONSTRAINT FK_info_fee FOREIGN KEY(fee_id) REFERENCES fee (ID) ALTER TABLE info CHECK CONSTRAINT FK_info_fee GO How to configure this reference that way so a record in fee will be deleted if inf...

Is writing a reference atomic on 64bit VMs

Hi The java memory model mandates that writing a int is atomic: That is, if you write a value to it (consisting of 4 bytes) in one thread and read it in another, you will get all bytes or none, but never 2 new bytes and 2 old bytes or such. This is not guaranteed for long. Here, writing 0x1122334455667788 to a variable holding 0 before...

C++ Return by reference

Say, i have a function which returns a reference and i want to make sure that the caller only gets it as a reference and should not receive it as a copy. Is this possible in C++? In order to be more clear. I have a class like this. class A { private: std::vector<int> m_value; A(A& a){ m_value = a.m_value; } public: A() {}...

Conditional references in .NET project, possible to get rid of warning?

I have two references to a SQLite assembly, one for 32-bit and one for 64-bit, which looks like this (this is a test project to try to get rid of the warning, don't get hung up on the paths): <Reference Condition=" '$(Platform)' == 'x64' " Include="System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, p...

Visual Studio reciprocal reference

Is that a problem if a solution contains many projects and there are some cases when: Project A references Project B Project B references Project A ...

C# Implementing a custom stream writer-esque class

How would I go about writing my own stream manipulator class? Basically what I'm trying to wrap my head around is storing the reference to the underlying stream in the writer. For example, when writing to a memory stream using a StreamWriter, when a Write() is made, the underlying memory stream is written to. Can I store the referenc...

.Net installation issue with SqlServerPipelineHost and SqlServer.DtsMsg

I added a web service consumer to a vb 2005 Windows app and tried to install it on another computer, which had an earlier version already installed (ClickOnce deployment). An error came up saying I needed to install Microsoft.SqlServer.PipelineHost in the GAC. I added PipelineHost to the list of references and marked it Copy Local = true...

Is it possible to use a string variable to reference an element in Javascript?

Here's the quick version of the code as it stands right now: function foo(attributeName, someJSObj, key, newValue) { someJSObj[key].attributeName = newValue; } Obviously this doesn't work, since it just creates a new element called attributeName. Is there an easy way to dereference the attributeName into the string that represent...

Database design: circular references

I have three database tables: users emails invitations Emails are linked to users by a user_id field. Invitations are also linked to users by a user_id field Emails can be created without an invitation, but every invitation must have an email. I would like to link the emails and invitations tables so it is possible to find the ema...

Matching .NET References to Namespaces

This seems confusing to me - im creating a class library, and adding all the necessary references for the source files contained in it. Now, off the bat, there were over 300 compiler errors complaining about missing namespaces. The library will now compile after i just added all of the System.* references, however this is obviously not ...

How can I determine if an object or reference has a valid string coercion?

I've run into a situation (while logging various data changes) where I need to determine if a reference has a valid string coercion (e.g. can properly be printed into a log or stored in a database). There isn't anything in Scalar::Util to do this, so I have cobbled together something using other methods in that library: use strict; use...

What is the the best way to install .NET reference assembly folders in 64 bit

Installing reference assembly folders in 32 bit is straightforward: 1 Copy your files in ProgramFiles\MyApp 2 Add a registry key HKLM\Software\Microsoft.NETFramework\AssemblyFolders*MyApp* pointing to ProgramFiles\ MyApp But things fall apart in 64 bit. First, the msi installs into program files (x86) instead of program files. Secon...