Search found 54 matches

by Iczer
Dec 21, 2019 2:10
Forum: General
Topic: Logic trouble
Replies: 7
Views: 228

Re: Logic trouble

first and third - 2 times?
by Iczer
Dec 20, 2019 18:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 119
Views: 7196

Re: FreeBASIC 1.08 Development

for now FreeBasic have #Inclib "" and #LibPath "" pair fo libraries, but there a no #includePath "" for #include "", only -i command line option, with I fail to make work... is it possible to add something like #includePath "" to future FreeBasic 1.08?
by Iczer
Oct 30, 2019 20:29
Forum: Beginners
Topic: UDT Copy assignment operators
Replies: 3
Views: 219

Re: UDT Copy assignment operators

yes, i'm not using [0] element - only from 1 to iCount, so: dim as tagMainREF ptr pMainREF = new tagMainREF[iCount + 1]
by Iczer
Oct 30, 2019 18:37
Forum: Beginners
Topic: UDT Copy assignment operators
Replies: 3
Views: 219

UDT Copy assignment operators

I have some problems copying data between 2 UDT structures with Copy assignment operators. dim as tagMainREF aMainREF() dim as tagMainREF ptr pMainREF = new tagMainREF[iCount + 1] : Init(pMainREF,iCount) redim aMainREF(1 to iCount) For i As Integer = 1 To iCount aMainREF(i) = pMainREF[i] ' <- fail N...
by Iczer
Sep 29, 2019 10:41
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 43
Views: 6874

Re: FreeBASIC 1.07 Release Discussion

About manual - strptr() changes still not included [changed] - SADD/STRPTR(wstring) returns WSTRING PTR Syntax Declare Operator StrPtr ( ByRef lhs As String ) As ZString Ptr Declare Operator StrPtr ( ByRef lhs As WString )[b] As ZString Ptr[/b] Return Value Returns a ZString Ptr to a string's charac...
by Iczer
Aug 28, 2019 16:43
Forum: Beginners
Topic: Use Clear() function in fb1.07
Replies: 4
Views: 2763

Re: Use Clear() function in fb1.07

Thanks! I think i'm understand my error : Dim As ZString Ptr psTestString = Callocate(64,1) Dim As WString Ptr pwsTestString = Callocate(64,2) ' ............................ *psTestString = String(32,".") Clear(psTestString[10],Asc("x"),1) Print "Case 1 :: '";*psTestStr...
by Iczer
Aug 27, 2019 17:43
Forum: Beginners
Topic: Use Clear() function in fb1.07
Replies: 4
Views: 2763

Use Clear() function in fb1.07

It seems something changed in Clear() function in fb1.06 -> fb1.07 in fb1.06 this worked fine: SetItemWSTR (CPtr(WString Ptr,StrPtr(SomeWString512)), CPtr(WString Ptr,sqlite3_column_text16(sql_stat, 0)), sqlite3_column_bytes16(sql_stat, 0)) Sub SetItemWSTR (ByRef InnerStrAsPtr As WString Ptr, ByRef ...
by Iczer
May 14, 2019 21:27
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 32183

Re: New array features

Maybe Associative array would be great addition and also, to make array-functions list more complete, i think would be interesting to have (mostly for 1d arrays): Array Search (any good algorithms) Array FindAll (Find the indices of all occurrences of a search query between two points in a 1D or 2D ...
by Iczer
Apr 24, 2019 12:38
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 25306

Re: Threading questions/problems

i'm with XP64
by Iczer
Apr 23, 2019 16:15
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 25306

Re: Threading questions/problems

Thanks, I'm completely forgot about pointer going out of scope...
by Iczer
Apr 23, 2019 15:17
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 2645

Re: imp____acrt_iob_func, undefined

I successfully get around issue by creating: #Include Once "crt.bi" Extern "C" Declare Function __acrt_iob_func (ByVal index As ULong) As FILE Ptr Function __acrt_iob_func(ByVal index As ULong) As FILE Ptr Return @(__iob_func()[index]) End Function Declare Function __imp___acrt_i...
by Iczer
Apr 23, 2019 15:11
Forum: Beginners
Topic: Threading questions/problems
Replies: 80
Views: 25306

Re: Threading questions/problems

I had some problems passing data to thread started by ThreadCreate() - if I quit calling function right after creating thread, data passed to this thread go bad. So question - is ThreadCreate() returning only after starting thread and safely passing data inside it, or before it? Example - if i remov...
by Iczer
Apr 18, 2019 22:57
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 2645

Re: imp____acrt_iob_func, undefined

__iob_func() function it seems provided by msvcr120.dll, but including #inclib "msvcr120" not resolve issue. I tried to declare __iob_func() like this: Declare function __acrt_iob_func(ByVal index As UInteger) as FILE ptr #Define stdin __acrt_iob_func(STDIN_FILENO) #Define stdout __acrt_io...
by Iczer
Apr 18, 2019 15:22
Forum: General
Topic: imp____acrt_iob_func, undefined
Replies: 9
Views: 2645

Re: imp____acrt_iob_func, undefined

I'm run into same problem with undefined __imp___acrt_iob_func ***\FreeBASIC-1.06.0-win64\lib\win64/libcurl.a(mprintf.o):(.text+0x1b58): undefined reference to `__imp___acrt_iob_func' ***\FreeBASIC-1.06.0-win64\lib\win64/libcurl.a(mprintf.o):(.text+0x1bf3): undefined reference to `__imp___acrt_iob_f...
by Iczer
Jan 18, 2019 15:56
Forum: Windows
Topic: Can't we use SHELL32 dll like USER32?
Replies: 10
Views: 1042

Re: Can't we use SHELL32 dll like USER32?

Its already in standard includes, see:

Code: Select all

#Include "win\shellapi.bi"

Go to advanced search