![]() |
I just received it. First I tought It was great and then I saw that here is only the lesson DIsk without the program :ranting: :ranting: :cry:
And Is VB6 a good language for your first time? |
They teach it as a starting language, along with Java. There're enough basic tutorials for VB, and if you're stuck, I'd be happy to help out (more practice for me, too, then :ok: )
|
If I'm right, you don't have a VB but some tutorials. :) I had somewhere student version of VB (got it with the book). It does not have all features of full product.
But again, you should get VB.NET. |
Quote:
|
:(
I can check if I got that student version still around. Only thing you have to agree when you install it that you will not make comercial stuff with it, and that you will use it for educational purpose. VB.net standard or academic is not that expensive around here. |
Quote:
|
That's even better. :ok:
Have a fun. :bye: It might be nice if you post your progress here. |
Quote:
|
Quote:
I learned the basics quickly, but i got bored with the complicated(advanced) stuff |
And I'm still trying to figure out how to do animations, for the Tamagotchi I'm working on in there :D
|
Yea i also encountered this problem:
How do you make animations animate during a VB program??? |
I got to the point of using the gdi library and bitblt function, but I still don't see how to use that one for animations.
|
I'm busy writing a rpg in VB6 using the DirectX 8 libraries. I'll post a link when I have it on my site.
.EDIT. Download it here: http://vbstuff.siteburg.com/index.php?acti...d&file=yrpg.zip |
BTW making games with the DX8 SDK is much more faster than bitblt and stuff.
|
Yeah, but everybody who uses it would need to have DX8 or higher :D
|
Quote:
btw, DX9 is impossible in VB6. It's only possible in VB.NET |
Well, what I want to do, is animate a Tamagotchi. Not so much 3D in there, so got no need for 3D animation.
|
Quote:
I once made a tamagotchi-like program in quick basic... :P It's not too hard to make that using the DX7 SDK, if you have a bit of VB6 knowledge. |
Indeed. Only two problems I see: The animation and saving the critter to a file, so you don't have to start all over every time you close it (and which could allow more than one pet)
|
Quote:
Animation is not too hard. You let the program load all animation frames at the start in buffers, and animating the thing isn't that hard anymore after that. I can make a little program of my RPG char walking on screen if you want using DX7. Maybe you can use it. |
Doesn't hurt to learn it, so go ahead, although DirectX for a Tamagotchi...
|
Yey I got thnx Tiki :kosta: :kosta: :kosta: :kosta: :kosta:
|
I got my first lucky seven :bannana: :bannana: with some modifications :angel:
|
What's your lucky seven?
|
The normal but I just added my name and avatar :D Anyway this VB programing looks very :sick: I mean that the program is cool but the graphics :not_ok: Is there anyway to boost them up? :help:
|
The buttons and such? In their properties, set the mode to Graphical, then load a picture in them. To change the picture, use this:
Code:
Buttonname.picture = loadpicture("newpic.jpg") |
Where is the mode oprion?
|
If you put the properties as Categorized, it's under Appearance, at the option: "Style"
|
OK...lets try it
No its not. In the Picture line I put the file then i change the style In the code i change the name of the file and still nothing. Only the button is white and the text is down |
Wait i got it wrong. If im right this will change my button after I click. the thing I need is that my button looks in another way when he's stopped. Or change his form. I mean not to be the rectangle but the form i want or if this is posiblle that the form is a picture that i made.
|
Ehmm... Koen? :whistle:
|
Or maybe I should finish the to step by step books and then asking questions :huh:
Btw Tiki, which book you used? |
Three or four tutorials, to learn the syntax. No real good ones. One went waaaaaaaaaaay too slow, the other finally got me to the coding part after 'bout five chapters on how to make the form (which I skipped, as it's point'n click and reading whatever the tags say :D )
|
Quote:
|
Ok here it is! Learn from it, and tell me if it works...
BTW, there is a way to draw all this in a window, but I don't know how, because I've only been making full-screen apps with directdraw... Also try searching for SnowEngine. It's an DX engine for VB6! |
What would you suggest for anyting 2D in DX9 since dd is gone? Good, low level tutorials for managed dx seem to be hard to come by.
|
Oy, didn't know VB was so flexible as to allow structs. This opens whole new dimensions :D The DD specific things're still a bit unclear though. Should experiment with it, and find some tutorial on it, I guess.
|
Quote:
|
Slower than Java? :bleh:
|
If you move to .net you'll find that VB.NET is as fast as C# wich is "Almost" as quick as C++
|
Quote:
|
The slowness is too noticable. You know that Java-assignment I had a couple of weeks ago, right? The one that was kinda a complicated Sokoban... well, just moving was lagging from time to time.
|
Quote:
|
Quote:
Well it depends on how you feel it was #*$% up'ed. It's moved to a more object oriented design without loosing "Much" of the syntax. And, eventhough i know people will say it's not, it is cross platform compatable, if your making web apps or the like. The mono project has done a great deal in bringing .net to the linux platform, they just have'nt moved any of the Windows.Form namespaces. |
I reinstalled vs.net 2003 now, and my harddisk is full! :cry: Why can't they keep it small... :crazy:
|
You've got to have the latest and greatest bells and whistles!! :D
|
Quote:
|
Can some1 plz help me with this. Is the first program that I made from the book. The lucky seven. I just wanted to add something, so when one of the numbers is 7 and the sum of the three numbers is bigger than 15 the message shows.
Code:
Private Sub Command1_Click() |
The problem is the location of:
Code:
First = Val(Label1.Caption)
Code:
Label1.Caption = Int(Rnd * 10) |
As I see it, the values of First, Second and Third are set to the values of Label1.caption, Label2.caption and Label3.caption from the last time it ran. Can't be sure without seeing the function Val() though, although my bet is that that's the problem. Besides, you don't really need to add that ;) If you're already using with the caption-properties as variables (which I don't really recommend in bigger projects), you can keep using them for the counting up :ok:
A few tips on improving that code... You can put the checking for 15 as an extra if-block within the if-block that checks for a 7. Try to put the End If on the same indention as the If... like this: Code:
If (x = 5) Then |
@tuttle
That help a little bit, Thanks :ok: @Kon Tiki Yes I know that this isnt nescesery to add, but I just wanted to be more functional. But there is still a problem: ex: the results are 7 0 4 and I still get the message. I dont understand the separation. I mean I want that if one of the numbers is 7 and the sum of the 3 is more or = to 15 the message shows. By separating I think that this will became two different functions. 1 if 1 number is 7 the message shows 2 if the sum is >= 15 the message shows too My goal is to combine those too things. |
being only experienced in some java and wbasic, I can understand this and my probably useless idea is(excuse the commands in captials, thats Qbaisc for you):
Code:
If (Label1.Caption = 7) Or (Label2.Caption = 7) _ |
Danny's suggestion's pretty damn useful. If it's not because of it, then at least for readability. The => won't work, though. It's >= for sure. As for combining the two ifs into one block... Danny's got the idea right, and the code too (except for the =>), although I'd put the First + Second + Third between brackets too.
|
Danny forgot the End if and if i put this it will separate the actions - the think i dont want
|
Nope, two If statements and two End Ifs... on the right spots.
|
oops havent saw
Edit:still some carzy results. 7 0 3 and i get the message :blink: |
well, it is a descendent of basic.. but still, wow, I did something useful outside of school for once!
|
Yamcha, could you post your full code here? Well, the code you have now.
|
I think that I muist remove something but im not sure what :help:
Code:
Private Sub Command1_Click() |
Nope, nothing needs to be removed, just moved. As we said in the beginning, the position of
First = Val(Label1.Caption) Second = Val(Label2.Caption) Third = Val(Label3.Caption) makes them take on the value of Label*.Caption from the last time it ran. Put those three lines under the randomizing of the value of Label*.Caption and it'll work fine :ok: |
The mistake was that i havent saved the think. And when i strarted again the thinks were like this :D Now it must work :D
|
The current time is 10:26 AM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.