reference

how can I create a reference to a variable in specman?

I have the following code in specman: var x := some.very.long.path.to.a.variable.in.another.struct; while (x == some_value) { //do something that uses x; //wait for something //get a new value for x x = some.very.long.path.to.a.variable.in.another.struct; }; Now, it seems wasteful to write the assignment to x twice; ...

Adding web reference on client when using Net.TCP

Hi everyone... I am trying to using Net.TCP in my WCF Service, which is self hosted, when i try to add this service reference through web reference to my client, i am not able access the classes and methods of that service, can any have any idea to achieve this... How I can add web references in this case. My Service has one method (Get...

.net reference specificversion true or false ?

We are two companies who are working on the same project, in the same application. We exchange weekly base only our assemblies (not the code) and making reference on each other dll.We would like to know what is the best practices regarding the specificversion when adding reference to our project. Simply in what case should we use a speci...

Available fields for ADSI Linked in SQL Server

We currently have a View that queries active directory info. I was wondering if there was a good reference as to what fields (field names) are available in AD for me to query against. I don't have access to Active Directory so I can't go playing around in there to maybe figure it out myself. Any help would be appreciated. ...

Referencing shared DLLs in VS Deployment project

I write programs used internally by our company. I've created several support DLLs that I reference in many projects. (a generic data access helper for example) Instead of having a copy of "datatools.dll" in every program directory (seems to be default behavior) I would like to have one copy that can be referenced by many programs. Kinda...

Version independent reference dependencies in managed class libraries

I'm working on an appender for log4net and I'm faced with the problem of how to manage dependencies on the log4net version my class library is built against vs. the actual version deployed on the site. My class library has to reference log4net dlls and as such it becomes tied to the version I'm referencing at built time. However, the sit...

Custom-typed Reference members in C++ - initialising them

Hi all, this snippet of code is given me headache. Personally, I would like to use reference as they are neater compared to pointer, so I tried this: include "SomeClass.h" class FooBar { private: SomeClass& member_; public: FooBar() : member_(SomeClass()) { }; } I have read that you need to assign a temp variable to...

Can I pass parameters by reference in Java?

I'd like semantics similar to C#'s ref keyword. ...

Is string a value type or a reference type?

I just can't find a "good" explanation for this... ...

C# reference to loop variable

Hello, Is it possible in C# to something like the following foreach (ref string var in arr) { var = "new value"; } so that var variable was treated as reference and assigning to var would change an array element? ...

c++ * vs & in function declaration

Possible Duplicate: Difference between pointer variable and reference variable in C++ When should I declare my variables as pointers vs objects passed-by-reference? They compile to the same thing in assembly (at least run-time asymptotically) so when should I use which? void foo(obj* param) void foo(obj& param) ...

XML element hierarchy referencing

I'm looking through possible representations for what can be considered a finite depth graph in XML format for data exchange purposes. The problematic point is how to reference nodes in edge tags. Two strategies I see are a) using unique identifiers or b) using paths. Unique IDs: <graph id="g0"> <node id="n0"/> <node id="n1"/> <...

Reference Java DLL in C# Assembly?

There are instructions here to create a C# assembly using the SimMetrics library. The link they provided to this library is at SourceForge. It looks like the most recent version of the SimMetrics library was created in Java. Is it possibly to compile a java DLL and then reference it in C# to be used as an assembly in SQL Server 2008? ...

WeakReference implementation in .NET

I understand and appreciate the usefulness of the System.WeakReference class in the .NET framework, but am curious as to the implementation details. How is WeakReference implemented in .NET? MSDN discusses the usage of WeakReference in detail, but has little details that I've seen on how this works under the hood. How does the CLR t...

C# string reference type?

I know that "string" in C# is a reference type. This is on MSDN. However, this code doesn't work as it should then: class Test { public static void Main() { string test = "before passing"; Console.WriteLine(test); TestI(test); Console.WriteLine(test); } public static void TestI(string t...

Return values with reference arguments or by structure

In what situtations is it best to use reference arguments to return values? Sub Example(byref value as integer) value = 3 End Sub In what situations is it best to return the value (perhaps in a structure for more complex types)? Function Example() as integer return 3 End Function ...

Adding a Visual Studio reference to a product under source control

As an example, I'm trying to add a reference to WatiN in Visual Studio 2008. I download WatiN and I have a folder on my desktop containing 5 files: WatiN.Core.dll WatiN.Core.xml Interop.SHDocVw.dll Microsoft.mshtml.dll WatiN.Core.UnitTests.dll WatiN.Core.UnitTests.dll.config I can add my reference to WatiN.Core.dll and start coding ...

Is there a free online reference of frequently used regular expressions?

I am looking to match some standard strings like dates, SSN, IP addresses etc. Is there a free online repository of regular expressions to match some of these commonly used strings? ...

(Rails) How do I reference resources from non-restful views...?

Hi All, How do you ensure that your javascript includes get included properly for all files everywhere using a particular layout? Basically I have some non-restful actions that I've added. I haven't added any ROUTES for them, however, using normal text rendering works fine. It's when I start requiring different "swf" and "js" files (...

What do the square brackets signify in following push syntax in Perl?

I came across this syntax while reading a script. I am not sure what is the use of square brackets. push @data, [ split //, $line ]; #printing this array gives crap values Or to put into other words what is the difference between the above and the following? push @data, (split//, $line); #printing this gives actual values Any sugg...