Search found 50 matches

by Iczer
Sep 29, 2019 10:41
Forum: Community Discussion
Topic: FreeBASIC 1.07 Release Discussion
Replies: 34
Views: 4222

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: 1809

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: 1809

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: 24070

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: 20737

Re: Threading questions/problems

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

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: 2220

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: 20737

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: 2220

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: 2220

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: 909

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

Its already in standard includes, see:

Code: Select all

#Include "win\shellapi.bi"
by Iczer
Jan 08, 2019 23:03
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 10523

Re: fbfrog header translator

Thanks!
by Iczer
Jan 07, 2019 23:02
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 10523

Re: fbfrog header translator

i'm trying to make bindings for Mecab https://github.com/ikegami-yukino/mecab/releases/tag/v0.996 but they turn out not complete - come declarations are missing... so = mecab.h file: /* MeCab -- Yet Another Part-of-Speech and Morphological Analyzer Copyright(C) 2001-2011 Taku Kudo <taku@chasen.org> ...
by Iczer
Apr 13, 2018 16:00
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 1096

Re: PCRE1 RegExp - String functions & Regular Expressions

it shows that pcre library you using was compiled without jit support CMake config should like that: /* config.h for CMake builds */ #define HAVE_DIRENT_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WINDOWS_H 1 #define HAVE_STDINT_H 1 #define HAVE_INTT...
by Iczer
Apr 13, 2018 14:29
Forum: Projects
Topic: PCRE1 RegExp - String functions & Regular Expressions
Replies: 7
Views: 1096

Re: PCRE1 RegExp - String functions & Regular Expressions

errors in preg_class.bas - in it replace function it could not handle replacement patterns where groups closely following on another, like "$1$2" so: sSubject = "aaa *** bbb ### ccc" sPattern = "(\w+)\W+(\w+)\W+(\w+)" sPeplacementPattern = "$1$2$3" wont work a...

Go to advanced search