Quick Search for:  in language:    
tutorial,complete,beginner,DirectX,introducti
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 117. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Files Comperator (the right way)
By Jarry Claessen on 6/30


Simple UDP example
By Mick Walton on 6/30


CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Encryption Decryption Demo
By Nikhil Raj on 6/30


Click here to see a screenshot of this code!Serial Registration
By Christian (eXonite Team) on 6/30

(Screen Shot)

AniViewer
By Jerrame Hertz on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

An Introduction To DirectX

Print
Email
 
winzip icon
Submitted on: 9/23/2000 11:28:19 AM
By: Simon Price  
Level: Intermediate
User Rating: By 26 Users
Compatibility:VB 6.0

Users have accessed this code 18593 times.
 
(About the author)
 
     This is a tutorial for a complete beginner to DirectX. This introduction shows you the very basics of using DirectDraw, with more comments than code to help explain everything in plain English. The resulting program will draw a picture and stretch it to fit the size of the form. IMPORTANT - This requires DirectX7 and the DirectX7 for Visual Basic Type Library. If this tutorial helps you, please give feedback and/or vote, because if there is enough interest, subsequent tutorials will follow.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 17 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
9/23/2000 11:33:35 AM:Simon Price
If you like this see my other 
submissions (DO NOT click the link 
provided, instead search for "Simon 
Price" because I have 2 accounts!) and 
visit my website : 
www.VBgames.co.uk
Good luck with 
learning DirectX!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/2000 1:44:32 PM:VBDOG
Well what can I say a very good 
tutorial well commented and easy to 
understand which is very rare in vb 
programmers.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/2000 4:24:49 PM:Daniel Davies
I can't beleive it...U did it again! 5 
Globes for the code. Excellent 
discription. Altogether Great! I was 
actually about to e-mail you...(Seeing 
as you are great with Direct-X) Asking 
if it would be possible to create a 
simple Direct 3D thing. U know, 
something really easy! I did try a MSDN 
tutorial, but it never said exactly 
what to do, so I couldn't get anything 
to work :( Anyway, let me know :o)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/2000 5:29:33 PM:Simon Price
Thanx guys, yes there might be a D3D 
tutorial, but I think it should come 
after tutorials on DirectDraw exclusive 
mode and maybe DirectSound and 
DirectMusic too.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/23/2000 10:09:27 PM:Nathan Chere
Make that 3 accounts Simon, you're 
forgetting SE Software :)
Seriously 
though, this is the first submission of 
yours which I think deserves 
credit/votes. 4 globes.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/24/2000 5:07:06 AM:Simon Price
Thanks Nathan, but I still can't 
believe you're still going on about 
SEsoftware...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/24/2000 1:41:58 PM:xim
Thanks Simon, most tutorials tend to 
skip over the details, but this (and 
hopefully future installments ;)) is 
well commented and will certainly aid 
me in my quest for a complete 
understanding of Dx.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/27/2000 3:13:25 PM:Michael Tanner
Great tutorial, Simon. Can't wait for 
the next one!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/7/2000 8:50:35 AM:SqueakMac
I want to try this code, but I don't 
have the DirectX 7 Tpye libraries.  
Where can I get them?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/7/2000 10:49:28 AM:Simon Price
To SqueakMac, and anyone else 
interested:
I downloaded the 
DirectX7 for Visual Basic type 
libraries from www.microsoft.com , I 
can't remember
the exact url but go 
there and look for DirectX7 and then 
developers and I'm
sure you'll find 
the link. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2000 12:18:29 PM:Mr. Bob
To anyone who is looking for the DX7 
Type Libraries: You don't have to 
download the SDK (Althhough should be a 
joy to have). All you need to do is 
install DX7. Then, the Libs will be in 
the References area. Great Job, Simon! 
You just saved my first game!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2000 6:39:52 PM:Doug
Hmm.. pretty cool. I don't get what the 
object of this tutorial is supposed to 
accomplish though.. you draw that 
text.bmp onto the screen. but can't you 
just use a picturebox and put text.bmp 
as the Picture? I don't get it :-|
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/8/2000 6:41:37 PM:Doug
Oops. I meant test.bmp not text
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/17/2000 5:55:41 PM:Travell
Simon Rulz, Would 3DStudio Max be a 
good tool to use for my 2d characters 
in DX? Im designing a Survivor Horror 
Game. What type of Engine would you 
recommend? Anyone else feel free to 
e-mail be concerning this project
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/18/2000 6:49:47 PM:batman
Ya i am batman.  Some people call me 
crazy but o well.
IM SO SMART... I 
KNEW ABOUT THIS PROJECT BEFORE IT WAS 
OUT!  (i went to your website and it 
said project not done)...
... batman comes and goes ...
  ... 
whoever reads this will see me 
again!!!!....
AHAHAHAHAHAHAHAHAHAHA..
.cough cough
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/19/2000 4:35:07 PM:Chewi
I downloaded the SDK but I found it's 
only a useful reference once you know 
how it works. As a tutorial it is 
infuriatingly complicated. I haven't 
tried this tutorial of yours, Simon, 
because I already know how to use it 
thanks to some help from Jack Hoxley 
(also from the UK... you seem to be... 
and so am I). He wrote a guide and 
after a few e-mails I had it figured. 
It's great to see another one and by 
the looks of things you've done a good 
job. I've looked into Direct3D through 
the SDK... I have a very vague idea but 
I think a tutorial on that would really 
help. Just now I wanted to make a 
virtual piano program (that's why I 
came here just now). I looked into 
DirectMusic... and looked away. I think 
there must be an easier way. Ummm... I 
think I wrote too much. *grins*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/23/2000 5:50:40 PM:jonnysoft
A cute little demo, but not very 
inspiring. (Who would use DDraw to blt 
still pictures to windows?!?!?!?)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/27/2000 1:32:37 PM:Wazerface
I knew Simon made this just by the 
title, GREAT JOB!!! and JonnySoft, 
don't even think of calling simon's 
code "cute and little"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/9/2001 6:44:40 PM:Djm406
Great start for people learning DirectX
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/3/2002 11:18:19 AM:Gah3k
Good job. I am a newbie to DirectX, and 
this helped me out a lot.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2002 4:26:54 PM:Anphanax
for us newbies with directx, this demo 
is great. Because it shows how to paint 
a still picture without all that extra 
garbage to confuse the hell out of 
people. Once people know how to create 
still images with directdraw, they can 
of course make moving ones. :\ This is 
the best example I have ever found. 5 
Globes.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 10:48:44 AM:
nice tutorial, easy to understand, very 
helpful for students like me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/20/2003 7:28:56 PM:Timothy E. Mertz
HEEEEELP i am having trouble when i 
declare my directx7 i get no popup 
suggestions but when i type in his it 
suggests thing for me some body email 
me at krazykeet@aol.com with a reply i 
am desprate to learn directx but how 
can i when i cant get it to work 
right!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.