Search found 1239 matches

by SARG
Apr 14, 2021 22:00
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 66
Views: 32046

Re: Simple WinAPI GUI library

Remove the 'h' from hBox_TxtIn -> Box_TxtIn

I guess that you don't completly understand what you are doing. Go forward step by step, try small things before fighting the big boss. ;-)
Anyway ask and I'll help you.
by SARG
Apr 14, 2021 7:02
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 66
Views: 32046

Re: Simple WinAPI GUI library

hedit1 is the handle of the edit control.

for putting the text :
setwindowtext(hedit1,text)

For getting the text :
getwindowtext(hedit1,text,25) ''here size limit = 25
by SARG
Apr 12, 2021 8:08
Forum: General
Topic: Win API function EM_SETSEL not highliting
Replies: 2
Views: 83

Re: Win API function EM_SETSEL not highliting

For SendMessage(Editor1, EM_SETSEL, SelStrt, SelEnd) '< This line seems to select, but no highlite can see After that line add : setfocus(editor1) For SendMessage(Editor1, EM_REPLACESEL, UndoEn, Text) '< This line expects an integer at param 4 !! replace text by Cast(LPARAM,strptr(text)) Not tested ...
by SARG
Apr 11, 2021 17:33
Forum: Beginners
Topic: Exist a Type for more than one variable?
Replies: 3
Views: 101

Re: Exist a Type for more than one variable?

Types can be nested. type typethingA piece1 as Integer piece2 as integer end type type typethingb piece1 as integer piece2 as integer end type type typearray thingA as typethingA thingB as typethingB end type dim as typearray array(5) array(1).thingA.piece1=10 array(4).thingB.piece2=15 print array(1...
by SARG
Mar 30, 2021 17:16
Forum: General
Topic: Problem with 64 bit gcc 8.4 by dodicat (split from 25215)
Replies: 74
Views: 1792

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.2.0 March 26, 2021)

Looks like SARG already took steps to prevent this issue in gas64 emitter. Not the case: The issue was that with the/a new version of binutils 2.36 the exe is relocated at a very high address above the 32bit limit and a such instruction : QWORD PTR ["+lname+"+rax*8]" can only handle ...
by SARG
Mar 29, 2021 21:20
Forum: General
Topic: Problem with 64 bit gcc 8.4 by dodicat (split from 25215)
Replies: 74
Views: 1792

Re: Problem with 64 bit gcc 8.4 by dodicat

@srvaldez Some weeks ago you reported an issue with gas64 (when using ld version 2.36). I fixed it but I got this warning : ' fbextra.x contains output sections; did you forget -T?" Recently Jeff released the modification and wrote about this message : "For the fbextra.x warning, if LD doe...
by SARG
Mar 25, 2021 20:49
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 834
Views: 180495

Re: FBGUI library for Windows 2

@D.J.Peters
I used the link you provided without any problem however it really links to :
httpS://users.freebasic-portal.de/freebasicru/w9start.html

So try with 's' added.
by SARG
Mar 25, 2021 17:51
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 834
Views: 180495

Re: FBGUI library for Windows 2

No problem here.
by SARG
Mar 15, 2021 19:24
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 355

Re: Dialog Example does not run

@lothar
You should also set the path for the rc file.....
by SARG
Mar 15, 2021 14:14
Forum: General
Topic: Default BYVAL or BYREF Parameter Passing?
Replies: 138
Views: 32695

Re: Default BYVAL or BYREF Parameter Passing?

And the only other thing I can think of is said ABI limits, where the default calling convention is register maybe. (iow where a BYVAL small record might not be on the stack but in registers). Though that is more a documentation exercise (BYval doesn't mean you can create a pointer to it) then a re...
by SARG
Mar 12, 2021 8:53
Forum: Community Discussion
Topic: Assigning a value to a function does not produce a compilation error
Replies: 7
Views: 348

Re: Assigning a value to a function does not produce a compilation error

Same problem with a sub.

Code: Select all

Function Foo(ByVal param As Integer)As Integer
   Return 2
End Function

sub sFoo(ByVal param As Integer)
End sub

Foo(3) = 5
sfoo(3)= 5

sleep
by SARG
Mar 08, 2021 8:20
Forum: Tips and Tricks
Topic: Zip/Unzip on Windows Without Dependencies
Replies: 6
Views: 345

Re: Zip/Unzip on Windows Without Dependencies

Added in version 1.08 :

- __FB_UNIQUEID_PUSH__(), __FB_UNIQUEID__(), __FB_UNIQUEID_POP__(), __FB_ARG_LEFTOF__(), __FB_ARG_RIGHTOF__(), __FB_JOIN__() builtin macros
by SARG
Mar 01, 2021 12:17
Forum: Beginners
Topic: Integer data types in 32-bit and 64-bit
Replies: 20
Views: 708

Re: Integer data types in 32-bit and 64-bit

Hi dodicat, It doesn't fail with a variable. yes because it's not handled in a same way : the arrays are created dynamically in the heap by executing code (fb_ArrayRedimEx). Only the structure of the arrays is in data section. STACK fixed size | V ------------- ------------- ^ | HEAP no fixed size b...
by SARG
Mar 01, 2021 11:14
Forum: Beginners
Topic: FBEdit internal Debugger with Command line program
Replies: 8
Views: 371

Re: FBEdit internal Debugger with Command line program

I just tested. In settings DBG box : param11 param22 Using this code from documentation : print "program launched via: " & Command(0) Dim As Integer i = 1 Do Dim As String arg = Command(i) If Len(arg) = 0 Then Exit Do End If Print "command line argument " & i & "...
by SARG
Mar 01, 2021 10:54
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 401
Views: 53176

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

You are doing fantastic work, SARG. And I am sure you want to beat that bloody gcc compiler ;-) Thanks, fortunately you understood my joke ;-) My purpose is more to have the possibility to debug efficiently therefore gcc with O2 and gas64 are not competiting in the same class. However by doing a se...

Go to advanced search