Page 1 of 1
Control FiscalPrinter via external library
Posted: Tuesday 3rd May 2022 12:27pm
by dmg244
I'm write application to control FiscalPrinter that have own library for it.
- 1.png (34.11 KiB) Viewed 60897 times
GAMBAS3 code:
- 2.png (13.72 KiB) Viewed 60897 times
- 3.png (37.38 KiB) Viewed 60897 times
Re: Control FiscalPrinter via external library
Posted: Tuesday 3rd May 2022 12:28pm
by dmg244
But in log of the library you will see additional symbols after end of strings.
- 4.png (40.77 KiB) Viewed 60896 times
Sometime parameter ever don't transfer to external library.
- 5.png (24.6 KiB) Viewed 60896 times
As result FiscalPrinter not recognize that commands.
What I do wrong?
Re: Control FiscalPrinter via external library
Posted: Tuesday 3rd May 2022 3:37pm
by cogier
I don't know the answer, but I think you need to look at
WCHAR_T. This is a
Microsoft speciality. Does it need to be there, or should it be in lower case?
Re: Control FiscalPrinter via external library
Posted: Tuesday 3rd May 2022 4:36pm
by dmg244
Did you mean to change "WCHAR_T" to "wchar_t"?
Re: Control FiscalPrinter via external library
Posted: Wednesday 4th May 2022 1:23pm
by cogier
dmg244 wrote: ↑Tuesday 3rd May 2022 4:36pm
Did you mean to change "WCHAR_T" to "wchar_t"?
Maybe. Try it.
Re: Control FiscalPrinter via external library
Posted: Wednesday 4th May 2022 1:33pm
by dmg244
Same result. I think converter to wchar_t work incorrect. Because every time when I run programm output resultate is different.
Re: Control FiscalPrinter via external library
Posted: Thursday 5th May 2022 12:54pm
by dmg244
- 6.png (36.23 KiB) Viewed 60858 times
In Python it's working without problem as you can see.