I have tried this, and still nothing is received by the client. No matter how long the timeout period is set it still returns straight away with no data, which is impossible as far as I know what with it being set to blocking.
I find it really strange as the code to send to the server and for...
You've never really mentioned why you need an overloaded function, especially as they both just deal with a string. Why not just have one function? There is, after all, no point in using a feature of the language just purely for the fact that it's there.
I would consider
function Concise(AStr...
Well, I have to admit that it was adapted from something else I was using, but that was also one of the NET commands, so I don't see why that should work and this not.
The appropriate service is running on your machine, correct?
There's also the biSystemMenu property under BorderIcons in the object inspector if you don't want the button at all, but towerbase's way lets you choose.
It is quite simple to use WinExec:
WinExec(PChar('NET SEND whatever'), 0);
Change the 0 to a 1 to hide the console box that flashes up for a moment. The cast to a PChar is in case you want to replace any part of the string with a variable, eg:
WinExec(PChar('NET SEND ' + address + ' ' +...
Hi, I've been putting together a server and client that use a named pipe to communicate (they both run on the same machine). The server creates the pipe and the client connects fine, then the client sends a message to the server which works fine as well (the server can print the message as it...
This problem is really annoying me because as far as I can tell, this is the same code I've used a million times. I have the following code
filename := extractFilePath(application.exeName) + 'log.txt';
assignFile(log, filename);
if fileExists(filename) then
reset(log)
else
rewrite(log)...
Hi, I need to have a form in my application transparent so I did a quick search and came up with the method of setting the brush style to bsClear. This works fine except that if the form is moved then the area the form occupies still shows whatever the form used to be over the top of, which...
Maybe not a single function for them, but they're not much harder.
Getting can be done with a loop using IsDelimiter and then using Copy to get it out once you're at the right one. Deleting can be a similar loop but using Delete. Moving can be a get and a delete followed by using a combo of the...
Second thoughts, and sorry for double posting, but DelimitedText would probably be a good idea. Set the delimiter to something that's guaranteed not to be in the text.
You'll need a webserver to run the code on (either on your own machine or a hosting service). As php is plain text you can use anything to edit it (right down to the DOS EDIT command), I tend to use notepad, but there are a few editors out there with syntax highlighting you might prefer (I can't...
As a general rule, if you want to do something useful with strings then there's already a library function to do it for you. In this case it's StringReplace, simply run that on each line. It wouldn't be too hard to put together a routine you could call to do it for any TStrings instance.
ob_start();
print "Starting process...<br>";
startMyProcess($myData);
print "Finished process."
ob_end_flush();
Why would that print "Starting process..." straight away? If you did an ob_flush() after the print then maybe, but you're not flushing it until it has finished everything there.
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.