Tip Bank

DevX - Software Development Resource

Calling the Operator =

Question: How can I call the operator= of the base class from the operator=in the derived class?The data member in the base class is a private data member. I want

DevX - Software Development Resource

Pulling Digits Out of String to Sum Them

Question: How do I pull out every second digit from a string and sum them? Answer: This is a rather unusual question, but it’s not that hard to accomplish.What must

DevX - Software Development Resource

Is there a way to kill a sleeping thread?

Question: I am creating numerous threads on-the-fly in Delphi 2.0. I create them suspended. The question is: How do I make the threads go away? I’ve tried Free, Terminate… nothing

DevX - Software Development Resource

Is Drag-and-Drop on a Menu Item Possible?

Question: Is drag-and-drop on a menu item possible? Answer: If I was going to be rhetorical, I’d answer in very Zen-like terms:”Anything is possible.” But in more practical terms, no,

DevX - Software Development Resource

ActiveX/OCX objects in Delphi 3

Question: I am currently trying to convert three components to ActiveX components. I am doing this through Delphi 3, which I realize some people do not have access to.I need

DevX - Software Development Resource

Strings in List Boxes

Question: When a user clicks on an item in a list box, how can I get the actual string that was clicked on? For example, if ‘dog,’ ‘cat,’ and ‘fish’

DevX - Software Development Resource

Dynamic Buffer

Question: I’m using Delphi to do a client-server application in which all the lines I get from a socket I send to a TMemo in my form. I want that