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 Wanet Telecoms Ltd 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: *

  • Users: KempCGDR
  • Content: Threads
  • Order by date
  1. 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...
  2. 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)...
  3. 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...
  4. KempCGDR

    DLLs - FreeLibrary problem

    Hi, I have this piece of code in the onJoin event of an Indy IRC Client: procedure TfrmMain.ircJoin(Sender: TObject; AUser: TIdIRCUser; AChannel: TIdIRCChannel); type TonJoin = function(AUser: TIdIRCUser; AChannel: TIdIRCChannel):String; var Temp:PChar; LibraryID:THandle...
  5. KempCGDR

    Indy TCPServer Timeout has no effect?

    Hi, I am writing an application that makes use of the Indy tcp server (and client) components. I am using readln on the server to listen for commands from the client but I need the code to go off and check various things every so often if it hasn't recieved a command. I have specified a timeout...
  6. KempCGDR

    TImage created at run-time, not displaying

    Hi, I'm having problems making a TImage display when it is created at run-time. I've used virtually identical code before and it worked, so there must be something really stupid that I'm missing. I have a class that contains the TImage in question declared thus (I will use '...' to show that...
  7. KempCGDR

    Proxy program - where to start?

    Hi, I'm want to write a program (in fact two programs) to do a certain thing, but I have no idea where to start. They need to: - Program 1 needs to be able to act as a proxy on the local computer (ie, accept traffic from programs using 127.0.0.1 as their proxy server). It needs to forward this...
  8. KempCGDR

    Freaky GroupBox caption problem

    Hi, I'm having a really wierd problem wiht my GroupBox captions. If I have code such as the following: aPhrase := 'Second half'; grpWhatever.caption := Concat('Something - ' , aPhrase , ' ...'); Nothing after the variable shows in the caption, it's just cut off (this also happens using +...
  9. KempCGDR

    Data types going C++ -> Delphi

    Hi, I'm writing a plugin for a program using Delphi. Two of the parameters one of my functions needs to take are listed as: char *data, char *parms And I need to be able to pass data back to the main program in these parameters as well. I've tried various combinations of PChars and arrays of...
  10. KempCGDR

    Passing data between apps

    Hi, I'm working on a program (actually set of programs) where copies need to send large amounts of data between themselves. I've decided that it'd probably be best to do this via shared memory for various reasons. I want to set it up so I can do this: App1 and App2 App1 creates a chunk of...
  11. KempCGDR

    Strange problem with calculations

    Hi, part of my code has to calculate what percentage two numbers are of the whole (ie both the them). To do this, I used the same calculations which worked in school and worked in Delphi mere hours ago (I basically copied the code over). However, VB's percentages don't add up to 100. The code...
  12. KempCGDR

    Delphi DLL in VB

    Hi, I have a DLL written in Delphi that I want to call from a VB program. It gives me errors no matter what I try, so I think I need to tell the function in the DLL to use a different calling convention, does anyone know which one I can use? Here is what Delphi says about the ones I have...
  13. KempCGDR

    Very freaky IDE problem

    Hi, just wondering if anyone else had come across this, as I have no idea how to sort it out. When I want to select either of the side resizing boxes of a component (and only the sides, the top/bottom ones are fine and doing anything else is fine), it selects it ok, but the side of the...
  14. KempCGDR

    Pointers and memory and stuff...

    Hi, I'm coding a quick example of a program for someone and part of what I want it to do requires that it passes a large amount of text to a function in a dll. I guess that creating an area in memory, sticking the text in there and then passing a pointer to it to the dll function would be the...
  15. KempCGDR

    Resource file / TAnimate problem

    Hi, I have a problem where a TAnimate component refuses to open an AVI from a .dll file I compiled. My resource file is written as: 100 AVI "[Flename]" It compiles correctly (or I'm guessing it does as the filesize is correct). Then I use Delphi to compile it into a .dll with the...
  16. KempCGDR

    AVIs within form?

    Hi, basically I want to store some AVI files in a DLL or dat file (I know how to do that except for what type of resource to call them) and then display them on one of my forms (only one of them at any time). At the moment my program just opens the file with a system call because I have the...
  17. KempCGDR

    Array constant problem

    Hi, I have two array constants defined as: FULL : Array[1..5] of boolean = (True,True,True,True,True); NONE : Array[1..5] of boolean = (False,False,False,False,False); and an array defined as: Status:Array[1..5] of Boolean; If I try to compare them with a line such as the one below: If...
  18. KempCGDR

    Using .ini file from website

    Hi, I'm posting this for a mate because his account is having problems right now. I only gave it a quick read-through so if there's anything missing please let me know. And with no further ado, onto his question: -------------------------------------- hi, i need some help in spliting up a...
  19. KempCGDR

    Detect existence of window?

    Hi, I'm currently using the following code to find and close a window: Handle := FindWindow(nil,'Window name here'); ShowWindow(Handle,SW_CLOSE); However, I need to know if the window was there, or if the closing was done on something that didn't exist so I can use this information...
  20. KempCGDR

    For loop not working

    I have the following piece of code : for ($i = 1; $i == $slashcount; $i++) { $extrapath .= &quot;..f&quot;; echo $extrapath.'<br>'.$i.'<br>'; } the loop will only execute once when $slashcount starts equal to $i. Any other value (smaller or larger) and the loop doesn't even execute...

Part and Inventory Search

Back
Top