freebasic.net - Search (2024)

  • Board indexSearch
  • Search
    • It is currently Nov 27, 2024 13:26
    • All times are UTC

Search found 8111 matches

Go to advanced search

Search found 8111 matches

  • Page 1 of 541
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 541
  • Next
by dodicat
Nov 17, 2024 21:03
Forum: Community Discussion
Topic: Big Crunch and not a Big Bang.
Replies: 9
Views: 716

Re: Big Crunch and not a Big Bang.

IMHO it is all pie in the sky. We create physics to rationalize Earthly events so we can use them to make our lives easier. We used to say "the laws of physics apply everywhere", so we ludicrously look into the cosmos and apply our physics there. Because our maths system is basically a cou...

  • Jump to post
by dodicat
Nov 07, 2024 18:20
Forum: Beginners
Topic: Mdi example help
Replies: 27
Views: 2813

Re: Mdi example help

Another three colour extractors sub getcolour overload(c as ulong,byref r as ubyte,byref g as ubyte,byref b as ubyte,byref a as ubyte) g=hibyte(c) b=lobyte(c) r=lobyte(hiword(c)) a=hibyte(hiword(c)) end sub function getcolour overload(c as ulong) as ubyte ptr static as ubyte u(3) fb_memcopy(u(0),c,4...

  • Jump to post
by dodicat
Nov 04, 2024 11:01
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 2538

Re: Happy birthday dodicat

Thanks Berkeley, plays well.
On reflection, 76 trombones might be apt also this year.

  • Jump to post
by dodicat
Nov 03, 2024 10:48
Forum: Community Discussion
Topic: The class with Constructor function did not return a bug
Replies: 5
Views: 1211

Re: The class with Constructor function did not return a bug

To keep the value of n intact you should use: Type WW ' nn As Long Declare Constructor End Type Constructor WW nn = 100 End Constructor Function MyFun() As ww Dim n As ww If 1 = 2 Then function= n 'Intentionally causing the function to not execute and return End Function for i As Long = 1 to 10 Prin...

  • Jump to post
by dodicat
Nov 02, 2024 10:54
Forum: Windows
Topic: Rnd6 for Windows
Replies: 43
Views: 7669

Re: Rnd6 for Windows

I note rand_s is in msvcrt.dll.
Pity it cannot be seeded, or BCryptGenRandom cannot be seeded, although deltarho's Rnd6Repeat goes half way there.
Thanks srvaldez.

  • Jump to post
by dodicat
Oct 30, 2024 12:25
Forum: Libraries Questions
Topic: FreeImage linking problems
Replies: 10
Views: 1490

Re: FreeImage linking problems

The .a file: https://sourceforge.net/projects/fbc/files/Older%20versions/0.90.1/Binaries%20-%20Windows/Libraries/ is no better. example of a version function from the .a file __ZN6LibRaw13versionNumberEv which breaks down to undefined reference to `LibRaw::versionNumber()@0' if I use extern "wi...

  • Jump to post
by dodicat
Oct 30, 2024 10:29
Forum: Libraries Questions
Topic: FreeImage linking problems
Replies: 10
Views: 1490

Re: FreeImage linking problems

If you call a dll at compile time (usual way), the easiest method is to put the dll in the same folder as your source code and include the .bi file which will call by #inclib and immediately find it. If you call at runtime with dylibload/dylibsymbol then you can use the the path to your dll, (... Fr...

  • Jump to post
by dodicat
Oct 28, 2024 11:36
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 2538

Re: Happy birthday dodicat

Thank you everybody.
demosthenesk, your tune sounds good here.
Lothar Schirm, your moonlight shadow plays OK here on Win 11.
The crt.bi has _beep, which plays demosthenesk's tune just fine, using the arrays in the same way.

  • Jump to post
by dodicat
Oct 27, 2024 10:24
Forum: Community Discussion
Topic: [offtopic] I got my dream BASIC computer.
Replies: 18
Views: 2950

Re: [offtopic] I got my dream BASIC computer.

Hi D.J.Peters. Have you disabled your private messaging? I couldn't send via that. So here it is, to save any messing around. On my Post Office receipt I have a FAD:188818 and Date of Issue:23/10/2024 SESSION: 2-906371 The box has red FRAGILE tape around it, and if you are able to pick it up but NOT...

  • Jump to post
by dodicat
Oct 23, 2024 21:32
Forum: Community Discussion
Topic: [offtopic] I got my dream BASIC computer.
Replies: 18
Views: 2950

Re: [offtopic] I got my dream BASIC computer.

give me a few days to arrange things No problem I bought UK power plug adapters for the german powerline. Meanwhile I played with an (online) Acorn Electron emulator and the BBC BASIC is much powerful as the microsoft C64 BASIC. I love how simple you can mix the two pass 6502 assembler and BASIC co...

  • Jump to post
by dodicat
Oct 22, 2024 18:28
Forum: Windows
Topic: Fast copy of all the bytes in a ubyte ptr to a string ??
Replies: 22
Views: 3132

Re: Fast copy of all the bytes in a ubyte ptr to a string ??

Testing Deltarho's idea against my own copier, and using functions returning a string from ubyte pointer. A few milliseconds longer because the accepting string is created within the timers. #cmdline "-gen gcc -Wc -O3" declare function CryptBinaryToString lib "Crypt32.dll" alias ...

  • Jump to post
by dodicat
Oct 22, 2024 13:43
Forum: Windows
Topic: Fast copy of all the bytes in a ubyte ptr to a string ??
Replies: 22
Views: 3132

Re: Fast copy of all the bytes in a ubyte ptr to a string ??

'FB_memcopy()' (or 'memcpy()' ) is a very optimized copy procedure, about 25 times faster than a byte-by-byte copy like the one above. I did check the speed with a very large array, and it is very fast for bytes. Try the array at 1000000 64 bit fbc .002 sec and if I optimize with -O3 optimization, ...

  • Jump to post
by dodicat
Oct 22, 2024 10:14
Forum: Windows
Topic: Fast copy of all the bytes in a ubyte ptr to a string ??
Replies: 22
Views: 3132

Re: Fast copy of all the bytes in a ubyte ptr to a string ??

If you don't want to use files, then a custom sub could do the job. (similar to memcpy or fb_memcopy) randomize Sub CopyToString(dest As Any Ptr,src As Any Ptr,size As Long) Dim As Ubyte Ptr newdst=dest Dim As Ubyte Ptr newsrc=src While size size-=1 *newdst=*newsrc newdst+=1 newsrc+=1 Wend End Sub #...

  • Jump to post
by dodicat
Oct 21, 2024 21:34
Forum: Windows
Topic: Fast copy of all the bytes in a ubyte ptr to a string ??
Replies: 22
Views: 3132

Re: Fast copy of all the bytes in a ubyte ptr to a string ??

Using files, as you suggested, with a ubyte pointer with size to string #include "crt.bi" Sub save(filename As String,apointer As Any Ptr,size As Ulong) Dim As file Ptr f = fopen((filename), "wb") Dim As Ubyte Ptr ap=apointer fwrite(Cptr(Typeof(ap),ap),size,1,f) fclose(f) End Sub...

  • Jump to post
by dodicat
Oct 18, 2024 18:08
Forum: General
Topic: Anyone using 16GB arrays and passing them around between functions?
Replies: 15
Views: 2302

Re: Anyone using 16GB arrays and passing them around between functions?

My machine report, divided again by 1024 for GB. 63451885068 bytes 59.0941729657352 GB availabe at this instance. 4.239118000026792 seconds This machine: Total Physical Memory 15.9 GB Available Physical Memory 11.4 GB Total Virtual Memory 22.8 GB Available Virtual Memory 17.9 GB Page File Space 6.89...

  • Jump to post

Search found 8111 matches

  • Page 1 of 541
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 541
  • Next

Go to advanced search

Jump to

  • Forum Policy
  • FreeBASIC
  • ↳ News
  • ↳ Community Discussion
  • ↳ Documentation
  • Platforms
  • ↳ DOS
  • ↳ Linux
  • ↳ Windows
  • ↳ Emscripten
  • Programming
  • ↳ Beginners
  • ↳ General
  • ↳ Game Dev
  • ↳ Hardware Interfaces / Communication
  • Libraries
  • ↳ Libraries Questions
  • User Contributed Sources
  • ↳ Projects
  • ↳ Sources, Examples, Tips and Tricks
  • ↳ Archive
  • Board index
  • All times are UTC
  • Delete cookies
  • Contact us

Powered by phpBB® Forum Software © phpBB Limited

Style by Arty

Privacy|Terms

freebasic.net - Search (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6818

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.