Search found 52 matches

by davidshq
Dec 11, 2016 21:19
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

Thanks! That works perfectly! Is it okay if I use it in this closed source program?
by davidshq
Dec 06, 2016 2:29
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

@sancho - Unfortunately, I do not have the code that made the original images. FYI, I have been able to convert the files to jpg using deark, so it seems the data is valid...I had hoped I could have the image drawn on screen for nostalgia, but it looks like the easy solution now is to just use the j...
by davidshq
Dec 05, 2016 1:05
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

@sancho2 - Thanks for the thread links, I'll take a look. @fxm - I did now, it loads but it isn't loaded correctly e.g., it looks like static. @counting_pine - Still looks like static even with your code. :-/ @dodicat - When I run that I get a response of Original, size = 123 followed by a long seri...
by davidshq
Dec 04, 2016 6:05
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

The VGA file is not a bitmap, it is a memory dump created using BSAVE.
by davidshq
Dec 04, 2016 0:49
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

@MrSwiss - I won't disagree that these tasks are simpler in FB, the issue is if I use FB then lots more of the QB code becomes invalid. @dodicat - Thanks for the code snippet! It seems to "load" the image, but it shows a bunch of pixels and not the image, it also gives the dimensions as: 1...
by davidshq
Dec 03, 2016 21:45
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

Hmmm...I don't have any dimensions for them. I was hoping just to use the files as the memory dumps they are, but it sounds like it may be easier to export them to a modern format like jpg and then load them in - since I have a way to figure out dimensions then...as I don't know of any way to extrac...
by davidshq
Dec 03, 2016 21:32
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

@fxm - In QuickBasic I've never had to do that...so I don't think it does. The .vga file is a BSAVE, VGA resolution.

@MrSwiss - There are a lot of changes to make if I move to FB, with the -lang qb I have only two or three remaining - namely, adding a sound library and loading these BSAVE images.
by davidshq
Dec 03, 2016 21:10
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

@MrSwiss - I am migrating an old QuickBasic project to FreeBasic, doing -lang qb so that I can get it up and running as quickly as possible, then work on moving to FB syntax. :)
by davidshq
Dec 03, 2016 21:09
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

Re: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

I tried added As Integer, doesn't seem to make a different.

Yes, -lang qb. Hmmm...not sure how to do that?
by davidshq
Dec 03, 2016 20:43
Forum: Beginners
Topic: BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION
Replies: 30
Views: 4535

BLOAD / VARPTR Causing EXCEPTION_ACCESS_VIOLATION

Hi All, I'm trying to make this bit of code work: DIM SHARED mtn(1 TO 1564) BLoad "mtn.vga", VarPtr(mtn(1)) But it crashes the app every time and fbdebugger tells me it is an "EXCEPTION_ACCESS_VIOLATION" I believe all I'm trying to do here is load mtn.vga into the array mtn at po...
by davidshq
Dec 03, 2016 20:40
Forum: Beginners
Topic: Getting PLAY to Work in FreeBasic
Replies: 9
Views: 3066

Re: Getting PLAY to Work in FreeBasic

Thanks everyone! I'll give these a try and let you know what happens!
by davidshq
Dec 03, 2016 16:08
Forum: Beginners
Topic: Getting PLAY to Work in FreeBasic
Replies: 9
Views: 3066

Re: Getting PLAY to Work in FreeBasic

@Lothar - I've actually used QB64 quite a bit. I started this work years ago on FreeBasic and then moved to QB64 because of the ease of writing code...however, QB64's sound implementation utilizes LGPL licensed software which requires that any software it is integrated into be open source unless it ...
by davidshq
Dec 01, 2016 7:09
Forum: Beginners
Topic: Getting PLAY to Work in FreeBasic
Replies: 9
Views: 3066

Getting PLAY to Work in FreeBasic

Hi Folks, A few years ago I asked about getting PLAY statements or something similar to work in FreeBasic. At the time the recommendation was to use FreeBasic-Portal.de's modified version of yetifoot's sound.bas. I ran into a problem when integrating it with my application - namely, it appears to ne...
by davidshq
Aug 10, 2014 17:19
Forum: General
Topic: In FOR..NEXT jumping to next iteration.
Replies: 7
Views: 1943

In FOR..NEXT jumping to next iteration.

Say I have a FOR..NEXT something like this: FOR i = 1 to 10 NEXT And inside of it I have a few IF..THEN statements like so: FOR i = 1 to 10 IF [condition] THEN END IF IF [condition2] THEN [code2] END IF NEXT Now, lets say that condition is true and code is executed, but once the code is executed I d...
by davidshq
Aug 10, 2014 3:24
Forum: General
Topic: Better Way Than If..Then?
Replies: 2
Views: 755

Better Way Than If..Then?

I have some QuickBasic code like so: IF INKEY$ <> "" GOTO notitle PLAY "MST170o1e8o0b8o1e8" IF INKEY$ <> "" GOTO notitle PLAY "e8e4f#8g4f#8" It continues on with the same pattern, the purpose being to play some music but to allow the individual to interrupt th...