I know in Delphi I would do
procedure TForm1.Button1Click(Sender: TObject);
var
FileData : TStringList;
TimeNow : LongInt;
begin
TimeNow:=timeGetTime;
while (TimeNow + 20000) > timeGetTime do FileData:=TStringList.Create;
end;
I know this is kind of a weird question, but how do you...allocate physical memory? I know using New will make a new object but it's not allocating what I'm looking for. Here's kind of what I'm looking for: http://www.soft.tahionic.com/download-memalloc/index.html
That program allocates memory...
Okay I have most of this working but I'm stuck on one problem. I have a TCP Instant Messenger I made in class so me and one friend could send messages to each other. It works flawlessly. Now my other friends want to join in and all message together. So I'm making a TCP Server that will accept...
Oh okay. Thanks for trying to help me. I guess I'll make my application in a standard Windows Application. Thanks. I did not know about Vista dropping Drag & Drop on Consoles. :/
Upon testing your code in a new console application in Visual Basic 2010, I tried to drag a zip file onto the console application. It did not display a file path or file name. When I tried to drag it, it changed my cursor to the "no symbol" or the circle with a diagonal line through it. I'm...
I have a console application that I want to show the path and filename when a file is dropped on it...kind of like the Command Prompt. Open Command Prompt and drag any file onto it and it will display the path and filename where you type. How can I get my console to do that?
I'm trying to make a private chat between two people but I can't get it to connect. I Googled it and found out that I can use TCPListener and TCPClient. I tried it out and it won't work. I'm usually good with making programs that don't require Internet but this one does and it's bugging me. I...
I'm trying to get seconds and a URL off my friend's website that is stored in a file. He has it in a PHP file that displays it on the screen as text. I'm not sure if I can rip that off the page and then use it. He said he can change it to an XML file for me to get it off of.
Here's my question...
I've tried searching Google without any luck for my problem. My program has a label that tells you how long you have been running the program. I can only get it to show in seconds (using a TTimer.) How could I somehow convert those seconds into hours:minutes:seconds format?
Hi again,
I've never handled error messages in Delphi so it's new to me.
My program uses a lot of RAM. Is there a way to do FreeAndNil() when I receive the "Out of Memory" error? Or if not, is there a way to end the program on this error? Such as Halt() or Close()?
Thanks for the link but that's not what I'm looking for. I'm looking for a way to just mute my program or the web browser. It's not just gonna open YouTube videos. It's going to open other websites too. Some might have sound. I mean one minute you could be watching YouTube in your actual browser...
Hello,
I've built a page viewing program. Everything is working except for when I press the View button. I have the program set to load a list of URLs off a server and view each URL individually. When you click the View button it turns a TTimer on. The TTimer is set to navigate to each URL in...
Hello again all,
Has anyone else seen on Skype where it tells you how many people are online? (How many people are using the program right now.) Is there a way to do that in Delphi? I have a viewing program that gives views to web pages and I'd like to know how many people are using my program...
Never mind! Thanks everyone for their valuable post! I finally found out how to do it by messing around with code. Here's my code:
procedure TForm1.ViewClick(Sender: TObject);
begin
WebBrowser1.Navigate(List.Lines[1]);
end;
I didn't realize how simple it was. Using this code it took me to...
No I mean how would I get my TWebBrowser to navigate to the URL on line 2 for example? How would I get the URL from line 2 on my memo into this code: WebBrowser1.Navigate(); I apologize if I'm not making much sense.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.