o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

An object puzzler ... -

Howdy, I've run into a bit of a problem. I've been in the process of writing a multi-user game. I've embeded sockets in a class module so that each player has their own socket. Now what happens is this: When a player quits, the player object saves player data, closes the socket and then runs KillPlayer, which is a function to set the player object to nothing. Funny thing is, the Class_Terminate Sub never goes off. Which is where I have all the code to set objects within the player object to nothing. I've declared all my objects properly: Public Player As Persona ... Set Player = New Persona ... Set Player = Nothing ... The same with all the objects the player object uses (socket, timer, etc.)

Has anyone run into this problem? Any possible routes for me to fix this?

Thanks in advance.

 

An object puzzler ... -
Howdy, I've run into a bit of a problem. I've been in the process of writing a multi-user game. I've embeded sockets in a class module so that each player has their own socket. Now what happens is this: When a player quits, the player object saves player data, closes the socket and the


Another puzzler -
This one has to do with adding the collected data to the listview. Since VB seems to want to force me to put the files in the filelist in text format, I can't use a For/Next loop. The listview will only show one item out of the collection. Is there some other way to loop through t


Puzzler... -
Hi I have made a few scripts for a program I am making - one problem, if the user doesn't log out, but rather disconnects without logging off, how can I make the scripts recognize that and set the user as offline??? Any help is appreciated, SuperBatman Thanks~


A puzzler! -
I have attached a file that access various pixels using get pixel and and gives me values for those pixels. I want to access all the pixels within an area, and get the values for those. Can I set up an area using co-ordinates? ie get pixel data for each pixel within the area defi


comparing date data types -
This is a puzzler to me at the moment. How can I compare a field, which is a date, to the system date? I'm getting a data type mismatch error. If its a string to string comparison you just enclose the variable like so: '" & variable & "'. I don't know how it is


Trouble with setup.lst -
Right, this is a puzzler. I've used the package and deployment wizard to package up my program and now I want to install it onto some machines. Unfortunately my IT department automatically blocks all .exe files with "setup" in their name. To combat this I usually change t


3d rotating (unresoleved) -
ok i have the following code its in a dirrete lauguage but its real clode to visual basic i cant seem to get the rotate to work good code you please held here is my code set window -50,50,-50,50 dim object(10,3) let lfocus = 1 let lines = 6 let object(1,1) = 1 let object(1,2)


Create Instance Object in Visual Basic 6.00 -
how do i copy an object that having the same value, properties from other object? the object is come from the same class module. the other copy of object is needed for manipulation without interference to original object. thanks for all your info


Calling VB6 event from VB.Net -
Hello I an trying to use a component that i built in VB6 within a vb.net environment. the problem is that it is not rasing the events in the VB.net form. these are parts that I am using a. VB.net Form b. DLL com object which acts as communicator c. DLL com


Saving Object Data to File -
I need to save the state of an object so it can be reloaded next time the app runs. The object in question (Office Pivot Table) has too many intertwined properties to just loop through them so I want to save the entire object instance to file. How do I do this? I've looked at writing


Reading data and grouping data (order not important) -
Hi, I am trying to write a simple program that would read a textfile such as the following format: ---------------------------- Object A Size of object X, Y Object D Size of object X, Y Object B Size of object X, Y X, Y Object C Size of object X, Y etc... -------


object is not Nothing -
I know you can this statment to see if an object pointer is empty: if <object> is nothing then ... but what if I want to check if there is something in an object I tryed : if <object> is not nothing then.... but it doesn't work, what do I do?


Puzzler -
Howdy Right I have my own variable type ie Code: Type SomeData Byte1 As Byte Byte2 As Byte Byte3 As Byte Bytes(12) As Integer End Type Public MyData As SomeData Ok I want to clear all the records within the type without explicity referencing them,


Object Design query -
Hi, I'm designing a system in ASP.Net using VB.Net. I have an object called Uer which will house a user's email address and password. I want each user to have its own Address object also which holds name, address, country etc. What i need to know is to I make one of the proper


IE Object -
Does anyone know how to set object to an already open IE window. If another program opens an IE window, I need to be able to set an object to that IE window through the IE object in order to control it. I already know how to get the hwnd off of the new window but I cannot figure out


Dictionary Object TypeName -
Hi, I am passing a dictionary object to the Set function of a class. Before setting the private object to this external Dictionary object, I am first using an if statement to make sure it is really a Dictionary object. Can some one please point out what TypeName should I use fo


Some Object Questions. -
When one object is set to another, is a new object created, or do they both now just point to the same object? If so, when one of these clone objects is destroyed, is the original object it was pointing to destroyed? Thanks.


Problems with the ListView control -
Hello. I have a problem with the ListView control. I'm in a For loop, and everytime i want to add an object, i have to use Set function to define it. Example: Dim object As ListItem Dim i As Integer For i = 1 To 1000 Set object = ListView1.ListItems


How about... -
This only works with some objects, but: (for simplification, "object" is used in reference to the thing u want to test whether the mouse is over ) x1 = object.left x2 = object.left + object.width y1 = object.top y2 = object.top + object.height then you can put this


