Search found 7 matches

by timwil1963
Tue Feb 11, 2020 8:16 pm
Forum: Tricks 'n' Tips
Topic: HMAC function implementation
Replies: 4
Views: 3205

Re: HMAC function implementation

Works perfectly

Thank you very much
by timwil1963
Tue Feb 04, 2020 2:10 am
Forum: Coding Questions
Topic: UTC Time
Replies: 23
Views: 5380

Re: UTC Time

wilbert wrote:It shows the correct UTC time here (MacOS).
You could also use the PB functions to format.

Code: Select all

ImportC "" 
  time(*tm)
EndImport

Debug FormatDate("%dd %mm %yyyy %hh:%ii:%ss UTC", time(#Null))

Thank you for this - just what I was looking for
by timwil1963
Sun Jan 26, 2020 10:59 pm
Forum: Tricks 'n' Tips
Topic: Create GUID via WinAPI
Replies: 8
Views: 3888

Re: Create GUID via WinAPI

Much thanks for this
by timwil1963
Wed Jan 15, 2020 12:06 am
Forum: Coding Questions
Topic: Printing to a USB Printer
Replies: 5
Views: 2220

Re: Printing to a USB Printer

I have been wasting time on this......I guess that is how one learns :D

I found ABBKlaus Printer_Lib and this does exactly what I need - it took a while for me to realize (I found it on purearea.net)

I am making good progress in migrating my Visual Basic Application to Pure Basic - definitely a ...
by timwil1963
Sun Dec 29, 2019 1:52 pm
Forum: Coding Questions
Topic: Printing to a USB Printer
Replies: 5
Views: 2220

Re: Printing to a USB Printer

This post worked out to be very helpful viewtopic.php?f=13&t=59132&hilit=winspool.drv

I think I might have it ..... just have to test.....
by timwil1963
Sat Dec 28, 2019 7:12 pm
Forum: Coding Questions
Topic: Printing to a USB Printer
Replies: 5
Views: 2220

Re: Printing to a USB Printer

This is how it is used


Public Sub POSPrint(xData As String)
Dim vbp As Printer

For Each vbp In Printers
If vbp.DeviceName = "POS" Then
Set Printer = vbp
End If
Next

usbPrint xData
End Sub

Public Sub BDPrint(xData As String)
Dim vbp As Printer

For Each vbp In Printers
If vbp ...
by timwil1963
Sat Dec 28, 2019 5:48 pm
Forum: Coding Questions
Topic: Printing to a USB Printer
Replies: 5
Views: 2220

Printing to a USB Printer

I am totally new to PureBasic having not written a single program yet. I however have had many many years of Visual Basic 6. One of the things I frequently do is print to printers that print bar codes or tickets or special receipts that do not use the regular way of printing and are not based on a ...