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 SkipVought 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. mattlacey

    Send and Recieve by parallel port.

    For anyone else who ends up searching here for how to send commands through a parallel connection, the following worked for me and is based on the post from Griffyn. procedure TForm2.btnFeedLPT1Click(Sender: TObject); var sl: TstringList; begin sl := TstringList.Create; try...
  2. mattlacey

    Error: Too many connections in ...

    We have had this in the past when someone had used a persistent database connect rather than a standard database connection.
  3. mattlacey

    Site responses

    Obviously there are more situations that you will have to deal with just OK and URI not found errors. Just check the HHTP Responce code for the request. This will be able to tell you exactly what happened with your request. How you do this will depend on the HTTP component you are using...
  4. mattlacey

    Stop while terminate the program

    You've created an infinite loop. What are you trying to do with the mouse cursor? and At what point (in the programs execution)?
  5. mattlacey

    try to create an icon for my new component

    create a 16 color 28 x 28 pixel bitmap with the same name as the component (name in UPPERCASE) add it to an .RC file and then add the .RC component.
  6. mattlacey

    Memory Leak and AV with MDIChild forms in DLL

    I have created an application that contains mdi-child forms in DLLs. This is all working fine except that doing anything with the DLLs is causing memory leaks (As indicated by MemorySleuth2). Also, I can't close my child forms from the parent without causing access violations. These lock the...
  7. mattlacey

    Problem converting ASCII file to binary

    I have a very large (half a million plus records) data file that is made up of records of 25 text characters. 3 sample records ---------------- AB10 043SAA1011NYYYYYN? AB103 043SAA1011NYYYYYN? AB103A 043SAA1011NYYYYYN? (displayed on seperate rows for ease of viewing but actual file does...
  8. mattlacey

    String as component name?

    Try: TComboBox(Sender).Text
  9. mattlacey

    Using VB Dll in Delphi

    It's true. Visual Basic only makes Active-X DLLs. These do not work in the same way as ordinary DLLs. When I discovered this I came across some software you can buy (never found a freeware version) that is an add-on to Visual Basic and allows you to create regular DLLs. Try a search in...
  10. mattlacey

    Error calling DLL

    I'll post this coz although I assume this is what people have eventually discovered no one seems to post it. VB doesn not make 'normal' DLLs as standard, it makes Active-X DLLs which behave in a different way. It is possible to buy additional programs to create 'normal' DLLs with VB, such that...
  11. mattlacey

    Random none too random when called in quick succession

    Ramdomize causes the ramdom function to be 'seeded' with the time, thus generating a seemingly random number. The problem with SLEEPing for 1 millisecond is that the system time isn't rounded to the nearest millisecond, it's rounded to the nearest 3 and a bit, such that the time in...
  12. mattlacey

    Error calling DLL

    Has anyone (EVER!!!) managed to get a VB6 ActiveX DLL to be compatible with Delphi(6)? Having spent two day searching the internet I still can't find how to get it working. All I can find is people guessing at how to solve this problem and mis-information. I'm getting the legendary "The...
  13. mattlacey

    EPOS! I Reading from a BarCode Scanner

    It sounds as if you're using a keyboard wedge with your scanner to read the data into an edit box. Might I suggest OnChange as an event to process the data on. If you are connecting your scanner via a serial port, I would suggest looking at the ASync Pro components from TurboPower...
  14. mattlacey

    Writeln causing memory leak

    earlrainer, You are my new programming hero! Your stream is working marvelously. Be sure this function will be included in many of my programs in the future. Thankyou very much. Matt.
  15. mattlacey

    Writeln causing memory leak

    I am worried about it because the app has to run 24/7 and if it's allocating memory and not freeing it, it will eventually run out, as it typically does after a few hours of intensive usage.
  16. mattlacey

    Writeln causing memory leak

    I have a program (Written in Delphi6) that acts as a mesage server for lots of different serial communications. It receives input from different serial devices and then sends messages back, writes to a database and/or passes the message(data from the serial device) to another machine. When a...
  17. mattlacey

    Opening textfiles in a DLL

    Yeah, I saw your post and checked my inclusion of ShareMem. I also have functions in the same DLL that successfully pass and return strings, so it can't be a String/PChar issue. ShareMem & the borlndmm.dll enable the use of strings in DLLs.
  18. mattlacey

    Opening textfiles in a DLL

    I am writing a DLL in Delphi 5 that needs to open text files and then perform analysis on the contents of the file. This is all fine when i write it in a standard EXE but when i try and run the code in a DLL I get a EInOutError exception. My code looks like this: function...
  19. mattlacey

    VB Enumerated Types Vs Delphi Records

    The procedure was expecting expecting 3 parameters, the first a longinteger, the second a record containing 6 fields and the third a record containing 95! fields. I have now got the call working, I think it may have been a memory allocation or a casting issue (It wasn't raising any error, just...
  20. mattlacey

    VB Enumerated Types Vs Delphi Records

    I'm writing a Delphi(5) app using calls to external DLLs. The sample code provided by the company who produced the DLLs is in VB and some of the calls to the procedures I need involve passing enumerated types as variables. When trying to make these calls in Delphi I substituted the enumerated...

Part and Inventory Search

Back
Top