Search found 4529 matches

by dodicat
Jan 16, 2018 15:06
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 39
Views: 634

Re: Routines to write syntax highlighted code

Here is a list from the wiki page I have 491 distinct entities. dim as string s(490)= _ {"__DATE__","__DATE_ISO__","__FB_64BIT__","__FB_ARGC__","__FB_ARGV__", _ "__FB_ARM__","__FB_ASM__","__FB_BACKEND__","__FB_BIGEN...
by dodicat
Jan 16, 2018 11:32
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 39
Views: 634

Re: Routines to write syntax highlighted code

Here is the FBWiki : CatPgFullIndex today if it is any help. FBWiki : CatPgFullIndex __DATE__ __DATE_ISO__ __FB_64BIT__ __FB_ARGC__ __FB_ARGV__ __FB_ARM__ __FB_ASM__ __FB_BACKEND__ __FB_BIGENDIAN__ __FB_BUILD_DATE__ __FB_CYGWIN__ __FB_DARWIN__ __FB_DEBUG__ __FB_DOS__ __FB_ERR__ __FB_FPMODE__ __FB_FP...
by dodicat
Jan 16, 2018 1:37
Forum: Beginners
Topic: Sample programs
Replies: 17
Views: 327

Re: Sample programs

These compression files need the associated library files (dll or .a) which should be downloaded separately. quicklz.bi seems to be in the 32 bit inc folder. 64 bit FreeBASIC is relatively new. Try examples\GUI\win32\calendar.bas. This uses the windows built in libraries. You'll soon get the hang of...
by dodicat
Jan 16, 2018 0:59
Forum: Windows
Topic: Making import library from MSVC dll for FB use
Replies: 21
Views: 361

Re: Making import library from MSVC dll for FB use

To save loading all the windows stuff. LoadLibraryEx can be called from kernel32.dll, and dylibsymbol seems to pair well with it, even when DONT_RESOLVE_DLL_REFERENCES (1) is not used. Extern "Windows" Declare Function LoadLibraryEx Alias "LoadLibraryExA"(Byval As zstring Ptr, By...
by dodicat
Jan 15, 2018 10:37
Forum: Windows
Topic: Making import library from MSVC dll for FB use
Replies: 21
Views: 361

Re: Making import library from MSVC dll for FB use

I don't have exel or office . I downloaded the dll on it's own. Whether the load is suitable for every function I don't know. functions with parameters, perhaps pascal should be the calling method. I tried the msvcrt.dll load extern "C" declare function loaddll alias "_loaddll"(a...
by dodicat
Jan 14, 2018 23:31
Forum: Windows
Topic: Making import library from MSVC dll for FB use
Replies: 21
Views: 361

Re: Making import library from MSVC dll for FB use

I got a result with LoadlibraryEx https://msdn.microsoft.com/en-gb/library/windows/desktop/ms684179(v=vs.85).aspx #include "windows.bi" var t=DONT_RESOLVE_DLL_REFERENCES Dim version as function() as long dim as any ptr L=LoadlibraryEx("XLCall32.dll",0,t) if L=0 then print "U...
by dodicat
Jan 13, 2018 13:18
Forum: Windows
Topic: Cannot Get up on Win 10
Replies: 11
Views: 168

Re: Cannot Get up on Win 10

Use a portable (.zip) as Tourist Trap suggests.
Don't use the folder Program files.
I have my freebasic folder on the desktop.
by dodicat
Jan 13, 2018 2:21
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 162
Views: 5471

Re: Pure FB Runtime Library (in progress)

My apologies. -gen GAS. Can you not just use the variadic macros. I tested a while back, they compiled the chr function OK. I think this was my mock up #undef chr #define va__first(n) cptr(typeof(n) ptr,@(n)+1) 'restricted to [unsigned] integers / doubles #define va__arg(a,t) peek( t, a ) ''#define ...
by dodicat
Jan 13, 2018 1:10
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 162
Views: 5471

Re: Pure FB Runtime Library (in progress)

I cannot get the makefile to work. But my fbc is not on the system path, so I probably have made a wrong edit to the makefile. -gen gcc -c *.bas compiles all the files to .o no errors. (Run from a .bat file in fbrtLib-master.) from then I compiled to a .a lib file using ar rcs librtlib2.a *.o (from ...
by dodicat
Jan 12, 2018 14:43
Forum: Windows
Topic: Docking windows
Replies: 8
Views: 148

Re: Docking windows

Win 10 fb 1.05.0 (the latest official build) Works fine here. Multiple windows (3) attached to each other. Move the big window, they stay attached. can be separated by moving the small ones away. Got one warning about boolean operands mixing.(line 347) Fixed by: if(rcNew.left <> rcChild.left) or (rc...
by dodicat
Jan 12, 2018 13:12
Forum: Tips and Tricks
Topic: Astrolog, glyph redefinition and turtle graphics
Replies: 8
Views: 180

Re: Astrolog, glyph redefinition and turtle graphics

I agree with you. Draw can be a very useful tool for some tasks, and an important part of FeeeBASIC. Astrology is not my thing. I looked up Scorpio (I thought lt's symbol was a scorpion) but It turns out there are others. Dim as string zz = _ "S4C4278241280BM400,300M+-9,-6M+0,-10M+4,-13M+8,-7M+...
by dodicat
Jan 11, 2018 15:21
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 111

Re: GFX_FULLSCREEN not working properly

x and y are zero. But for generality x,y is better, I agree. Pity about 64 bit. I did mention the bug in the passing https://www.freebasic.net/forum/viewtopic.php?f=2&t=26047&p=238327&hilit=%2Amovewindow%2A#p238327 When FreeBASIC is up and running again I shall use a bug report. Note Win...
by dodicat
Jan 11, 2018 14:28
Forum: Windows
Topic: GFX_FULLSCREEN not working properly
Replies: 6
Views: 111

Re: GFX_FULLSCREEN not working properly

From the help file, use this to check your supported full screen resolutions Dim As Integer mode, w, h Print "Resolutions supported at 32 bits per pixel:" mode = ScreenList(32) While (mode <> 0) w = HiWord(mode) h = LoWord(mode) Print w & "x" & h mode = ScreenList() Wend ...
by dodicat
Jan 10, 2018 20:59
Forum: Community Discussion
Topic: FreeBASIC Namespace Project
Replies: 47
Views: 908

Re: FreeBASIC Namespace Project

line captured variadically

Code: Select all


#macro drawline(x1,y1,x2,y2,args...)
line( x1, y1 ) - ( x2, y2 ),args
#endmacro

screen 19

drawline(200,200,500,500,4,bf)
drawline(200,200,500,500,15,b)
drawline(200,200,500,500,0)
drawline(200,100,500,100,7,,&b0000000011110000 )
sleep
by dodicat
Jan 10, 2018 0:11
Forum: Community Discussion
Topic: FreeBASIC Namespace Project
Replies: 47
Views: 908

Re: FreeBASIC Namespace Project

<With a light heart> Personally I think it is a fly by night idea. Stationary in it's track. A boulevard of broken dreams (somebody said somewhere) A road to nowhere. A lonely place. using namespace.std No, that means loading everything, which is not wanted. #define gfx #define std sub bird dim as i...

Go to advanced search