Recent Posts

Pages: [1] 2 3 ... 10
1
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on October 23, 2021, 02:03:26 am »
The 64 bit version of SBHTTPD for Linux runs find. It looks like this is a 64 bit Windows issue.
2
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 31, 2021, 12:13:28 am »
AIR,

I can't seem to get the 64 bit version SBHTTPD to connect. It seems to load fine but when I try run a script it says the server can't be found. The 32 bit version works fine.
3
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 28, 2021, 05:29:50 pm »
I just tried the dyc extension module and SB said the module can't be loaded. If I remember correctly DYC uses ASM. Is this a Windows 32 bit only extension?
4
Scripting Languages / Re: cURL Windows
« Last post by John on August 28, 2021, 05:02:23 pm »
AIR,

I'm trying to compile the cURL module but don't have the work you did to create the module. Can you send me your curl extension module directory and anything else I need to build it?

Thanks!

 
5
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 27, 2021, 09:29:18 pm »
Made my day. I thought COM was lost going to 64 bit. .NET is your new friend

32 and 64 bit COM Servers
6
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by AIR on August 27, 2021, 09:20:12 pm »
I noticed the -lole32 reference in the Makefile. I thought COM/OLE is only supported under 32 bit.

It depends on the COM interface you're interacting with.  If a system has both 64 and 32 bit COM interfaces for a given task, 64bit Windows will try using the 64bit interface by default.  If all you have is 32 bit, it will try to use that.
7
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 27, 2021, 09:01:09 pm »
I just replaced my PUI extension module folder with yours. I recompiled the module and it works.

Quote from: AIR
The static libs you get from sourceforge do NOT allow you to build a dll of any kind.  They are for static linking when creating EXE files.

Good to know. Thanks for clarifying that for me.

Code: Bash
  1. C:\sbgcc\sbw64_src\extensions\pui>mingw32-make -B -f Makefile
  2. gcc -w -D_WIN32 -m64 -c -I.\IUP-330\include -o ..\..\bin\mod\obj\pui\s_interface.o interface.c
  3. ar -r ..\..\bin\mod\lib\pui.a ..\..\bin\mod\obj\pui\s_interface.o
  4. gcc -w -D_WIN32 -m64 -c -I.\IUP-330\include -o ..\..\bin\mod\obj\pui\interface.o interface.c
  5. gcc  -shared  -s -O2 -Wl,--output-def,"..\..\bin\mod\dll\pui_imp.def",--out-implib,"..\..\bin\mod\dll\pui_imp.a",--export-all-symbols,--enable-auto-image-base  -o ..\..\bin\mod\dll\pui.dll ..\..\bin\mod\obj\pui\interface.o -L.\IUP-330 -I.\IUP-330\include     -liup -liupcontrols -liupimglib   -liupcd -lcd -lfreetype6 -lz    -lmingw32 -lws2_32 -ladvapi32 -lgdi32 -lcomctl32 -lcomdlg32 -luuid -lole32
  6.  
  7. C:\sbgcc\sbw64_src\extensions\pui>
  8.  

Dave Zimmer with his COM extension had callbacks working from his DLL so I know it can be done and I have an example to work from.

I noticed the -lole32 reference in the Makefile. I thought COM/OLE is only supported under 32 bit.
8
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by AIR on August 27, 2021, 08:48:41 pm »
The static libs you get from sourceforge do NOT allow you to build a dll of any kind.  They are for static linking when creating EXE files.


9
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 27, 2021, 08:10:29 pm »
That was it. I recompiled my sbc.exe and sbw.exe with your new sb64gui.o.

I'm assuming you sent in your PUI.zip everything that is needed to static link IUP? I don't need to download the static library from SourceForge?
10
Scripting Languages / Re: ScriptBasic Windows 64 Bit
« Last post by John on August 27, 2021, 07:57:56 pm »
THANK YOU!

We now have what I call a core distribution of SB Windows 64. I don't see a need for MySQL as that is mostly used on Linux. The cURL, ODBC and IUP modules were key to getting people to try / use the BASIC. My next task is to get true callbacks working with IUP. My attempt at callbacks works but very limited and slow.

Pages: [1] 2 3 ... 10