Search found 1042 matches

by Gablea
Apr 11, 2019 22:06
Forum: General
Topic: Load image from MySQL
Replies: 8
Views: 256

Re: Load image from MySQL

the image that is stored in the database is a jpeg image that is just converted to BASE64 Public EncodingType As ImageFormat = ImageFormat.Jpeg Public EncodingTypeSting As String = "data:image/jpeg;base64," Public Function ConvertToBASE64(ByVal image As Image) As String Dim Image64Code As ...
by Gablea
Apr 11, 2019 14:12
Forum: DOS
Topic: Why do you still program for DOS?
Replies: 11
Views: 550

Re: Why do you still program for DOS?

I try to use DOS in my commercial projects but Im starting to hit a brick wall when it comes to database support, I wish someone who is a lot smarter then me could port the MySQL library to dos. The commercial projects I do are epos systems and I find dos is ideal for this as being a single user sin...
by Gablea
Apr 08, 2019 11:05
Forum: Libraries
Topic: xfont complie error
Replies: 3
Views: 135

Re: xfont complie error

Thanks for the tip I shall try that when I get back to the office.

Did something change then between 1.5 and 1.6?
by Gablea
Apr 08, 2019 2:01
Forum: General
Topic: Load image from MySQL
Replies: 8
Views: 256

Load image from MySQL

Hi everyone Just wanted to get your input on a function that I would like to intoduce into some of my software. I have stored in my MySQL database a image that has been converted to base64 code. Now in the VB app I can easily convert this back into a image and display it I was just wondering if that...
by Gablea
Apr 07, 2019 23:29
Forum: Libraries
Topic: xfont complie error
Replies: 3
Views: 135

xfont complie error

hi all, I have just updated my windows PC to version 1.6 and I am now getting a build error (as below) C:\FreeBASIC\1.6\fbc -s console "PoS.bas" PoS.o:fake:(.text+0x1bfa): undefined reference to `XFONT::INTERFACE::BACKCOLOR__set__(unsigned long)@8' PoS.o:fake:(.text+0x1c06): undefined refe...
by Gablea
Feb 14, 2019 8:59
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 186

Re: Keyboard Function not detecting F10

If i know how to use that I would :) I have the following set up


Dim Key_1 as Long = "&h31"

Code: Select all

Do
       key = Hex(GetKeyNB)
       If key = Key_1 then
               Print "KEY 1 Was Pressed"
       End  If
   Loop Until key = 27 ' ESC
by Gablea
Feb 13, 2019 23:21
Forum: General
Topic: [Solved] How to check time and date on a file
Replies: 23
Views: 3035

Re: How to check time and date on a file

I would like to say First off Sorry for the late Replay on here I have been very busy and only just remembered to update you all

I would like to say thank-you to dodicat as his code works in Windows as well as DOS (not tried on linux yet)

how do you mark the thread as solved?
by Gablea
Feb 13, 2019 21:33
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 186

Keyboard Function not detecting F10

Hi everyone I am using this code to control the Keyboard function GetKeyNB() as integer dim as string key key = inkey select case len(key) case 0 return 0 case 1 return key[0] case 2 return key[0] + (key[1] shl 8) end select end function It works great apart from it does not detect the F10 key. Do I...
by Gablea
Feb 05, 2019 8:58
Forum: DOS
Topic: Shell command
Replies: 2
Views: 232

Re: Shell command

I am not actually updating the exe it is just the data files that the system uses

I am copying from a Network Drive to the local RAM Drive. I am using the RAM Drive to hopefully speed up the data recall function
by Gablea
Feb 04, 2019 23:13
Forum: DOS
Topic: Shell command
Replies: 2
Views: 232

Shell command

Hi all, Just wanted to make sure I was remembering this correctly Can I run a batch file from with in my dos application? Example shell update.bat /update The update.bat file hold xcopy commands to copy over files and depending on the / option it would either just update files or copy all files no m...
by Gablea
Jan 13, 2019 20:33
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 847

Re: Where to put keyboard code

... html basic attenuation ... What is that? DDG and Google weren't much help here. I may have spelt it wrong this is a sample of the code I use to get the terminals status Try Dim Request As HttpWebRequest = HttpWebRequest.Create(PS_URL & "/terminals/" & TerminalIDNumber) Dim cre...
by Gablea
Jan 13, 2019 20:13
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 847

Re: Where to put keyboard code

yea that folder is empty I was trying to get it to work on a Windows OS but I Like to have this now only on Linux (as I would be moving to that at some point in the near future) My Plan is to fully move my applications over to linux but one of them talks to a web interface and it uses html basic att...
by Gablea
Jan 13, 2019 17:39
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 847

Re: Where to put keyboard code

I could post the source code here if anyone could translate it to FB. I volunteer. Hi grindstone, Here is the C program that takes either weight or barcode data from the scanner This example writes the data to a table within a MySQL database but i am sure there are ways to send data to a Freebasic ...
by Gablea
Jan 13, 2019 16:48
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 847

Re: Where to put keyboard code

grindstone wrote:
Gablea wrote:I could post the source code here if anyone could translate it to FB.
I volunteer.


Thank you so much grindstone I’ll upload it once I get to my PC
by Gablea
Jan 13, 2019 11:56
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 847

Re: Where to put keyboard code

Thank you for the other examples. And badidea I’ve never had a problem with the scanners as they have always sent the end chr (chr(13) they can do a lot more then just send a barcode as they also have a scale connected. I was sent a small C program that reads the scanner data and splits off either t...

Go to advanced search