Adding a COM refrence and creating an object from it. -
I added a reference to the COM object 'Microsoft HTML Object Library'. Now, how do I make an object from it? I am doing this in C#, but if you have a way in VB, let me know that too... Thanks.


new object thats a copy of old object [resolved] -
im trying to get an object from a collection and use it somewhere else in the somewhere else that im useing it the object will be changed some. but i dont want it to change the object in the collection it seems like i should just be able to say somehting like dim obj as new o


NOW Function Question -
What is the double value returned by the NOW suppose to represent? It looks as though the .00001 place is seconds. Is this true? Example Output: Object 1: 36804.4683217593 Object 2: 36804.4683333333 Object 3: 36804.4683449074 Object 4: 36804.4683564815 Object 5: 36804.46836


[2005] Listing the properties of an object Reflection -
I have an object that has various properties. I would like programatically create columns in a listview named after those properties. Rather than add the columns separately in the code I was wondering if there was a way of getting a list of all the property names of this object? I p


DCOM and MTS help needed -
Hi !, I have created a DCOM object and have deployed it in MTS. I am using this object in my Project. When I packaged and distributed( remote sever files also included) , Instead of calling the object from the MTS (in MMC the object is not turning by itself when the project is runn


[2.0] slight confusion between "Object" vs "object" -
while typing using VS 2005, C#, intellisense shows "Object" and "object" . what is the difference. The help shows both are Object class . then why Uppercase Object and lower case object is displayed by intellisense? nath


Size of an object -
Guys, its 1:52 AM here in India and I am awake for the Nth night. Don't laugh at me if I sound silly. How do I get the size of my object? Like you can always do a Len(TypeInstance) to get the length of a structure. Like sizeof(Object) tells a C++ proggy his object size. I want the s


Office Object -
I want to have office in my APP but know i want to insert the object. When i inserted the object (using insertable object) in the form i can call the Object(Excel, Word,etc) by dblclick on the objetc. The problem is that i cannot print using this way. Is there anyway to print or o


Set object to Nothing from Constructor -
Is it possible to set the object being instanced to nothing from within the constructor. For eaxmple, I have a situation where if invalid parameters are entered as part of the construction of my object I appreciate that I could throw an exception at this point, and that when the


Class<> to Object -
Is there any way to get an Object from a Class<?> public static Object getObject(Class<Object> type) { // returns a new Object of whatever i passed in the parrameter } Something like that


How to determine size of Object -
Hello people I am attempting to use the COPYMEMORY API function with Objects, and it expects the size of the object I am copying as a parameter. I am not using a string, so LEN or LENB won't work here. I've searched all over the net and in these archives here, but no answers y


What am I looking for Object or Control -
I have built an object/class for my application. It holds lots of specific kinds of data and collections of data. There is no pictorial representation for my object. What am I looking for if I want to use the data in my object to create a picture and put it on my form or picture bo


Object Destruction -
I am developing an application like calculator. First I declared the array of object of a class. when the need arrize i reallocate to store more object. Now the situation is that I want to delete an object, so that the other objects automatically adjust itself accordingly. How I can de


Object Arrays -
In the old VB6 you used to be able to create an object, and make that object apart of an array. At run time you could then create more of that same object, but with different indexes (But still the same name). So in the end you could end up with an array of tiles if you wanted, by tim


COM Objects within COM Objects -
OK...Here goes... I have a series of COM objects that represent a data structure. I'll use a CAR object as an example... The CAR object has references to numerous other objects...the ENGINE object, the TRANSMISSION object, etc...each containing the properties of that object. From


return types -
Object Object::Foo(); vs Object& Object:Foo() What is the difference between returning and object and returning a reference to the object? If there is a difference, when would you use each case?


Array ByVal and not ByRef -
How to add an object to an array byval.... I'm adding the object with set array(arraypos) = obj But when I give my object another valu with another Set, I loose what's in the array.... I know that is because the array contain a reference to the object, but how can I add th


New instance of object -
If I have several subs and functions that will be dealing with setting properties on an object, what is better, passing the object itself as a parameter of the functions or creating a new instance of the object in each function using an object ID? (phew, long sentence... )


[2005] Question about basic Understanding of Objects -
Hi Everybody, I just made a few experiments with Events. In this example I created a button which creates an object. This object (inherits label) can move and triggers an event (starts blinking) when it leaves a certain area. The blinking can be reset by clicking on the object. The ob


OLE Object Insert object Drag-Drop -
Hi, I want to insert any type of object (ie. .doc, .pdf, etc) into a boundedOLE object (inside a VBA form) I found it useful to use the insert object dialog box: OLEobject.Action = acOLEInsertObjDlg this will bring up the browse box, where i select the object and it will i


Help with object creation -
Hello, I trying to design an object that will act as a gateway between VB and my WDDX enabled web site. I use Mabry's HTTP control and the WDDX COM object to transmit data between my object and my web site. As I have been working on this project, a few things have stumped me. Any