Search found 6212 matches

by dodicat
Apr 10, 2020 0:46
Forum: Tips and Tricks
Topic: SAPI Voice Engine [Windows only]
Replies: 3
Views: 77

Re: SAPI Voice Engine [Windows only]

Hi UEZ. I found this method (invoke vbscript directly). sub speak(text as string) dim as string x="mshta vbscript:Execute(""CreateObject(""""SAPI.SpVoice"""").Speak("""""+text+""""")(window.close...
by dodicat
Apr 09, 2020 16:40
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

Thanks UEZ.
I am not very keen on installing with setup.exe.
How can you use the raw dll file?
by dodicat
Apr 09, 2020 16:18
Forum: Beginners
Topic: FreeBASIC + tcc
Replies: 13
Views: 340

Re: FreeBASIC + tcc

the C file test.c /***************************************************************************/ int _main_loop() { int a=666; return a; } /***********************************************************/ int _main_setup() { int a=666; return a-66; } /*****************************************************...
by dodicat
Apr 09, 2020 12:47
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

I tried dev c++ But still got the warnings Compilation results... -------- - Errors: 0 - Warnings: 4 - Output Filename: C:\Users\User\Desktop\disphelper_single_file_source\disphelper.a - Output Size: 27.88671875 KiB - Compilation Time: 1.19s My output size is smaller than yours. You sapi works OK th...
by dodicat
Apr 09, 2020 9:26
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

UEZ
Your sapi works fine.
There seems to be a hiccup with "MSScriptControl.ScriptControl" (as you suggest) in 64 bits.
I'll have a mess around.
When you compiled with dev c++ for a static lib did you get any warnings?
by dodicat
Apr 09, 2020 8:20
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

UEZ I don't have a sapi voice example to test. Here is my test file (four routines). #define UNICODE #include Once "disphelper/disphelper.bi" Dim shared as IDISPATCH PTR VB_FB dhInitialize(TRUE) dhToggleExceptions(True) dhCreateObject "MSScriptControl.ScriptControl",NULL,@VB_FB d...
by dodicat
Apr 08, 2020 13:46
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

I suspect that the source code for disphelper is for 32 bit but gcc 64 bit manages to compile it but the warnings tell that all is not well. For instance I think that it truncates some LONGLONG values e.g. static const ULONGLONG FILE_TIME_VARIANT_OVERFLOW = 2650467744000000000 I think gcc 64 bit see...
by dodicat
Apr 08, 2020 12:58
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

Thanks svarldez.
I get the 64 bit libdisphelper.a OK again, but there were warnings getting the .o file, as before.
The final fb test fails with things like
error in CreateObjectex - -
Class not registered
by dodicat
Apr 08, 2020 11:41
Forum: Game Dev
Topic: Collision detection in 3D
Replies: 9
Views: 146

Re: Collision detection in 3D

Here is a quick little triangle intercept thing. +z (mouse wheel forward) =into the screen. Screen 20,32,,64 Dim Shared As Integer xres,yres Screeninfo xres,yres Type vector As Single x,y,z #define vct Type<vector> #define dot * #define cross ^ End Type Type plane As vector v1,v2,v3 End Type Operato...
by dodicat
Apr 08, 2020 11:05
Forum: Libraries
Topic: disphelper.a FB-1.07.1-win64
Replies: 18
Views: 600

Re: disphelper.a FB-1.07.1-win64

Go to the news section of the forum. Get a mingw package (if you don't have one) Make sure the mingw bin folder is on path. Get the disphelper source code https://sourceforge.net/projects/disphelper/ Use the single_file_source folder for convenience create a shell for cmd.exe shell "cmd" p...
by dodicat
Apr 06, 2020 22:17
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 764

Re: A simple miner program

I was experimenting with things like calling a constructor for example by using alias "_ZN7STRINGSC1ER8FBSTRINGall", in order to overcome the C++ class problem. It is ugly, but my reasoning is that basically C and C++ (and FreeBASIC) are procedural languages, OOP is just a layer over the b...
by dodicat
Apr 06, 2020 13:14
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 764

Re: A simple miner program

In Linux 32 bit
the constructor alias is "_ZN7STRINGSC1ER8FBSTRINGall"
Don't have 64 bit Linux to test.
You seem in a very bad mood badidea.
by dodicat
Apr 06, 2020 11:24
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 764

Re: A simple miner program

Just for fun, using some oop but bypassing it back to procedural. Enum up down End Enum type strings private: as string original as string sorted declare operator cast() as string as byte direction declare constructor(as string, as byte,as long,as long) declare sub sort(as strings,as long,as long) e...
by dodicat
Apr 03, 2020 21:33
Forum: General
Topic: Strange behaviour with #define
Replies: 8
Views: 192

Re: Strange behaviour with #define

One #define for concat seems to work here. #include "fbgfx.bi" #define test1 fb #define test2 sc_escape #define concat(a,b) a.b namespace foo sub _ bar() ? "Press <esc>" end sub end namespace do locate 4,,0 concat(foo,bar) if multikey(concat(test1,test2)) then exit do loop print ...
by dodicat
Apr 03, 2020 14:04
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 15
Views: 576

Re: fbgfx versus opengl graphics

Caseih, I am testing like for like as fairly as possible. But you will be pleased to know that openGL quad beats fb line and boxfill. It does for a single large quad (as tested here), but not for multiple small quads (tested elsewhere) #include "windows.bi" #include "gl/glu.bi" S...

Go to advanced search