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...
...the error. In reality there are multiple DLLs and each DLL may contain multiple forms.
Any help/pointers/suggestions/etc. greatly appreciated
***********************
main (mdi) form
***********************
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes...
...the time it takes to read would be welcome.
Putting the data in a database is not possible as the program using the data has to run on windows AND *nix and we don't want to have to support multiple versions of the data.
I've spent the last three days on this and searching all over the web...
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.
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...
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.
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...
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...
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...
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.