Search found 62 matches

by littlebigman
Mar 29, 2022 20:51
Forum: Hardware Interfaces / Communication
Topic: IP Address
Replies: 10
Views: 15995

Re: IP Address

I wanted a GUI alternative to Windows' ipconfig, and "simple" because I only need IP + mask + gateway infos.

I'll add a dialog box, and it'll be fine.

Thanks much.
by littlebigman
Mar 29, 2022 16:39
Forum: Hardware Interfaces / Communication
Topic: IP Address
Replies: 10
Views: 15995

Re: IP Address

Hello, Resurrecting a very old thread. I'd like to write a simple GUI alternative to ipconfig. After adding "Dim i as uinteger", the code above does compile on Windows, but crashes when run. Is there a simple way to get the IP + mask + gateway of all Ethernet adapters on the local host (&q...
by littlebigman
Mar 05, 2022 6:12
Forum: Beginners
Topic: [SOLVED] What file to download? "Disk read error!"
Replies: 5
Views: 854

Re: [SOLVED] What file to download? "Disk read error!"

I notice even the installer doesn't update Windows' PATH, so it won't find fbc.exe, and the include + libraries. Thus, after unzipping FreeBASIC-x.7z in eg. c:\FreeBasic\, append the following to Windows' PATH: C:\FreeBasic;C:\FreeBasic\inc;C:\FreeBasic\lib\win32 Third-party libraries (.a, .dll) mus...
by littlebigman
Mar 04, 2022 11:09
Forum: Beginners
Topic: Regular expression module(s)?
Replies: 2
Views: 829

Re: Regular expression module(s)?

Thanks. Looks like all it takes is copying the .dll and .a files into Freebasic's \lib\win32\, and including either regex.bi (PCRE, PCRE2) or tre.bi (TRE). Which regex engine do you recommend? -- Edit "The program can't start because tre.dll is missing from your computer. Try reinstalling the p...
by littlebigman
Feb 28, 2022 18:40
Forum: Beginners
Topic: [SOLVED] What file to download? "Disk read error!"
Replies: 5
Views: 854

Re: What file to download? "Disk read error!"

Thanks much.

The EXE succesfully installed the whole thing.

I'm still using 32-bit Windows, so no need/use for 64-bit stuff.

I'll check out https://www.geany.org/.
by littlebigman
Feb 28, 2022 18:34
Forum: Beginners
Topic: Regular expression module(s)?
Replies: 2
Views: 829

Regular expression module(s)?

Hello, The wiki doesn't have a top-level page on using regular expressions, but there are a couple of threads in the forum archives. Am I correct in understanding that 1) Freebasic has include files for two regex engines (\examples\regex\: PCRE and TRE), and 2) the source of the libraries must be do...
by littlebigman
Feb 28, 2022 15:59
Forum: Beginners
Topic: [SOLVED] What file to download? "Disk read error!"
Replies: 5
Views: 854

[SOLVED] What file to download? "Disk read error!"

Hello, I have two issues: 1. I'm confused about what file I should download to write and compile a Freebasic file: FreeBASIC-1.09.0-win32.7z 2022-01-01 19.0 MB 6 fbc-1.09.0-win32.7z 2022-01-01 3.2 MB 1 winlibs-gcc-9.3.0 2022-01-01 438 win32-mingworg 2022-01-01 2 2. When unzipping FreeBASIC-1.09.0-wi...
by littlebigman
Nov 23, 2017 15:27
Forum: Sources, Examples, Tips and Tricks
Topic: UUID generator (windows only)
Replies: 11
Views: 5806

Re: UUID generator (windows only)

Worked fine. Thank you.
by littlebigman
Nov 23, 2017 14:55
Forum: Sources, Examples, Tips and Tricks
Topic: UUID generator (windows only)
Replies: 11
Views: 5806

Re: UUID generator (windows only)

This is a newbie question.

I'd like to remove the { and } characters from the output:

Code: Select all

{8421CBA2-6730-4A72-AB1D-7E53556BBA96}
The reason is that I'd like to use the code above to generate unique filenames.

Is there a simple way to do this in Freebasic?

Thank you.
by littlebigman
Jan 22, 2016 15:02
Forum: Beginners
Topic: Code to read title from HTML files, and generate index?
Replies: 13
Views: 2508

Code to read title from HTML files, and generate index?

Hello For someone running a basic static web site, I need a simple tool to 1) read a bunch of HTML pages, 2) extract the contents of the <title> tag in each file, and 3) build an index file with hyperlinks to each HTML file, ready to be copy-pasted into the home page. I checked the wiki before askin...
by littlebigman
Apr 29, 2015 12:39
Forum: Beginners
Topic: Check which charset was used to write a document?
Replies: 9
Views: 2236

Check which charset was used to write a document?

Hello I need to write a utility that, if need be, will translate e-mails into ISO 8859-1, aka Latin1. E-mails can be written with different charsets, including UTF8, those used in Unix, Macintosh, etc. http://en.wikipedia.org/wiki/ISO/IEC_8859-1 I was wondering if Freebasic has a library that can ta...
by littlebigman
Apr 25, 2015 1:33
Forum: Beginners
Topic: Writing a DLL in Basic instead of C?
Replies: 4
Views: 1325

Re: Writing a DLL in Basic instead of C?

I'm on my way. Thanks.
by littlebigman
Apr 23, 2015 13:41
Forum: Beginners
Topic: Writing a DLL in Basic instead of C?
Replies: 4
Views: 1325

Re: Writing a DLL in Basic instead of C?

Thanks for the info.

I'll read up and experiment.

---

Edit : is there a document that sums up how to convert C source into Freebasic, including data types and pitfalls?