Search found 189 matches

by AndyGable
Friday 23rd September 2022 8:20pm
Forum: General
Topic: Advise on a Idea I am considering
Replies: 1
Views: 53

Advise on a Idea I am considering

Hi Everyone I am hoping for some advise on a issue I am thinking about. I am currently working on a offline mode for my software i am doing this by storing all my required updates etc in a file on my local hard drive sometimes I can have 20-50 of these files on my drive and what I would like to do i...
by AndyGable
Wednesday 21st September 2022 2:51pm
Forum: General
Topic: Convert FreeBASIC code to Gambas stuck
Replies: 4
Views: 114

Re: Convert FreeBASIC code to Gambas stuck

Ohh thanks that is a FreeBASIC function

So I've got to either become really smart over night or ask someone who is smarter then me on here to see if they could help me convert the code.
by AndyGable
Tuesday 20th September 2022 9:26pm
Forum: General
Topic: Convert FreeBASIC code to Gambas stuck
Replies: 4
Views: 114

Convert FreeBASIC code to Gambas stuck

Dim status As String Open COM "COM1:9600,N,8,1,CD0,CS0,DS0,rs" As #1 Print #1, Chr(10) & Chr(4) & 1 While Loc(1) =0 Sleep 1 Wend status = Input(Loc(1), 1) Print Bin(Val(status),8) If Bit(Val(status), 3) = -1 Then Print "Kickout connector high" Else Print "Kickout connector low" EndIf If Bit(Val(sta...
by AndyGable
Friday 16th September 2022 4:45pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Re: Convert this C code to Gambas

Yea that's what I'm going to be working on this weekend

The hard part is getting the image to convert and upload to the printer memory
by AndyGable
Friday 16th September 2022 11:40am
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Re: Convert this C code to Gambas

They provide a way to print but it don't give any status to the application (like cover open or paper low) Ideally I would love to work out how to use the JavaPoS drivers as that does everything for you and it does not matter what printer you're using. (It gives the status of the printer as well as ...
by AndyGable
Friday 16th September 2022 8:01am
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Re: Convert this C code to Gambas

it is a Epson TM-88V I have gone down the direct hardware route as I can (at some point) get the cash drawer status as low paper status from the printer and use that with in my EPoS application) https://www.epson-biz.com/modules/ref_escpos/index.php?content_id=2 This is the link to the ESC/PoS Manua...
by AndyGable
Thursday 15th September 2022 8:15pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Re: Convert this C code to Gambas

vuott wrote:
Thursday 15th September 2022 6:51pm
AndyGable wrote:
Thursday 15th September 2022 2:44pm
this code from C
...C++
Thanks for correcting me I have a hard time recognizing code that is not BASIC or Visual Basic or Gambas :)
by AndyGable
Thursday 15th September 2022 6:43pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Re: Convert this C code to Gambas

The recipit printers do not have drivers that you can install on Linux they all use their own ESC/POS commands to convert and print the images
by AndyGable
Thursday 15th September 2022 2:44pm
Forum: General
Topic: Convert this C code to Gambas
Replies: 10
Views: 270

Convert this C code to Gambas

Hi Everyone Does anyone know how I can convert this code from C to Gambas? public static class ImagePrint { /// <summary> /// Image convert to Byte Array /// </summary> /// <param name="LogoPath">Image Path</param> /// <param name="printWidth">Image print Horizontal Length</param> /// <returns></ret...
by AndyGable
Wednesday 14th September 2022 3:50pm
Forum: General
Topic: Help or advise on this issues
Replies: 1
Views: 96

Help or advise on this issues

Hi All, I am getting on very well with my EPoS application but I am not sure how to do the following thing.... at the moment I am saving every item individually to a temp file so the file would look like this 1,I,50201600,2,0.35,0.70 if I void one I would have to do the following 1,IV,50201600,1,0.3...