Search found 1473 matches

by Imortis
Apr 09, 2018 22:40
Forum: General
Topic: Constructor question [solved]
Replies: 3
Views: 91

Re: Constructor question

In this case they are the same, since the Type<...> initializer will call the constructor that matches the parameter list given.
by Imortis
Apr 09, 2018 14:41
Forum: Tips and Tricks
Topic: Implementing a simple plug-in architecture
Replies: 19
Views: 427

Re: Implementing a simple plug-in architecture

lizard wrote:But were these plugins programmed by others or the authors itself?


I personally programmed a couple plugins for FBEdit.
by Imortis
Apr 04, 2018 21:52
Forum: Documentation
Topic: Provide a self-description, how-to?
Replies: 3
Views: 60

Re: Provide a self-description, how-to?

You can just call fbc without any parameters on the command line to get the flag list.

There is a -profile option, but that allows you to profile your code, not the computer or the compiler.
by Imortis
Apr 04, 2018 21:17
Forum: Documentation
Topic: Provide a self-description, how-to?
Replies: 3
Views: 60

Re: Provide a self-description, how-to?

You could also run do this on the command line:

Code: Select all

fbc -version
by Imortis
Apr 04, 2018 15:23
Forum: Tips and Tricks
Topic: My simple array no more redim, ubound, lbound ...
Replies: 20
Views: 444

Re: My simple array no more redim, ubound, lbound ...

fxm wrote:The file must be saved in ASCII (not in UNICODE) encoding before compiling.

Well how about that... I had no idea. Sure enough that fixed it.
by Imortis
Apr 03, 2018 21:39
Forum: Tips and Tricks
Topic: My simple array no more redim, ubound, lbound ...
Replies: 20
Views: 444

Re: My simple array no more redim, ubound, lbound ...

fbc.exe wrote:"../fbc32/fbc.exe" -b "F:/Projects/AutoArrayTest.bas"

F:\Projects\AutoArrayTest.bas(40) error 20: Type mismatch



Compile Error!


Huh... Weird... I wonder what I am doing different? I may need to wipe my FBC install and start again. That is very strange.
by Imortis
Apr 03, 2018 20:39
Forum: Tips and Tricks
Topic: My simple array no more redim, ubound, lbound ...
Replies: 20
Views: 444

Re: My simple array no more redim, ubound, lbound ...

fbc.exe wrote:FreeBASIC Compiler - Version 1.06.0 (03-08-2018), built for win32 (32bit)
Copyright (C) 2004-2016 The FreeBASIC development team.
standalone
by Imortis
Apr 03, 2018 16:28
Forum: Tips and Tricks
Topic: My simple array no more redim, ubound, lbound ...
Replies: 20
Views: 444

Re: My simple array no more redim, ubound, lbound ...

Am I the only one that had to wrap all of the print statement access to the elements of these arrays in STR() functions to get the example to compile? If so, why is that? Like this: ' array of UDT DEFINE_DIM_ARRAY(VECTOR) Vectors Vectors[0] = type(1,0,0) Vectors[1] = type(0,1,0) Vectors[3] = type(0,...
by Imortis
Mar 25, 2018 17:40
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 202
Views: 8446

Re: Pure FB Runtime Library (in progress)

Hi Imortis, As evident from https://github.com/ImortisInglorian/fbrtLib you have put much time and effort in to the work. Hopefully you will take these suggestions in the most positive way: Please update README.md to include: 1) what to directory to checkout to? 2) how to build? setting FB_SRC_PATH...
by Imortis
Mar 20, 2018 20:09
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 26
Views: 923

Re: Speed of FreeBasic

Using -gen GCC -O3 is not really fair in this context. Because that is just passing the compile out to GCC. If you want a good idea of how fast the compiled EXE's are FROM FBC, then you need to let FBC do the compile.
by Imortis
Mar 12, 2018 14:38
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 202
Views: 8446

Re: Pure FB Runtime Library (in progress)

I have been rather busy for the last few weeks and have done absolutely NO work on this project in that time. If anyone else wants to pitch in, now might be a good time to do so. I am not sure when I will be able to return to work on this project so it may be stagnant for a while if no one else want...
by Imortis
Feb 15, 2018 16:13
Forum: Projects
Topic: Pure FB Runtime Library (in progress)
Replies: 202
Views: 8446

Re: Pure FB Runtime Library (in progress)

I just got a new linux distro setup on my laptop. I got FB installed (64bit), and I wanted to try compiling this from there, but I am not sure how to format the "FBC_SRC_PATH" for linux. Everything I have tried just keeps telling me I need to set the FBC_SRC_PATH
by Imortis
Feb 12, 2018 22:55
Forum: Game Dev
Topic: OOP for Game programs?
Replies: 7
Views: 287

Re: OOP for Game programs?

New and Delete work with pointers, so you will need to have an array of pointers. In your update loop, you will want to check the alive member, then if it is 0, Delete that item and set it's value to 0. Then when doing the draw/move functions you will want to check first if the item in the array is ...
by Imortis
Feb 05, 2018 15:49
Forum: Hardware Interfaces / Communication
Topic: Include files for libUSB Linux and Windows.
Replies: 53
Views: 8824

Re: Include files for libUSB Linux and Windows.

srvaldez wrote:... I got confused on libusb_device **devs, not sure if ptr ptr is the right FB interpretation.


A good translation of that into FB would be:

Code: Select all

dim devs as libusb_device ptr ptr

Go to advanced search