I've already answered that, in one of Gabea's threads:BasicCoder2 wrote:What is a dll.a file?
it's a dll's import library ... where the SQL stuff, was explained, also!
(maybe you remember the thread name, to search for it)
I've already answered that, in one of Gabea's threads:BasicCoder2 wrote:What is a dll.a file?
window9 - 32-bit library and does not know anything about 64-bit system, as any 32-bit application. Any function window9 in 64-bit system (using 32-bit compilier ) will behave the way she would behave in 32-bit system.Function GetSystemDir return:
32bit app on 32bit system: ..\System32
32bit app on 64bit system: ..\System32 (Wouldn't it be better if returned ..\SysWOW64?)
I will not overload you with technical data, but simply ask for a practical task:What is a dll.a file?
Code: Select all
Function AA Alias "AA" () As Integer Export
Return 25
End Function
2) Create another file 2.bas in the same folder and compile it as a console application:1.dll
lib1.dll.a
Code: Select all
Declare Function AA Lib "1.dll" Alias "AA"() As Integer
? AA()
sleep
Specify the full path to fbc. If the compiler is located in a folder "C:\Compilier" , then type for creating DLL:BasicCoder2 wrote:Such a long time since I last used the command prompt!!
I used to use it to enter and run assembler programs with DEBUG on the old DOS machines.
I have been using FBIDE.
Anyway I changed the directory to where the file was with cd and typed,
C:\FreeBasic\dllDemo>fbc -s gui -dll -export 1.bas
'fbc' is not recognized as an internal or external command,
operable program or batch file.
I assume here I have to set the path in Windows10 somehow.
Not really but thanks for pointing out where to go should I have the need.MrSwiss wrote:BasicCoder2, if you are trying to *get into Libraries*,
If you want to add the path to the compiler in "System Environmental Variables", then just add it to a variable "PATH" at the end of via ";"BasicCoder2 wrote:@VANYA,
In Environmental Variables I get two boxes,
User variables for Jack and system variables.
Choosing Path in either box pops up an edit box with two text boxes.
Variable name:
Variable value:
No idea what variable they are talking about or which is the path name.
In the past I just remember selecting path and scrolling to the end and adding the directory path between two semi colons.
I notice Python has entered its own path automatically when installed.
.
It will not let me do that. It just pops up the box with the two text boxes demanding a variable name and value.VANYA wrote:If you want to add the path to the compiler in "System Environmental Variables", then just add it to a variable "PATH" at the end of via ";"
You seem to be trying to create a new variable... Just select the line with the mouse with the variable "PATH" And click edit. After you add through ";" your path to the compiler. If you do not have this variable, then create it. Either run "Environmental Variables" under the administrator and edit "PATH"BasicCoder2 wrote:It will not let me do that. It just pops up the box with the two text boxes demanding a variable name and value.VANYA wrote:If you want to add the path to the compiler in "System Environmental Variables", then just add it to a variable "PATH" at the end of via ";"
Never does a text box appear with paths separated by semi colons to insert another path.
Thanks for your efforts but I think I will just forget about it.
.
If you're using Win10 you can simply add the new path, otherwise you have to edit the textbox. See also https://www.ghacks.net/2015/09/22/micro ... -10-build/BasicCoder2 wrote:It will not let me do that. It just pops up the box with the two text boxes demanding a variable name and value.
Never does a text box appear with paths separated by semi colons to insert another path.
Thanks for your efforts but I think I will just forget about it.
Code: Select all
' Test1
#Include Once "window9.bi"
Type hd0
hwnd_0 As HWND
Declare Function OpenWindow_0() As HWND
Declare Sub Sub_Butt1( ) ' Button : Button1
Declare Sub Sub_Combo3( ) ' ComboBox :
End Type
' Dim
Dim hdl0 As hd0
' End Dim
' code hd0
Function hd0.OpenWindow_0() As HWND
hwnd_0 = OpenWindow("Win0",10,10,500,300)
WindowColor(hwnd_0,BGR(240,240,240))
SetGadgetFont(,CInt(LoadFont("Tahoma",10)))
UseGadgetList(hwnd_0)
ButtonGadget(1,10,10,70,20,"Button1")
SetGadgetFont(1,CInt(LoadFont("Tahoma",9)))
CheckBoxGadget(2,10,40,70,20,"Chk2")
SetGadgetFont(2,CInt(LoadFont("Tahoma",9)))
SetGadgetColor(2,BGR(220,220,220),BGR(0,0,0),3)
ComboBoxGadget(3,10,70,70,20)
SetGadgetColor(3,BGR(220,220,220),BGR(0,0,0),3)
SetGadgetFont(3,CInt(LoadFont("Tahoma",9)))
SendMessage(GadgetID(3),CB_SETHORIZONTALEXTENT,1200,0)
OptionGadget(4,10,102,70,20,"Opt4")
SetGadgetColor(4,BGR(220,220,220),BGR(0,0,0),3)
Return hwnd_0
End Function
hdl0.hwnd_0 = hdl0.OpenWindow_0()
Sub hd0.Sub_Butt1( ) ' Button : Button1
' Static As Long
' Static As
End Sub
Sub hd0.Sub_Combo3( ) ' ComboBox :
' Static As Long
' Static As
End Sub
' endcode hd0
' code MAIN
' endcode MAIN
Do
Var event = WaitEvent
Select Case event
Case WM_SIZE
Case EventClose
Exit Do ' End
Case EventMenu
Select Case EventNumber
Case 1000
End Select
Case EventGadget
Select Case EventNumber
Case 1 ' Button : Button1
hdl0.Sub_Butt1( )
Case 3 ' ComboBox :
hdl0.Sub_Combo3( )
End Select
Select Case EventNumberToolBar
Case 9999
End Select
End Select
Loop
'