object

What may cause losing object at the other end of a pointer in c++?

EDIT: I have found the error: I did not initialize an array with a size. question can be closed. I have a class V, and another class N. An object of N will have an array of pointers to objects of class V (say V **vList). So, N has a function like V **getList(); Now in some function of other classes or simply a driver function, if I ...

problem in getting value of the object attribute in flex

i have an xml which contains 'interface' sub tag, iam converting xml to object using SampleXmlDecoder. compiler did not allow me to access the value of the 'inteface' attrible of the resultobject. var xml:XML = event.result as XML; var xmlDoc : XMLDocument = new XMLDocument(xml.toString()); var decoder : SimpleXMLDecoder = new SimpleXM...

web services/object-oriented question

Hi, I just recently started with object oriented programming, using java. Before I was programming in old visual basic which wasn't object oriented and in old php which wasn't object oriented .. Now my question : Where can I learn about webservices and object oriented programming through concrete examples? (real life examples not hello...

PHP object Singleton not working

Hi I am programming a website backend in PHP and I need to encapsulate $_SESSION in a class. I've made my Session class a singleton but I am having trouble using it. class Session { private static $instance; public static $sessionID; private function __construct() { session_start(); self::$ses...

C#: Are nullable types (int?) objects?

I understand from this post that value types in C# are not objects. That is, they do not inherit from System.Object. Assuming my logic holds up to this point, are nullable types, such as int?, objects. Do they inherit from Object? If so, are they subject to all the same rules and constraints as other objects, or are there special rul...

Oracle type compare

Hi all Oracle & objects: I have a table that contain more than one type of object (by using inheritance),but i want to know the actual type of each (using loop and ?). Is there a function like isInstanceOf() here? plz provide an example Thanks in Advance ...

PHP: How to instantiate a class with arguments from within another class

Hello All, I am in a situations where i need to instantiate a class with arguments from within an instance of another class. Here is the prototype: //test.php class test { function __construct($a, $b, $c) { echo $a . '<br />'; echo $b . '<br />'; echo $c . '<br />'; } } Now, i need to instantiate above class using below cla...

sql COUNT function returns an array instead of mysqli object?

I want to count some rows in my database and I'm using the following code: $tagname = Person; $query = "SELECT COUNT(thread_tag_map.tag_id) AS tagcount FROM tags, thread_tag_map WHERE thread_tag_map.tag_id = tags.id AND tags.name = '$...

Sitemap webpart based on user permissions using object model

Hi All, I have requirement to create a custom sitemap webpart. The webpart should have a misc field in the edit pane where we could set the number of tiers or levels of childnodes. Here the sites in the sitemap should be displayed based on the permissions of the user who have logged in. Your help would be highly appreciated. ...

Embedding Content (iframes) with an HTML 4.01 doctype?

I have some existing code that I have been tasked with upgrading to a valid doctype of HTML4.01 strict. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; In the code I've come across an <iframe>, and this does not sit well with the w3 validator. <iframe OnLoad="javascript: LoadAddAtt...

Convert Array to Object PHP

How can i convert an array like this to object? [128] => Array ( [status] => Figure A. Facebook's horizontal scrollbars showing up on a 1024x768 screen resolution. ) [129] => Array ( [status] => The other day at work, I had some spare time ) ) ...

LINQ to SQL equivalent for XML file persistence.

Microsoft has made saving objects very easy with their LINQ to SQL mapping. However, I would sometimes like something a little more lightweight, i.e. the ability to save objects to a file when an application closes, and read them back in again. XML seems like a natural data format rather than inventing a new data format. (Of course, on...

Javascript getElementById acting odd...

I'm using a for loop to cycle through some elements with a starting value (seats on a plane). Here it is: seatNum - Number of seats to be cycled through startSeat - seat to begin cycling I'm calling the function from a form "onsubmit". The problem comes in the for loop when i try and go get elements with an id naming convention of "s1...

Javascript splice not splicing

tl;dr; Even without my explanation one can look at the code below and the output and see something is fishy. Splice returns the index it spliced but the data remains in the array. So I have an object that's keyed almost like an array (0,1,2,3...etc). Each object key has an array value. The array is an array of objects. Here's a simp...

Passing objects/references as function parameters

EDIT: Language is PHP. So, I'm implementing a listener/observer pattern. One of the objects I implemented was an object for including files. Which works in a way like this: class IncludeEvent extends Event { protected $File = ''; public $Contents; .... public function Begin() { .... // this is the ONLY t...

Using SubSonic, how to add a field to a pre-defined class?

I've got a SubSonic DAL - works great. Two classes: TblReceipt and TblReceiptLineItems. I can create a parallel class of TblReceipt, but seems like a waste, so here's what I need to do: Have a Class TblReceipt with one additional member, "ReceiptLineItems" - which is simply an ArrayList. This array list will be populated with TblRec...

What is this method of element instantiation called?

Whenever I create a UIElement in code behind, I'd do something like this: Button button = new Button(); button.Content = "Click Me!"; But then I saw this syntax somewhere, and wanted to know what it's called. I haven't ever seen it used in any of my .NET books: Button button = new Button { Content="Click Me!" }; This is obviously ...

Dynamics AX 2009 - Duplicate IDs

We are in the process of merging projects from different AX Servers into source control on the same AX server. However, a few object IDs are common between projects, so Dynamics throws an error when synchronizing: e.g. "BaseEnum ABC_123 can not be imported because XYZ_546 already has ID 30001" What is the best/correct way to change ...

Get object by its Uid in WPF

Hello, I have an control in WPF which has an unique Uid. How can I retrive the object by its Uid? Thanks in advance Jose ...

MYSQL stored procedure accessing java object stored as a BLOB.

I am storing a Java object as an byte in a blob of a table. The java object is customized object. How can I construct the java object and use it in the stored procedure? ...