Search found 6518 matches

by dodicat
Aug 10, 2020 12:25
Forum: Documentation
Topic: Wiki improvements
Replies: 435
Views: 88047

Re: Wiki improvements

Thanks for all fxm. As a practical demo from your vtable description. Passing all OOP information including data information to another module via a static library. shapes3.bas Compile with -lib 'shapes3.bas compile -lib Type pt Extends Object As Long x,y As Long r As Ulong clr Declare abstract Sub ...
by dodicat
Aug 10, 2020 10:39
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Thank you xbgtc.
I am going to set up my old XP computer to use .torrent files and download the film.
I am a bit wary of using Win 10 for this task
by dodicat
Aug 10, 2020 10:21
Forum: General
Topic: Squares
Replies: 7996
Views: 501121

Re: Squares

I know nothing about psychology, my sister has a PhD in it, and apart from listening to a few rants over the years, that's about it for me. However I can sympathise with Albert's other ailment, the lungs. I believe Albert keeps physically active, long walks along the promenade e.t.c. and watching se...
by dodicat
Aug 08, 2020 20:46
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Thanks xbgct.
Unfortunately mediafire has blocked these two files.
I'll just have to wait for the film to re-appear on the telly some day.
by dodicat
Aug 08, 2020 17:16
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

.avi format works well, I have got hold of some small testers.
If you have a link then thank you, I'll give it a try.
by dodicat
Aug 08, 2020 10:12
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Finally solved then! My latest file is called playvideobydll.bas, in fact the .exe has incorporated the static lib for the gfx screen, so it is misnamed but independent. I have been looking around for a full movie free download to test it to destruction. I wanted The Mayor of Casterbridge since I al...
by dodicat
Aug 07, 2020 11:15
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Are you getting a clean path to the videos?
I read that mciSendString has problems with spaces in a path.
by dodicat
Aug 07, 2020 10:21
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Avoid the Program Files folder in win 10, both for installing Freebasic or running compiled .exe files. Also in Win 10 I have to make exceptions (folders and files) for the anti virus, both my older win 10 with Avira and now with AVG. I have fbidetemp.exe as an exception and I now only use one deskt...
by dodicat
Aug 06, 2020 14:37
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

Here is screen.bas. Compile with -lib to get a static library (or -dll to get a dynamic library). I would suggest try a static first. 'screen.bas 'compile -lib or -dll Sub setres(xpos As Long,ypos As Long,xres As Long,yres As Long,bits As Long=32) Export Screencontrol(103,"GDI") Screenres ...
by dodicat
Aug 05, 2020 23:24
Forum: General
Topic: A PRNG for graphics programs?
Replies: 84
Views: 1724

Re: A PRNG for graphics programs?

This is as fast as I can get it: #include "fbgfx.bi" Using FB #define Engine this.state = this.state * 1664525ul + 1013904223ul And &HFFFFFFFFul Const c1 = 2^32 Type NR32 Public: Declare Constructor Declare Sub MyRandomize( Byval seed As Ulong = 0 ) Declare Function Rand() As Ulong Dec...
by dodicat
Aug 05, 2020 15:13
Forum: Documentation
Topic: Wiki improvements
Replies: 435
Views: 88047

Re: Wiki improvements

Thanks, the hack saves the RTTI. To pass the methods I still have to use *x(n) I can now pass the OOP across in a static library. shapes.bas to be compiled -lib 'shapes.bas 'compile -lib type pt extends object as long x,y as long r as ulong clr end type type circ extends pt declare sub show end type...
by dodicat
Aug 05, 2020 11:56
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 67
Views: 2416

Re: SOLVED - MPEG2 Play Code and Win10

OK.
I shall experiment with using a screen from a .dll for video.
by dodicat
Aug 05, 2020 11:07
Forum: General
Topic: A PRNG for graphics programs?
Replies: 84
Views: 1724

Re: A PRNG for graphics programs?

srvaldez. The gdi driver has the same result. My monitor settings are 1680 by 1050. These settings are not really compatible with gfx, for instance to make a circle I have to do circle(500,400),300,,,,1.05 (for a screenres 1024,768) otherwise it looks oval. I asked about this a while back, how to ma...
by dodicat
Aug 05, 2020 9:55
Forum: Documentation
Topic: Wiki improvements
Replies: 435
Views: 88047

Re: Wiki improvements

fxm. Regarding the OBJECT built-in RTTI info. I have been experimenting passing this info to other modules via text file and library file. Text file of course cannot receive this info or indeed any pointer message. A lib file can transmit a pointer address and another module which can successfully u...
by dodicat
Aug 05, 2020 8:09
Forum: General
Topic: A PRNG for graphics programs?
Replies: 84
Views: 1724

Re: A PRNG for graphics programs?

I think that it should be 1) make another overload Declare Function Range Overload( Byval One As uLong, Byval Two As uLong ) As uLong 2) before the loop put const black=rgb(0,0,0) const white=rgb(255,255,255) 3) use *pPixel = NR.Range(black,white) This gives me a speed boost. The graininess must be ...

Go to advanced search