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