reference

Classic ASP VBScript offline reference

I don't do a slew of VB in classic ASP, so I'm looking for an offline reference I can use while I'm well...offline. General syntax and ADO goodies are a plus! Thanks in advance! ...

Error when passing an object by reference .....

So I have a problem.... I've a method void MainWindow::loadItems(const ArticleStore& store) { } that I try to call like this inside the MainWindow class ArticleStore store(); loadItems(store) And I get this error mainwindow.cpp:15: error: no matching function for call to ‘MainWindow::loadItems(ArticleStore (&)())’ mainwindow...

How do I access a string-indexed element of a PHP array?

I have the following array (in php after executing print_r on the array object): Array ( [#weight] => 0 [#value] => Some value. ) Assuming the array object is $arr, how do I print out "value". The following does NOT work: print $arr->value; print $val ['value'] ; print $val [value] ; So... how do you do it? Any insight i...

Catching exceptions polymorphically

Here is main(): int main() { B b(1,"two","three"); try { f1(b); } catch(B& b_ref) { cout<<"Caught B&"<<endl; b_ref.print(); } catch(A& a_ref) { cout<<"Caught A&"<<endl; a_ref.print(); } system("pause"); return 0; } Here is f1(): void f1(A& subjec...

codebehind cannot reference the page controls

Hi, I have controls in ascx file but i can't see them in intellisense in .cs file.It was working nice before. I can see the control names in designer.cs file. I have deleted the Asp.net temp files in AppData folder but still not working.The other user control files in the app can reference coerrectly to it's page controls. What is the ...

Need reference for ASP.net MVC View-markup syntax...

I'm getting started with .NET MVC. I have experience with C# and I'm getting confortable with controllers and models. I'm however not very knowledgeable when it comes to writing views. I'm struggling to find a good reference on the matter. Available code samples are usually simple and oriented towards demonstrating the overall MVC m...

Java Generics for C# Gurus

Are there any good quick reference guides out there (preferably online) for Java Generics from the perspective of someone with complete understanding of C# Generics? I find that the syntax is so similar that I expect it to just work and then I run into unfamiliar Java syntax like this: Class<?> foo; which I thought was similar to the ...

Constructor with references not properly assigning??

I'm trying to write a simple color class that's supposed to be as versatile as possible. Here's what it looks like: class MyColor { private: uint8 v[4]; public: uint8 &r, &g, &b, &a; MyColor() : r(v[0]), g(v[1]), b(v[2]), a(v[3]) {} MyColor(uint8 red, uint8 green, uint8 blue, uint8 alpha = 255) : r(v[0]), g(v[1]), b(v[2]), a(v[3]) { ...

What is a good asp.net (NOT MVC!) reference application for a beginner?

I'm looking for a good asp.net webforms reference application. We have some developers with VB6 experience, but no web application experience. I'd like to provide them with a couple of example apps that make use of a few simple forms, some user controls, db access, etc. An application that made use of a separate project for classes w...

How do I reference an assembly once for all projects in a solution

I have several solutions, each containing multiple projects, that all need to reference a single assembly, say, lib.dll. This contains common classes and functionality which needs to be accessed between all the solutions; and I can't bring all the projects into one solution as my manager wants to be able to use different versions of li...

Postgres: Unique reference from A to B

I want a bijection between the pair (tag1, tag2) and tag_id. CREATE TABLE tags ( question_id INTEGER NOT NULL, tag_id SERIAL NOT NULL, tag1 VARCHAR(20), tag2 VARCHAR(20), PRIMARY KEY(question_id, tag_id), (tag1, tag2) UNIQUE references tags(tag_id) #How? ); I want no ...

Reference of similar functions between Programming Languages

I'm wondering is there is a compiled knowledge base of similar functions or functionalities between several programming languages. The reason I'm asking this question is due to the fact that one is learning a new programming language and has extensive knowledge of another, it's often difficult to know or imagine the correlation of functi...

most popular j2ee based websites

J2EE as I understand is used to build Enterprise applications. My question is :What are the most popular public facing(internet) sites using j2ee stack. The one's that I know of are : linkedIn.com ,evite.com and sun ibm and oracle (obviously) Eclipse.org uses php, I wonder why? If you have worked on/know any other sites, can your s...

Is PHP's extended CHM manual gone?

Where can I find an updated version of the extended PHP manual (with user comments) for download? The usual URL redirects to the general docs download page, was this version discontinued? ...

Fluent nHibernate: How to map 2 tables with no primary keys defined

I have a legacy system where the relationship between 2 tables haven't been defined explictly and there aren't any keys (primary or unqiue defined). The only related columns is 'Username' Something like: Table: Customer Column: Id, Column: Username, Column: FirstName, Table: Customer_NEW Column: Username Column: FirstNameNew I have ...

basic pointer question in c++ program

I looking for a clarification regarding the pointers. I have compiled the following code in bordland c++ 5.5.1 without any errors. But while i am trying to execute gives a core error. int main () { int x=10,y=20; int &a=x; int &b=y; int *c; int *d; *c=x; *d=y; return 0; } Basically I am trying to ...

What is the #1 best example of Technical Documentation that you have ever seen? What was it that made it so effective for you?

I am of the opinion that the quality of the documentation of a language (programming language, API, Harware/Technical specification etc) has a direct correlation with the long-term popularity of that language. Good documentation can not only provide an 'all-in-one desk reference'-type resource for developers but also help to build a com...

Sharing objects

Imagine that I have a nice Deck class, in the best OO fashion. It has Cards, which have a Suit and a Rank, it has a Shuffle method, and so on. Now, I'm going to have a lot of concurrent instances of Deck (say this is a casino). The question is: Should there be a different instance of every card across all the decks? ...

Iphone: NSInvocation changes references of arguments?

I'm trying to set up an NSinvocation to upload a picture to a website. I'm doing this: Set up the nsinvocation object Add a UIImage* to the nsinvocation object as an argument, along with some other arguments invoke the nsinvocation when needed the function called when I invoke nsinvocation can't access the UIImage- I get NSInvalidArgu...

What is the best reference material on WPF custom controls

I currently do all development work in VB.NET 2008, winforms; but within 18 months will be switching to WPF (for better or worse). I have had great success using Matthew MacDonald's "Pro .NET 2.0 Windows Forms and Custom Controls in VB 2005" book. This is an excellent reference focused entirely on the development of custom controls in ...