Search found 2113 matches

by srvaldez
Oct 06, 2019 17:12
Forum: Libraries
Topic: FBTrueType static Win/Lin 32/64-bit
Replies: 65
Views: 32501

Re: FBTrueType static Win/Lin 32/64-bit

@jupe
are you a BOT ?
by srvaldez
Oct 04, 2019 17:02
Forum: General
Topic: Howto access global shared array from dynamic library ? (Solved)
Replies: 10
Views: 642

Re: Howto access global shared array from dynamic library ?

I don't see how your code could work, however, passing the array to the dll should work, showTest(a())
by srvaldez
Oct 04, 2019 14:18
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1283

Re: String Sort problem

Hi Dinosaur
c=s[i]=58 sets c to true if s[I]=":", in retrospect, I can see that it looks confusing
but I am glad that I was able to help
by srvaldez
Oct 04, 2019 2:26
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1283

Re: String Sort problem

or dim as string s = "{"+chr(34)+"system"+chr(34)+":{"+chr(34)+"get_sysinfo"+chr(34)+":{"+chr(34)+"sw_ver"+chr(34)+":"+chr(34)+"1.5.5 Build 181225 Rel.102720"+chr(34)+","+chr(34)+"hw_ver"+chr(34)+&quo...
by srvaldez
Oct 04, 2019 1:47
Forum: General
Topic: String Sort problem
Replies: 24
Views: 1283

Re: String Sort problem

Hi Dinosaur perhaps this will give you an idea on how to tackle the problem dim as string s = "{"+chr(34)+"system"+chr(34)+":{"+chr(34)+"get_sysinfo"+chr(34)+":{"+chr(34)+"sw_ver"+chr(34)+":"+chr(34)+"1.5.5 Build 181225 Rel.1...
by srvaldez
Oct 03, 2019 3:19
Forum: Community Discussion
Topic: When can i use FreeBasic on mac?........
Replies: 1
Views: 513

Re: When can i use FreeBasic on mac?........

hello kankouhin7937
what OS version are you using?
I can provide you with binaries thanks to TeeEmCee, but I need to know your OS version

on second thought, please prove to me that you are not a BOT
by srvaldez
Sep 29, 2019 8:47
Forum: Beginners
Topic: structure in same structure
Replies: 4
Views: 635

Re: structure in same structure

fbfrog translates it like this type redisReply as long type integer as longint len as uinteger str as zstring ptr elements as uinteger element as redisReply ptr ptr end type @fxm I agree adding the underscore, but strangely enough, FB compiles the above without complaints a dummy example type redis...
by srvaldez
Sep 25, 2019 12:24
Forum: Beginners
Topic: problem with namespace
Replies: 10
Views: 734

Re: problem with namespace

@coderJeff
first I was using version 1.06 but then after reading your post I switched to version 1.07
thank you for your advise
@fxm
yes, that works, thanks
by srvaldez
Sep 25, 2019 11:24
Forum: Beginners
Topic: problem with namespace
Replies: 10
Views: 734

Re: problem with namespace

hello fxm
yes, your approach works for the example given, however it won't work if you decide to add += and similar
by srvaldez
Sep 25, 2019 0:59
Forum: Beginners
Topic: problem with namespace
Replies: 10
Views: 734

Re: problem with namespace

not that anybody cares, but the solution is to enclose the declares with extern "windows" and use uppercase function names extern "Windows" Declare Function CADD (Byval lhs As complex, rhs As complex) As complex Declare Function CSUB (Byval lhs As complex, rhs As complex) As comp...
by srvaldez
Sep 24, 2019 22:18
Forum: Beginners
Topic: problem with namespace
Replies: 10
Views: 734

Re: problem with namespace

fxm the first snippet is the library, it's compiled into a library the second snippet tests the library, as far as I can see, there are no duplicate definitions, not if compiled separately the problem arises because the namespace mangles the function names of the library and therefore the linker can...
by srvaldez
Sep 24, 2019 20:42
Forum: Beginners
Topic: problem with namespace
Replies: 10
Views: 734

problem with namespace

suppose I made a library and then overload the operators, everything works, except when using a namespace. how would you solve this? here's an example complex-lib.bas compile with -lib Type complex As Double re, im End Type Function cadd (Byval lhs As complex, rhs As complex) As complex Dim As compl...
by srvaldez
Sep 23, 2019 2:13
Forum: Community Discussion
Topic: Upgraded to FreeBASIC 64bit, now problems
Replies: 10
Views: 937

Re: Upgraded to FreeBASIC 64bit, now problems

hello ShawnLG here's what I suggest that you try, change all occurrences of Integer to Long, then try to compile, correct any errors and try again there are some functions that require integer parameters whether you compile for 32 or 64 bit but most of your 32-bit integer variables will be long. in ...
by srvaldez
Sep 15, 2019 7:53
Forum: General
Topic: UEZ's sin6th, cos6th
Replies: 0
Views: 970

UEZ's sin6th, cos6th

I thought that I might be able to speedup UEZ's Rotating Earth build 2019-04-14 https://www.freebasic.net/forum/viewtopic.php?f=7&t=27543 by tweaking his trig functions a tiny bit, but no luck however, if you use -gen gcc then they may be a bit faster, but not necessarily, depends on the O level...

Go to advanced search