Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. KempCGDR

    Client not reading from named pipe

    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...
  2. KempCGDR

    Create a new String type

    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...
  3. KempCGDR

    Implementing NET SEND command in my application

    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?
  4. KempCGDR

    how do i disable window-closing?

    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.
  5. KempCGDR

    Implementing NET SEND command in my application

    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 + ' ' +...
  6. KempCGDR

    Difference between int and long

    cpjust: That's the sizes MS have defined for their compilers running under those OSes on x86 machines. Other environments may be different.
  7. KempCGDR

    Client not reading from named pipe

    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...
  8. KempCGDR

    point an event to a function !

    newComboBox.onChange := functionName The function must have exactly the same parameters as the event handlers delphi generates for you.
  9. KempCGDR

    Reset issues for textfile

    Thanks, that worked fine. Kinda confusing though as I always used reset before :S
  10. KempCGDR

    Reset issues for textfile

    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)...
  11. KempCGDR

    Transparent form... but not quite

    Don't worry, fixed it now, had to use a different method.
  12. KempCGDR

    Transparent form... but not quite

    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...
  13. KempCGDR

    Text operations problem :/

    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...
  14. KempCGDR

    Sql using PHP ? PLEASE HELP

    You get returned a handle to the results, you can use mysql_fetch_array($result) to get individual rows.
  15. KempCGDR

    New to php, standard questions

    sleipnir214: I didn't know that actually (standalone), though I'm not surprised that it was done.
  16. KempCGDR

    Text operations problem :/

    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.
  17. KempCGDR

    Text operations problem :/

    Actually, that's a good point, or you could do it on the Text property.
  18. KempCGDR

    New to php, standard questions

    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...
  19. KempCGDR

    Text operations problem :/

    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.
  20. KempCGDR

    Forcing output before script is done.

    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.

Part and Inventory Search

Back
Top