Friends

Rate

  

Parmaja.com

Forums for programming, Open source and free software.

You are not logged in.

  • Index
  •  » Projects
  •  » Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

#1 2007-03-31 02:45:59

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

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" smile

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

 

#2 2008-06-20 09:09:21

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

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

 

#3 2008-06-21 05:27:34

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

Yes GetOverlappedResult is not supported, as i remember i fixed it, try to take last reversion (Update).

Offline

 

#4 2008-06-21 09:18:33

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

SVN is still at R46. Are you sure you have commited the changes?

Offline

 

#5 2008-06-21 11:41:11

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

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

Code: delphi

  Classes, SysUtils,
  {$ifdef Linux}
  mnLinuxCommStreams,
  {$else}
  {$ifdef WINCE}
  mnWinCECommStreams,
  {$else}
  mnWinCommStreams,
  {$endif}
  {$endif}

Offline

 

#6 2008-06-21 14:00:48

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

My mistake, sorry! It compiles now perfectly. smile

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

 

#7 2008-06-21 23:39:42

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

One more question: is there a way to query the printer if it supports EscPos?

Offline

 

#8 2008-06-22 07:10:37

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

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

 

#9 2008-06-22 09:56:18

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

Ok, thanks!

There is one more thing I wanted to ask, although I think I already know the answer: smile

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

Offline

 

#10 2008-06-22 11:42:50

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

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

 

#11 2008-06-22 13:03:12

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

I can see where you are coming from. smile

Thank your for  your help.

Offline

 

#12 2008-06-22 13:04:12

Leslie
New member
Registered: 2008-06-20
Posts: 7

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

oops I meant

Thank you for  your help.

Offline

 

#13 2008-06-24 03:01:08

Zaher
Administrator
From: syria
Registered: 2004-03-19
Posts: 220

Re: Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

You are welcome Leslie smile .

Offline

 
  • Index
  •  » Projects
  •  » Mini Library for pascal (MiniXML, MiniSockets, SQlite, MiniComm)

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

[ Generated in 0.019 seconds, 7 queries executed ]