Search found 113 matches

by DamageX
Feb 10, 2018 10:17
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 701

Re: weird crashes on Phenom II X4

I was using MouseWare 6.30 that I've had since ancient times. I tried CTMOUSE and that resulted in crashes as well. I guess the real problem is the PS/2 mouse emulation in the BIOS (the system has a USB mouse). I tried disconnecting the USB mouse and connecting a serial mouse instead and then FB pro...
by DamageX
Feb 07, 2018 6:58
Forum: General
Topic: Houston, we have a bug!
Replies: 6
Views: 535

Re: Houston, we have a bug!

It's GetVersion all over again. And how do you know that it won't work with a version less than 5.1.2600? Whether your OS checking code works right or not, my vote is that you (and everybody else) just leave it out. Then I won't have to waste time bypassing the check with a hex editor to run softwar...
by DamageX
Jan 15, 2018 22:06
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 701

Re: weird crashes on Phenom II X4

There is a newer CWSDPMI, one from 2000 and one from 2010. I tried those, with no change. I also tried disabling CPU cache in the BIOS (again, no change). Then I put the other CPU back in and things work again. However, there are still some GPFs when moving the mouse. Without the mouse driver being ...
by DamageX
Jan 14, 2018 1:13
Forum: DOS
Topic: weird crashes on Phenom II X4
Replies: 4
Views: 701

weird crashes on Phenom II X4

In one of my PCs I swapped out an Athlon II X2 CPU for a Phenom II X4. All other hardware remains unchanged. Then I noticed that FB DOS programs are no longer working. A very simple "hello world" program will run but when using graphics SCREEN it fails at some point... ' this program execu...
by DamageX
Jan 07, 2018 1:55
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 773

Re: Graphics problem.

Yes, it works in FB 1.05.0 DOS also...
by DamageX
Jan 06, 2018 9:39
Forum: DOS
Topic: Graphics problem.
Replies: 6
Views: 773

Re: Graphics problem.

Not sure if this is an issue with FB or your machine. FYI, Screen 2 works fine for me with the older FB 0.23
by DamageX
Jan 06, 2018 8:58
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 7
Views: 787

Re: Audio library for FreeBasic - Features

I think a sound library should have both low and high level features Low level: Open a channel to sound output (setting frequency, mono or stereo mode, and bit depth) Send raw PCM data to such channel Open a MIDI channel Send raw MIDI messages I agree that these are fundamental capabilities which s...
by DamageX
Dec 07, 2017 9:20
Forum: Community Discussion
Topic: FreeBASIC Discussion December 2017
Replies: 42
Views: 4346

Re: FreeBASIC Discussion December 2017

strengths:
-maintaining QBASIC compatibility while simultaneously allowing access to modern hardware/OS
-minimal system requirements/dependencies
-inline assembly
-very good documentation
-free license
-multiplatform
by DamageX
Dec 07, 2017 8:21
Forum: Windows
Topic: Does anyone know what algo XP -> full screen DOS?
Replies: 95
Views: 5102

Re: Does anyone know what algo XP -> full screen DOS?

Windows XP doesn't use any algorithm if I remember correctly. When viewing a full-screen DOS window, it actually uses the VGA's actual mode. Yes, exactly. Running a DOS program full-screen under Windows gets you the same thing as running it in DOS. However there is another important thing to note. ...
by DamageX
Nov 21, 2017 8:41
Forum: General
Topic: Signed/unsigned equality. Bug?
Replies: 17
Views: 943

Re: Signed/unsigned equality. Bug?

Dim a As Short, b As UShort a = -1234 'Change this to any negative number b = a Print b Print Hex(a); " = "; Hex(b) If a = b Then Print "equal" Else Print "non-equal" GetKey I'm trying to replicate it now and realised the code as I posted it is giving non-equal on both...
by DamageX
Nov 14, 2017 6:28
Forum: General
Topic: For the graphics gurus, perhaps <smile>
Replies: 9
Views: 419

Re: For the graphics gurus, perhaps <smile>

Another approach is to use a different probability density function. We could use the normal distribution where a change in direction by, say, 90° would be highly unlikely, 80° more likely, 70° more likely still and so on on until we get to the greatest likely change in the range [-10°, 10°]. What ...
by DamageX
Nov 13, 2017 0:34
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 857

Re: passing strings to external functions

At the very least he could have provided the C function prototype he's trying to pass a string to I was trying to call wsock32.dll gethostbyname. From Windows Sockets Network Programming : struct hostent FAR * PASCAL FAR gethostbyname /* Null on failure */ (char FAR *name); /* pointer to name of th...
by DamageX
Nov 12, 2017 10:26
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 857

Re: passing strings to external functions

Well, I posted generic example code to get right to the point. But after thinking about it I realized what I should have done. I compiled all three and compared assembly listings. So now I can answer my own question. The first and second pieces of code generate exactly the same output. Third one is ...
by DamageX
Nov 12, 2017 9:27
Forum: General
Topic: passing strings to external functions
Replies: 23
Views: 857

passing strings to external functions

what is the difference between these three code snippets? I have found that only one of them works, but I don't know why. declare function SomeThing (byval as any ptr) as integer dim stuff as string stuff="cheerios" ? SomeThing(@stuff) declare function SomeThing (byref as string) as intege...
by DamageX
Oct 26, 2017 4:56
Forum: Game Dev
Topic: Ways in which I can embed a video player into GFX window?
Replies: 11
Views: 1211

Re: Ways in which I can embed a video player into GFX window?

Vorbis shouldn't have any patents. I think that was pretty much the whole point of it. It can also be used with AVI (Vorbis ACM codec). I'm not sure why you think AVI would take more space, it depends 98% on which codecs are used, not so much on the container.

Go to advanced search