Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Oak

  1. Oak

    projectile simulation

    thanks a lot for both of you. it helped me a lot :)
  2. Oak

    projectile simulation

    Thanks. That's pretty amazing how simple it is. It solved a part of my problem. I suppose that I have to set those vectors now. I try to set the projectile tragectory upon angle and velocity. Is there a way to set those vectors base on angle and velocity? I'm poor in maths :(
  3. Oak

    projectile simulation

    Hi, I am working on a project that requires projectile simulation. I've searched a lot on the internet but i'm still out of the way because it requires a lot of mathematical knowledge. I want to build a game about two artillery batteries firering at each other. A classic, but a case of...
  4. Oak

    How can I save the records of a game in QB?

    There no problem at all. :) I've got a cousre about structures 6 month ago: it has to serve! Hey! I've just went into an idea! My course was about structure handlind in C with dynamic memory access with pointers. Pointers, that qbasic can't handel so far can be access with this idea. I don't...
  5. Oak

    How can I save the records of a game in QB?

    In complement to cgfiend, you can even make it more sophisticated by adding some type into other type. Exemple: Your weapon can fire standard bullets and can shoot grenades too. What can you do about that? Make a new record type about munitions TYPE sMunition wNumOfBullets as integer...
  6. Oak

    out of space

    You could either: 1-Work with Qb45 or Qb71 to use the /AH command line option.(allows you to bypass the 64K limit) 2-Use local variables in your subs to preserve memory between calls. 3-Use a swap file instead of memory. (much slower but absolutely legal) 4-Rework your algo to figure out a...
  7. Oak

    Help in a design of compressor program

    I meant that you MUST make notices in your prog. It's not a matter of class; its about other people who will look at. You can't expect to be help without helping others to understand your code.
  8. Oak

    Help in a design of compressor program

    They don't expect you to comment your program in your class?
  9. Oak

    LINE gets flipped over?

    This code works for me too. I've tried this code for testing your posts and didn't get anything going wrong. SCREEN 9 COLOR , 1 'for defining the screen's bounds LINE (0, 0)-(600, 0), , , &HFFFF LINE (0, 15)-(600, 15), , , &HFFFF LINE (0, 339)-(600, 339), , , &HFFFF LINE (100, 0)-(100, 15), ...
  10. Oak

    Changin Text Color

    Well, I guess I've got your answer. In the previously sent program, the BX register is used to set the video page and set the color of the caracter. BH <- Page BL <- Color This text page allows 16 colors -> 00H to 0FH. So what about those extra 4 bites? (That is where you're supposed to get...
  11. Oak

    delay in calling a function

    Good ones. The fact is that the utility of changing the color of a button just for signifying that the button has been clicked is, an opinion of mine, out of purpose. It is always difficult to think about everything in an application, I'll admit it. What will simplify the life of the user...
  12. Oak

    Changin Text Color

    Hi, the service 09h of the interrupt 10h can change color. MOV AH,09 ; FUNCTION 9 MOV AL,03 ; HEART ASCII MOV BX,0004 ; PAGE 0, COLOR 4 MOV CX,07D0 ; 2000 CARACTERS INT 10H ; INTERRUPT 10 -> BIOS INT 20H ; END Enjoy. ;-)
  13. Oak

    Error: &quot;Internal (system software bug&quot;

    Hi, I didn't have much time to look at your code yet. However, I detected a little something in the FileCopy() sub. I don't think that it can solve the problem but it might help correcting &quot;Not a directory&quot; error handling. SourceDir$ = ParsedDirName$(Source$) IF NOT...
  14. Oak

    Error: &quot;Internal (system software bug&quot;

    I'm a little disapointed to see that people don't really read the threads carefully before answering.. BTW: I'm trying to run this under Windows XP. :-)
  15. Oak

    graphics, buffering, PUT

    You can refer to these faq -> faq314-136 faq314-87 It should help. ;-)

Part and Inventory Search

Back
Top