Search found 236 matches

by Xusinboy Bekchanov
Oct 19, 2020 17:07
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 21
Views: 413

Re: Execution timing of a Sub launched as a thread

- Is the 'myThread()' Sub (launched as a thread) always executed after the 'ptid' assignment (with the created thread ID)? - In fact, it seems that the first instruction line of 'myThread()' is always executed after the assignment of 'ptid' by 'Th...
by Xusinboy Bekchanov
Oct 19, 2020 16:34
Forum: General
Topic: Execution timing of a Sub launched as a thread
Replies: 21
Views: 413

Re: Execution timing of a Sub launched as a thread

Doesn't need to be set to ptid 0: Dim As Any Ptr ptid Sub myThread (ByVal p As Any Ptr) Dim As Any Ptr ptid = *Cast(Any Ptr Ptr, p) If ptid = 0 Then Print "the assignment 'ptid = Threadcreate(@myThread, @ptid)' is not yet made" Else Print "the assignment 'ptid = Threadcreate(@myThread...
by Xusinboy Bekchanov
Oct 18, 2020 15:20
Forum: Linux
Topic: Errors in asm: invalid use of register, bad expression...
Replies: 6
Views: 140

Re: Errors in asm: invalid use of register, bad expression...

I have no problem compiling. What version of the compiler are you using?
by Xusinboy Bekchanov
Oct 08, 2020 14:35
Forum: General
Topic: Break long string onto shorter lines
Replies: 9
Views: 275

Re: Break long string onto shorter lines

I was wrong about Preserve
by Xusinboy Bekchanov
Oct 08, 2020 14:12
Forum: General
Topic: Break long string onto shorter lines
Replies: 9
Views: 275

Re: Break long string onto shorter lines

That's right: #include "fbgfx.bi" Using FB Dim As String letter,a_line,a_string Dim As UByte numoflines,endoftheprogram=0 Dim lines(Any) As String Dim As UShort placeintheline=1,prevspace=1,numofletters=0,startintheline=1 a_string="This is a long string onto the screen and maybe it wi...
by Xusinboy Bekchanov
Oct 07, 2020 1:41
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 382
Views: 40788

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

Thanks to both of you.
by Xusinboy Bekchanov
Oct 06, 2020 10:28
Forum: Hardware Interfaces / Communication
Topic: Try to use inpout32.dll
Replies: 43
Views: 836

Re: Try to use inpout32.dll

Because I tried too with your code in 32 and 64 bits #inclib "InpOut32" Declare Sub Out32 Alias "Out32" (data As short, port As short) Dim As short MyData=1, MyPort=2 Out32(MyData, MyPort) Print "all is fine" sleep result: D:\basic\FreeBASIC>fbc prueba.bas prueba.o:fak...
by Xusinboy Bekchanov
Oct 06, 2020 7:20
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 4
Views: 244

Re: Convert vbscript to FB

InputBox And MsgBox (MessageBox) Example: #define UNICODE #include once "windows.bi" #include once "/win/commctrl.bi" Dim Shared As HWND InputBoxWindow, EditBox, Button Dim Shared As WString * 255 TextMessage = "Type text here" Function WndProc(hWnd As HWND, msg As UINT...
by Xusinboy Bekchanov
Sep 28, 2020 9:33
Forum: Windows
Topic: Simple template with menu, edit control, listbox and statusbar
Replies: 11
Views: 283

Re: Simple template with menu, edit control, listbox and statusbar

Just in case, if it produces this error: (2) error 23: File not found, "inc\win\commctrl.bi" in '#Include "inc\win\commctrl.bi" ' for CreateStatusWindow' ... it means that you started the compilation from a folder different from your main FreeBasic folder (i.e. the one where fbc...
by Xusinboy Bekchanov
Sep 26, 2020 16:33
Forum: Community Discussion
Topic: Compiling 32/64
Replies: 4
Views: 166

Re: Compiling 32/64

Where can I see that ? I had a look into the settings (FBIde0.4.6r4) , and I see only one compiler-path. But anyway I was NOT asking about the compiler-path but how I can have automatically - an executable with a name MyProgram 32 .exe when I compile MyProgram.bas with the 32-bit compiler - an exec...
by Xusinboy Bekchanov
Sep 26, 2020 15:32
Forum: Community Discussion
Topic: Compiling 32/64
Replies: 4
Views: 166

Re: Compiling 32/64

This is available in the FreeBasic IDE's, which specifies two or more compiler paths (32 and 64-bit)
by Xusinboy Bekchanov
Sep 10, 2020 15:25
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 220

Re: USER TYPE ISSUE

FleetSShips and FleetShips are different.
by Xusinboy Bekchanov
Aug 18, 2020 5:34
Forum: Projects
Topic: MyFbFramework - My FreeBasic Framework
Replies: 11
Views: 1292

Re: MyFbFramework - My FreeBasic Framework

aloberoger wrote:Yes for form or usercontrol( if you implement this) but not for other controls I think

Over time, we will make UserControl too.
by Xusinboy Bekchanov
Aug 18, 2020 5:32
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 382
Views: 40788

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

SARG wrote:
Xusinboy Bekchanov wrote:Will you continue towards Android, MacOS?
What have you in mind ? As gas64 is 'just' an emitter it depends greatly of the runtime lib. More details ?

Yes I know, but there are some successful attempts to compile for Android and MacOS.

Go to advanced search