Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Paint Pixels
#1
This is a painting program with a few different features. 
It is a large QB64 app I made years ago, but for some reason the .bm files aren't working. If I removed them, the code in the program isn't recognized. One is for saving pictures and the other one is for making a File drop-down menu. Here is the zip file of all the needed files. Here is version 8. I'll also post the one Bplus made as well, which is version 7, so 2 .zip files. Any help is appreciated, thanks. I want to get one finished up so I can put it in my apps area.

Edit: I have removed the files on this first post because I have fixed the issues a couple posts below by not needing library files. Smile
Reply
#2
Strange, I just tried the .exe versions of both and they all work fine. They were compiled years ago though. I wonder why I can't use the code anymore?
Reply
#3
The problem you're seeing goes waaay back to version 2.0 of QB64.  

The issue is basically this one:

FUNCTION foo  (x)
   foo = 1
   IF x = 3 then foo = foo + 1
END FUNCTION

Now, the problem there is that prior to version 2.0, the above worked perfectly fine.  After the changes in version so, that foo I've highlighted is now a *recursive function* call.  It's going to error out on you.

You'll need to update your libraries to not do such things anymore, so they'll continue to compile and work on newer versions for you.  Example:

FUNCTION foo  (x)
   temp_foo = 1
   IF x = 3 then temp_foo = temp_foo + 1
foo = temp_foo
END FUNCTION

Function names *must* remain on the left side of the equal sign now, or else they're a recursive call to the function again.
Reply
#4
Thanks Steve, I'll see what I can do.
Reply
#5
QB64pe now has those same functions used in Bi Bm built-in.

As time permits I have taken out the library stuff and am replacing with built- in commands.
I can also fix any problems from v 2.0 change with Function names.
b = b + ...
Reply
#6
I DID IT!!!!!!! No more libraries! I found out on older forum posts and the Wiki pages on how to do it!!!
So, no more library files needed, just the code and 3 pictures used in the program. Thanks guys!!!!
Bplus, sorry if I wasted your time today. Was a lot easier than I thought but I'm learning a lot too!
 
Edit: I zipped up all 4 files and put it attached below.

Edit: Removed GIF usage because every time I saved it as a .gif, it added .png to the end of it. So now it can open and save
in JPG, PNG, and BMP. And that's good enough for me. Smile

Edit: Zip file on this reply is deleted because of more problems found, go to the next page of this thread to see the newer one.
Reply
#7
Excellent!
b = b + ...
Reply
#8
Thanks B+! But I just realized that I only credited the old forum, so I changed it to, "QB64 Forums" and edited the code above.
Reply
#9
I also just realized that it does, in fact, need the Title.png file as the opening picture. So, I added it to the code post above. If you haven't downloaded it yet, please do so and put it in the same folder as the program. Thank you.
Reply
#10
LOL I also forgot 2 more picture files used with choosing colors (the background and the text color). Sorry again, will just make a zip file of everything and put it above.
Reply




Users browsing this thread: 3 Guest(s)