Search found 47 matches
- Apr 20, 2018 7:15
- Forum: Beginners
- Topic: Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)
- Replies: 6
- Views: 1774
Re: Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)
Hi, I got a Warning: (FB105/x64 Win) "C:\PRG\FBC\fbc -i \prg\fbc\tdlib -p \prg\fbc\tdlib -s console -b "problemAddress.bas" problemAddress.bas(3) warning 23(2): Array too large for stack, consider making it var-len or SHARED" commenting out the String array: 'REM' Dim As String d...
- Apr 17, 2018 12:10
- Forum: Community Discussion
- Topic: END/STOP and destructors
- Replies: 17
- Views: 2879
Re: END/STOP and destructors
Hi, With Windows: Question: Why put a END/STOP/SYSTEM at the end of the code ? It is best not to put anything at all ! Maybe to explicitly pass the returncode / errorcode to the OS? :) BTW: System, Stop and End produce all the same code (FBCx64 /WIN): mov ecx, 0 ' the "0" can be set by (re...
- Apr 09, 2018 18:03
- Forum: Beginners
- Topic: how to set the dates?
- Replies: 28
- Views: 3944
Re: how to set the dates?
hi. @Badidea: "Sunday-08-April-2018 22-14-36 "-" for time is a bit weird." Not, if you want the output as part of a file name :) @mr Swiss Speed might be an issue if you ask maybe 100 times per second for the current DateTime. As soon as you write to Screen or a file, the writing...
- Apr 09, 2018 8:58
- Forum: General
- Topic: How can I return a value using a MACRO?
- Replies: 6
- Views: 825
Re: How can I return a value using a MACRO?
Hi, Thank you all for the answers. But I think my question was too less precise. My "function-macro" (let us call it "change_it()" would consist of a couple of lines, with IFs and ELSEs (NOT #if !) and a call to a real function, so that one-liners won´t work. The result can not b...
- Apr 08, 2018 22:08
- Forum: Linux
- Topic: Sleep command issue
- Replies: 40
- Views: 7454
Re: Sleep command issue
Hallo,
Same : NO waiting after sleep; Ubuntu 16.04, as subsystem on WIN10 :)
Tom
Code: Select all
screenres 800,600
?"one"
Sleep
?"two"
Sleep
?"three"
Sleep
?"four"
Tom
- Apr 08, 2018 21:33
- Forum: General
- Topic: How can I return a value using a MACRO?
- Replies: 6
- Views: 825
How can I return a value using a MACRO?
Hi, I didn´t find a way to make a MACRO call to look/work like a function. The idea is from the CHM reference for va_arg: *** variable =va_arg ( argument_list, datatype ) Description The va_arg MACRO allows the use of a variable number of arguments within a function. va_arg returns the current argum...
- Apr 08, 2018 2:54
- Forum: Sources, Examples, Tips and Tricks
- Topic: Implementing a simple plug-in architecture
- Replies: 19
- Views: 2451
Re: Implementing a simple plug-in architecture
Hi Paul, well done. Don´t bother about LUA etc.; this wasn´t your aim, I think. The code is easily readable, and your comments simply are excellent. For those who are a bit afraid of handling DLLs, a few lines of code which transform your DLL-Sources into testable EXEs. Just append the code to your ...
- Apr 07, 2018 7:11
- Forum: Beginners
- Topic: 32/64 bit compiler issue
- Replies: 10
- Views: 2345
Re: 32/64 bit compiler issue
Hi, no idea about the reason, but: On my PC prog#2 crashes with x32 as well as with x64, both FB 1.05/Win But: I found a "magic number", so others don´t need to try out: 26170 (last good one), 26171 (and above: crash) And: it is NO matter of memory; tried in VM with 2 to 8 GB, and even exp...
- Apr 07, 2018 7:03
- Forum: General
- Topic: (2^64) - 1 = 0 but numeric literal is ok?
- Replies: 7
- Views: 805
Re: (2^64) - 1 = 0 but numeric literal is ok?
Hi,
just to make it "solved" ??
Adi
just to make it "solved" ??
Code: Select all
const y as ulongint = (2 Shl 63) - 1ull
print "y = ";y; " (shifted)"
Sleep
- Mar 29, 2018 13:07
- Forum: General
- Topic: Function Flipping
- Replies: 31
- Views: 2004
Re: Function Flipping
Hi Gablea, At first glance, I thought you only have 512 KILO bytes. No chance, I thought. But then I re-read your post. 512 MB / machine. Fine. The Best Solution: try to install OS/2 32 Bit. It runs several DOS instances with really good performance, and: stable. but... where to get it these days? A...
Re: Set EOF; truncate
Hi, truncate for Win , Linux: no idea 'trunc ' notDOCed, but works: truncate, ' found somewhere in the C-RTL ' WIN only :( #Include "File.bi" ' for "Filelen()" declare function truncate Cdecl alias "truncate" ( _ byval __file as zstring ptr, _ byval __length as LongInt ...
- Mar 07, 2018 0:02
- Forum: Beginners
- Topic: How can i use variables declared in WinMain function in WndProc function ?
- Replies: 37
- Views: 5766
Re: How can i use variables declared in WinMain function in WndProc function ?
@mr swiss reading manual is fine. even finer is to have a try : Function dummy() As TypeOf ( Err () ) Err=99:Return Err() End function Print "Initital ERR: ";Err() Err=222:Print Err Err=111:Var xxx=dummy() Print Err(); " =" ;xxx Sleep:STOP just to remember: after each single IO-a...
- Feb 28, 2018 7:16
- Forum: Beginners
- Topic: Programming Newbie Compiler Question
- Replies: 32
- Views: 4355
Re: Programming Newbie Compiler Question
Hi, @seafriend , I´m with you. @lizard,you asked: » Feb 27, 2018 13:55 "Why would one want to compile two .bas files in one executable? The second could be #included in the first. Mostly it contains functions, subs and such. Additionally .o, .rc or other files could be linked in. :-)" Why?...
- Feb 12, 2018 18:17
- Forum: Libraries & Headers
- Topic: gui_chung for windows gui
- Replies: 10
- Views: 4465
Re: gui_chung for windows gui
Hi Chung, thank you, but : ()\ld.exe: skipping incompatible ./glext.dll when searching for -lglext ()\ld.exe: skipping incompatible ./glext.dll when searching for -lglext Make done I couldn´t find a precompiled glext.dll for x64. Neither "here" nor "there" nor "anywhere"...
- Feb 11, 2018 23:10
- Forum: Libraries & Headers
- Topic: gui_chung for windows gui
- Replies: 10
- Views: 4465
Re: gui_chung for windows gui
Hi Chung, I like your approach to simplify GUI programming. If you agree, I (or others) will use your code, modify and maybe in some years re-publish it :) Question: Is there any _easy to understand_ DLL / LIB for displaying pictures with win64 that could be used instead of the "old" JPG D...