Search found 13 matches

by hhr
Apr 01, 2021 12:09
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 561

Re: Inkey issue in console on rmb

ENABLE_MOUSE_INPUT may help, perhaps
ENABLE_EXTENDED_FLAGS Or (cmode And (Not ENABLE_QUICK_EDIT_MODE Or Not ENABLE_MOUSE_INPUT)))
Look at
https://gist.github.com/rururutan/5998ad0a5bb02d7e2352b3974868fcc3
by hhr
Feb 20, 2021 10:28
Forum: Libraries
Topic: Intel Decimal Floating-Point Math Library
Replies: 4
Views: 367

Re: Intel Decimal Floating-Point Math Library

My mistake, arguments must be of type Decimal128. Thank you. #include "libbid.bi" Using quad_dec Dim As Decimal128 x,i Print 4*Atn(1) Print 2*Asin(1) Print 2*Acos(0) Print Acos(-1) Print " 3.141592653589793238462643383279502884" i=1 x=4*Atn(i) Print x x=2*Asin(i) Print x i=0 x=2*...
by hhr
Feb 20, 2021 8:07
Forum: Libraries
Topic: Intel Decimal Floating-Point Math Library
Replies: 4
Views: 367

Re: Intel Decimal Floating-Point Math Library

Something seems to be wrong... #include "libbid.bi" Using quad_dec Dim As Decimal128 x Print 4*Atn(1) Print " 3.141592653589793238462643383279502884" x=4*Atn(1) Print x x=2*Asin(1) Print x Print Print " 1,4142135623730950488016887242097" x=Sqr(2) Print x Sleep
by hhr
Nov 24, 2020 17:39
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 22
Views: 4464

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

Look at FreeBASIC/readme.txt... Linux Mint, lubuntu, xubuntu: readme.txt: sudo apt install gcc libncurses5-dev libffi-dev libgl1-mesa-dev sudo apt install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev Furthermore: sudo apt install libncurses5 readme.txt: sudo apt install gcc-multili...
by hhr
Nov 06, 2020 7:50
Forum: Windows
Topic: [solved]Any XP user here ?
Replies: 4
Views: 570

Re: Any XP user here ?

min: 1 max: 1000000
by hhr
Oct 22, 2020 10:15
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 1262

Re: SETENVIRON

Thank you. Output in Linux:

Code: Select all

123       Len=3
          Len=0
by hhr
Oct 22, 2020 8:56
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 1262

Re: SETENVIRON

I don't understand 'never be modified': Dim As String MYCOUNT,envStr MYCOUNT="123" envStr="COUNT=" + MYCOUNT Setenviron(envStr) Print Environ("COUNT") MYCOUNT="ABCDEF" envStr="COUNT=" + MYCOUNT Setenviron(envStr) Print Environ("COUNT") Sleep
by hhr
Oct 22, 2020 6:58
Forum: Linux
Topic: SETENVIRON
Replies: 16
Views: 1262

Re: SETENVIRON

Setenviron("COUNT=123") Print Environ("COUNT") Const As String MYCOUNT1="456" Setenviron("COUNT=" + MYCOUNT1) Print Environ("COUNT") Dim As String MYCOUNT2="789" Dim As String envStr="COUNT=" + MYCOUNT2 Setenviron(envStr) Print E...
by hhr
Oct 06, 2020 19:30
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 10
Views: 796

Re: Convert vbscript to FB

Look at https://github.com/JoseRoca/WinFBX There is a green button called 'Code'. Download the zip-file, extract it and copy the Afx-folder into the inc-folder of FreeBASIC. Then try #Include once "Afx\CWindow.inc" Dim As Integer num1, num2 num1 = Valint(AfxInputBox(0, 0, 0, , "Enter ...
by hhr
Sep 24, 2020 6:30
Forum: Windows
Topic: Unwanted closing of console
Replies: 3
Views: 427

Re: Unwanted closing of console

Try PAUSE command in the bat-file.
by hhr
Aug 17, 2020 19:30
Forum: Beginners
Topic: #Define vs Const
Replies: 8
Views: 836

Re: #Define vs Const

@Dodicat
Can it be the conversion Long-Double?
by hhr
Jul 06, 2020 16:53
Forum: Libraries
Topic: mpdecimal for Windows
Replies: 9
Views: 1211

Re: mpdecimal for Windows

''============================================================================= #include "mpdecimal.bi" 'we need to initialize mpd_context before including the overloded operators Dim Shared As mpd_context_t mpd_context mpd_init(@mpd_context, 8) #include "mpdoverload.bi" 'mpdeci...
by hhr
Feb 18, 2020 20:21
Forum: Beginners
Topic: How to get the Documents folder of the current Windows user.
Replies: 13
Views: 1383

Re: How to get the Documents folder of the current Windows user.

Print Environ("userprofile") 'Home directory in Windows Print Environ("userprofile") & "\Documents" 'Append the name of the folder Sleep #include once "win/shlobj.bi" Dim As Zstring*MAX_PATH pszPath,pszSubDir="" SHGetFolderPathAndSubDirA(0,CSIDL...

Go to advanced search