Results 1 to 6 of 6

Thread: Easy DirectX question

  1. #1

    Thread Starter
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457

    Talking Easy DirectX question

    Well I was wondering if there's any way to make it so that I don't have to use Ctrl+Alt+Del and shut down VB everytime an error occurs in my DX game... Any idea?
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  2. #2
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Well, this always worked for me:



    Error occurs (normally, you would see a MessageBox), press Space (OK), Alt, R, E (Run Menu, End )...


    Even better: press F1. This will pop up the help (or an error in my case, don't have the MSDN installed ), and your screen will return to normal...



    One more option: use 'On Local Error Goto Bla:'
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  3. #3
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    How quick does the code compile?

    It may be easier to simply compile the code and run the exe (set it up in the run command window so all you have to press is [WINDOWS KEY] + [R] then [ENTER].

    Becomes second nature very quickly - just like pressing [CTRL] + [F5]
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  4. #4
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    or how about the Break button,
    i dont know if you have to press Crt + Break or
    just break
    ؊Ϯϊ

  5. #5
    Member Onyx_Black's Avatar
    Join Date
    Nov 2001
    Location
    In my computer
    Posts
    42
    When i get an error in DX i use ALT+tab and flip back to the code screen.
    Cool site for VB gaming dev :-

    http://rookscape.com/vbgaming/tutorials.php

  6. #6

    Thread Starter
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    PsychoMark: that's what I've been using (F1) hehe I just wanted to know if there's a better way...

    Arbiter, Osiris: Sorry, but it's much easier to just press F1 (thanks for the help anyway)

    Onyx: It's running in exclusive mode... Alt+Tab doesn't work. The only thing that I can see is the Ctrl+Alt+Del key, since I discovered the AllowReboot flag
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width