Forums for programming, Open source and free software.
You are not logged in.
Mini Library for pascal released
I know there is a xml parser or socket in FPC, but we say in my country "increase the good it is another good"
I released my small library MiniSockets and MiniXML under license modified.LGPL.
MiniSockets: multi threaded socket client/server, there is a Mini Web Server in demo folder for test it.
Mini XML is light xml parser and load save config file based on xml with RTTI, see the mnXMLRttiProfile.pas and TmnProfile class, the idea behind this, it is can parse line by line, not need to load the xml file in memory or downloaded as file, it is useful for huge files and socket streams.
MiniConnection for simple connection to databases
CSV [Not Stable]
SQlite [Done]
Firebird [Not Yet]
Postgre [Not Yet]
MiniComm connect to COM ports as Stream used ini Win32 and WINCE
use TortoiseSVN to checkout it
https://minilib.svn.sourceforge.net/svnroot/minilib
Offline
Hi Zaher,
I suppose this is the topic where I can send bugreports to.
I am trying to get EscPos printing working under WinCe. This is the error I am getting:
Q:\3rd_Party\MiniLib\trunk\MiniComm\source\mnWinCommStreams.pas(249,28) Error: Identifier not found "GetOverlappedResult"
As far as I know "GetOverlappedResult" is not supported under WinCE.
- Leslie -
Offline
Yes GetOverlappedResult is not supported, as i remember i fixed it, try to take last reversion (Update).
Offline
SVN is still at R46. Are you sure you have commited the changes?
Offline
Hmm, be sure you are not use mnWinCommStreams.pas directly in you Uses,
Just use mnCommStreams if you like to add it to your project.
It will choosed automatically by mnCommStreams
Classes, SysUtils, {$ifdef Linux} mnLinuxCommStreams, {$else} {$ifdef WINCE} mnWinCECommStreams, {$else} mnWinCommStreams, {$endif} {$endif}
Offline
My mistake, sorry! It compiles now perfectly. ![]()
I may still have a few more questions if you do not mind:
It is not clear yet for me how to use EscPos with none Epson printers.
Do you know if they need to be told to switch to EscPos mode before sending the EscPos commands?
Offline
One more question: is there a way to query the printer if it supports EscPos?
Offline
1 -Most printer especially blusetooh printers support it, but some of them have a small switches to define what protocol you like to use, choose Epson of ESC/POS.
> is there a way to query the printer if it supports EscPos
I think no, because it is one way when we print, just data out to the printer.
Just read the specification in its manual, and you can see ESC/POS, we force our customer to buy some tested printers.
Offline
Ok, thanks!
There is one more thing I wanted to ask, although I think I already know the answer: ![]()
Would it be difficult to include the basic funcionality of HP's PCL to your printing Lib?
This is the Wiki page of PCL: http://en.wikipedia.org/wiki/Printer_Co … 5_overview
I can see that MiniLib already fits your needs so I really do not expect any extra work from you, unless you really want to, but I could not resist to ask.
)
Offline
I guess In the future WinCE will support a driver for PCL, i read it in Microsoft site (somewhere), so i wait and use my small lib, i have commercial project on Wince print over bluetooh to SPRT-TIII printer.
In fact i will keep MiniLib as Mini not growing to be huge and complex, is useful for mini project like that work in WinCE devices.
Offline
I can see where you are coming from. ![]()
Thank your for your help.
Offline
oops I meant
Thank you for your help.
Offline
You are welcome Leslie
.
Offline