objects

Generate Report object in ssrs

I have a requirement of generating the rdl in runtime. so I converted the http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition xsd to class and I need to create object for Report class with that it has lot of classes. I am struggling in the report generation using objects I dont know how to assign values [System....

joining two 3D mesh objects

Hi All, Due to huge data amount, I want to form, separately, in two or more parts a 3D mesh object. And then, to be able to form the real 3D object, I shall join them in one part. Could you explain me by an example code how it can be done. Thanks in advance. Öner YILMAZ ...

PHP multiple MySQL connection though classes/objects?

Here's the code I'm trying to make work: <?php class database { var $connection; function database($host,$username,$password,$database){ $this->connection = mysql_connect($host, $username, $password); mysql_select_db($database,$this->connection); } function query($query){ $query = mysql_query($query,$this...

Javascript: constant properties

Hey, In javascript, can I declare properties of an object to be constant? Here is an example object: var XU = { Cc: Components.classes }; or function aXU() { this.Cc = Components.classes; } var XU = new aXU(); just putting "const" in front of it, doesn't work. I know, that i could declare a functi...

PHP: Implicit conversion to string instead of getting "Object ID #.."

I've moved to a new webhost were we have php 5.1 instead of 5.2 that I've been using until now. I still haven't figured out if it's a php version or configuration issue. Right now most (or all) of the classes that have __toString functions convert to "Object ID #" (like in php4) but before they all returned the correct values. How can ...

MSXML2.ServerXMLHTTP.4.0 Source?

Where does the object "MSXML2.ServerXMLHTTP.4.0" come from? Which install package? I'm attempting to do the following: Set oXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP.4.0") This attempt fails on my development machine (no object is returned) but it is successful on my collage's development machine. Obviously he has something inst...

How do you design your application for different presentation layers?

I am part of a team that is developing a web application using a proprietary mvc framework. This framework behaves a bit like a very poor man's struts! It has a central controller, configuration in properties file, torque like generated database action classes and no form beans. Say you have a user account editing screen, Here is a typ...

What's a good way to refactor a growing number of javascript/jquery functions?

I'm working on a project where we are doing a lot of custom javascript and especially jquery, on an mvc style project. The only problem is that I keep adding more and more global functions/variables and they are piling up. I've got a few files but I'm unsure how to split some of the stuff up into separate files. I've thought about co...

Is it possible to downgrade an object in objective c to its superclass?

If I have an instance of class B which is a subclass of class A, is there a way for me to turn my instance of class B into an instance of class A without explicitly writing code to do it? I do not mean simply downcasting with the standard c syntax. ...

A question on an example in PHP 5 in Practice

HI, I don't understand why the author of a php book used $disks = 1 in a public function __construct($disks = 1)? I tried to replace $disks = 1 with $disks only, it also worked. Why would author doing that? <?php // Define our class for Compact disks class cd { // Declare variables (properties) public $artist; public $title...

JSomething something = new JSomething().somethingelse;

I could swear I saw an object being created this way. What does somethingelse do? ...

How to explain an object?

It's been years since I thought of this, but I am training some real juniors soon and need to explain what an object is to someone who doesn't know what it is. Based on what you use in the real world, what are the key points of objects that I should focus on explaining. For example: Access Levels Inheritance Encapsulation Polymor...

What is the .NET object life cycle?

What is the object life cycle for an object in .NET? From what I understand it is: Object created - constructor called (if one exists) Methods/Properties/Fields used Object destroyed - Dispose called (if one exists) Destructor called by GC at some point ...

C# Class/Object visualisation software

In Visual Studio 2005 and prior you could export your code to Visio and view the relationships between the objects and what methods, properties and fields it had. This was great as it allowed you to tweak the appearance to improve the look. In VS 2008 that option is gone, replaced (supposedly) with the class diagram system. It is functi...

Fast method to read and store serialized objects with pointers and pointers to pointers in C++

I'm needing a fast method to read and store objects with pointers and pointers to pointers in xml files in c++ . Every object has it's own id , name , and class type. ...

Why is `self` in Python objects immutable?

Why can't I perform an action like the following: class Test(object): def __init__(self): self = 5 t = Test() print t I would expect it to print 5 since we're overwriting the instance with it, but instead it doesn't do anything at all. Doesn't even throw an error. Just ignores the assignment. I understand that there woul...

How to generate C++ Dynamic Objects names ?

I'd like to generate a number of objects (in C++) based on the amount/number the user enters. Now I've somewhere heard that it has to be done using pointer tricks, creating a pointer to an array of the Object type required, and then dynamically increasing the size of array ( at runtime ). Isn't there a workaround of directly using name...

VB.NET syntax for arrays of objects

What is the VB.NET syntax for declaring the size of an array of objects at runtime? To get an idea of what I mean, here is the code so far: Private PipeServerThread As Thread() Public Sub StartPipeServer(NumberOfThreads As Integer) ' ??? equivalent of C# ' ??? PipeServerThread = new Thread[numberOfThreads]; ' ??? goes he...

What JavaScript object copy function works with greasemonkey?

I know there is another question related to copying objects in JavaScript here, but the code they provide does not work with greasemonkey. From what I was able to trace, the code for the accepted answer dies/ stops at the line : var temp = new obj.constructor(); Is there any way to see what went wrong ? It's not really necessary I use...

Access javascript DOM objects in PHP

Hello, I have a javascript code helping me to dynamically create row after row in a table and to delete a row from that table. each row has four cells. cell 1 for instance contains a text zone. to differentiate cell1 from row 1 with cell1 from row 2, I rename my cell 1 like that cell1.name= cell1.name + '_' + row.rowIndex. I create a s...