object

Assign VB6 Variant into an Object

I have a VB6 application that uses a C# compiled Dll. I have been successfull in making this work by means of COM. But my problem is that I have a Variant array with String and Double data types inside it. I need to pass this array to my C# Dll, which is receiving the array as an Object. So, all I need to do is to convert the Variant arr...

How to send an Object from one computer to another?

I know that the Java can use the Socket Programming to send an Object. Apart from socket programming, anything other way to do it? ...

how does the hashCode() method of java works ?

Hello I am curious how java generates hash values by using hashCode() method of the Object API ? ...

Simple mechanism to transform dataobjects into HTML in ASP.Net.

Hello. I am looking for a mechanism to transform dataobjects into HTML. The elements in the dataobject are of both, simple and complex types. I have tried playing with HtmlTextWriter for rendering but got stuck with complex types. Mine is an ASP.Net website project. I have to avoid using server side controls (and therefore do away wit...

Object Oriented application problems in game development.

I'll be as direct as I can concerning this problem, because there must be something I'm totally missing coming from a structured programming background. Say I have a Player class. This Player class does things like changing its position in a game world. I call this method warp() which takes a Position class instance as a parameter to mo...

VB.NET Single object instance only

VB.NET: What is the best way to ensure that a particular object may be instantiated only once during program execution? ...

In python is there any way I can obtain the arguments passed to a function as object ?

I don't want to use *args or **kwargs since I can't change function declaration. For example: def foo( a, b, c ) """Lets say values passed to a, b and c are 1,2 and 3 respectively""" ... ... """ I would like to generate an object preferably a dictionary such as {'a':1, 'b':2, 'c':3} """ ... ... Can anyone suggest a way...

Object (string or array) NAME. how to get it?

I need a prototype done in this way: Array.prototype.getname=function(){ [...]return arrayname; } So I can: z=new Array; alert(z.name); and I should have "z" in the alert. I'm working on Chrome and caller/callee seem to return empty. ...

Possible to store string and integers in one object

Is it possible to store a string and 11 integers in the same object. Thanks, Alex ...

pass a jquery object from one plugin to another

Hi, I am trying to create an html element with one jquery plugin then pass the jquery object created to another plugin for more modifications. for example : 1 plugin would create the object the second one would add css ( i know this isnt the best way to do things) but a 3rd plugin calls the first one then the second one. I hope my descri...

Built-in method for finding a specific instance of an object in PHP?

I really am clueless when it comes to object-oriented programmings, so forgive me if this is obvious... I am using a Zend extension which returns a request as a nested object. I need property a based on if the object has property b. Right now I am using a foreach loop with a conditional to search for property b and, if I get a match, se...

F# Type Inference and System.Object

Hi I have a problem getting the following code to work. open System open System.ComponentModel open System.Threading let triggerEvent (state : Object) = Console.Write("Do Something.") let asyncContext = AsyncOperationManager.CreateOperation(null) asyncContext.PostOperationCompleted(triggerEvent, null) I get an error, that triggerEv...

Object and nested datalists

I am having trouble displaying my object in a datalist. My object loks like this: public class Course { private string courseName; private DateTime[] courseDates; public string CourseName { get { return courseName; } set { courseName = value; } } public DateTime[] CourseDates { get {...

1020 undefined property right after associative array defined via var

Hello, I'm really frustrated in this case. While developing with Adobe Flex, I'm working on my first application - and use pretty much actionscript. In my mxml application, I include as3 file via <mx:Script source="as/myas3file.as></mx:Script>. In myas3file.as, I include (thru include "variables.as";) file variables.as, which contai...

javascript save dynamic object in someplace for resuse byother methods later on!

i want to save javascript object in a place, so if selected row is getting trigger, i can use that row object again by different methods. maybe saving it in input hidden field can work? but not sure.. how would you do it? im trying to do following, but that dont work, obviously my code is wrong, but i want to show you, so you can maybe...

Determining a PHP object's name.

In Java (well, Android's version at least) all objects have a getClass() method which returns the object's class and you can then call getSimpleName() to get the human-readable name of the object. This is great for logging. I'd like to be able to do something similar in a PHP program I've been working on. Is there any way to find out wha...

Unable to cast from object array to a string array

This is my function. public Dictionary<string, string> ArrayToDictionaryConverter(object [] objArray) { string[] strArray = new string[objArray.Length]; strArray =(string[])objArray; Dictionary<string, string> dictionary = null; try { dictionary = new Dictionary<string, string>();...

Get json values...

Hi, I have search and search the web and also on here.. for loops and all sorts for ways to access a json object like so: [ { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" } ] I want too loop through them an...

getting items from a SimpleXMLElement object

From what I can tell, a SimpleXMLElement is just an array of other SimpleXMLElements, plus some regular array values if there wasn't a tag nested in another tag. I have a SimpleXMLElement in a variable $data, and var_dump($data) gives me this: object(SimpleXMLElement)#1 (33) { ["buyer-accepts-marketing"]=> string(4) "true" ... ... ...

C++/SDL 'void*' is not a point-to-object type

Hello there, I'm new on C++ and I'm trying to make some testing with C++ and SDL and in SDL we have a function: SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param); which I can pass a callback for the timer created. But apparently it converts my instance this to *void so I can't retrieve it again on...