Control FiscalPrinter via external library

Post

Posted
Rating:
#1 (In Topic #845)
Trainee
I'm write application to control FiscalPrinter that have own library for it.
Image

(Click to enlarge)


GAMBAS3 code:
Image

(Click to enlarge)


Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#2
Trainee
But in log of the library you will see additional symbols after end of strings.
Image

(Click to enlarge)

Sometime parameter ever don't transfer to external library.
Image

(Click to enlarge)

As result FiscalPrinter not recognize that commands.
What I do wrong?
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Guru
cogier is in the usergroup ‘Guru’
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?
Online now: No Back to the top

Post

Posted
Rating:
#4
Trainee
Did you mean to change "WCHAR_T" to "wchar_t"?
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Guru
cogier is in the usergroup ‘Guru’

dmg244 said

Did you mean to change "WCHAR_T" to "wchar_t"?

Maybe. Try it.
Online now: No Back to the top

Post

Posted
Rating:
#6
Trainee
Same result. I think converter to wchar_t work incorrect. Because every time when I run programm output resultate is different.
Online now: No Back to the top

Post

Posted
Rating:
#7
Trainee
Image

(Click to enlarge)

In Python it's working without problem as you can see.
Online now: No Back to the top
1 guest and 0 members have just viewed this.