Important alert: (current site time 7/16/2013 1:06:33 AM EDT)
 

winzip icon

_The Simplest DirectX example

Email
Submitted on: 5/5/2002 6:36:28 PM
By: Tomas Tupy  
Level: Intermediate
User Rating: By 23 Users
Compatibility: VB 5.0, VB 6.0
Views: 52856
author picture
(About the author)
 
     ***It's the simplest directX example here!!!*** If don't know anything about DX, this is the perfect code for you. No Modules or Classes, just one form with little code. Even includes conv3ds.exe, which lets you convert your 3DS files to .x files which are used in VB. You can easily add them into the world you can create. *** GREAT CODE!!! *** ***Heavily commented*** DON'T FORGET TO VOTE AND COMMENT LOOK BELOW IN THE COMMENTS FOR URL OF RMCONTROL.ocx AND 3dconv.exe

 
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 Winzip to 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 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

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

5/6/2002 1:50:01 AMAlex Smoljanovic

Can't find the Active-X control: RMCONTROL.ocx. I can't test this application because of its lack of the 'canvas control'. Please tell me where I can locate this.
(If this comment was disrespectful, please report it.)

 
5/6/2002 1:56:42 AMRobert Rayment

Note that normally the PSC filter cuts out EXEs & OCXs to block the virus vandals.
(If this comment was disrespectful, please report it.)

 
5/6/2002 4:52:20 AMTuanHai

Missing OCX. Please send me with the subject is: The Simplest DirectX example
(If this comment was disrespectful, please report it.)

 
5/6/2002 3:32:20 PMNiknak!!

When u say its easy because it has no class modules, I think ull find class modules are easier than pulling code out of forms to do as u wish, class modules are reusable.
(If this comment was disrespectful, please report it.)

 
5/10/2002 2:58:43 AMLordRebus

Where that Convert program??
Is there any site i can seach on it??
(If this comment was disrespectful, please report it.)

 
5/19/2002 8:31:18 PMTomas Tupy

THe program is 3dsconv.exe
(If this comment was disrespectful, please report it.)

 
6/22/2002 4:30:54 PMGeorge Papadopoulos - VirusFree

hmm..Tomas Tupy...i can't find conv3ds.exe in the zip file (i guess the server deleted it (doesn't allow exes ))..i really need a file like that..please can you send it to my e-mail george_p21@hotmail.com or tell me where can i find it?..a tip : when you upload exe file add a .tmp or .bak or something so the server won't delete it...please send me an e-mail.. :)
(If this comment was disrespectful, please report it.)

 
6/22/2002 4:32:10 PMGeorge Papadopoulos - VirusFree

another thing..do as i told you and for the activex u use..because server doesn't allow ocx either..:)..thank you
(If this comment was disrespectful, please report it.)

 
6/26/2002 12:09:09 PMDonald Campbell

This doesn't work. It cannot find the OCX control. It seems logical, though, since Planet-Source-Code does block it.
(If this comment was disrespectful, please report it.)

 
7/2/2002 7:03:07 PMLupin

I really don't like this samples using the DirectX-Controls, why don't use DirectX8 or DirectX7 without any controls?
But I think your sample is not bad for the ones who really want to learn this.
(If this comment was disrespectful, please report it.)

 
7/13/2002 1:26:43 AMCo0nest

how come i cant add my own .x files?
(If this comment was disrespectful, please report it.)

 
8/29/2002 9:33:47 AMComputer Controller

Origanaly Writen by George Papadopoulos - VirusFree (but changed a little):

hmm..Tomas Tupy...i can't find
conv3ds.exe in the zip file (i guess
the server deleted it (doesn't allow
exes ))..i really need a file like
that..please can you send it to my
e-mail vilmer88@hotmail.com or tell
me where can i find it?..a tip : when
you upload exe file add a .tmp or .bak
or something so the server won't delete
it...please send me an e-mail.. :)

(If this comment was disrespectful, please report it.)

 
9/25/2002 7:52:00 AMZorg

Download 3dconv.exe at :-
http://www.algonet.se/~lars_and/download/3dsconv.zip
(If this comment was disrespectful, please report it.)

 
9/25/2002 7:53:00 AMZorg

Oh yeah and you can get RMCONTROL.ocx at
http://therabbithole.redback.inficad.com/tricks/directx7/DXSDK/samples/multimedia/ vbsamples/support/rmcontrol.ocx

(If this comment was disrespectful, please report it.)

 
10/10/2002 7:01:16 AM

Hi, great code.
But could you send me the .exe and .ocx file please? thanks
(If this comment was disrespectful, please report it.)

 
10/13/2002 9:29:35 AM

I was able to test the program but only after downloading the ocx file from the net. From now onwards plz. rename the executable files to some other ext. so that the server won't delete those files.
(If this comment was disrespectful, please report it.)

 
10/13/2002 9:30:06 AM

I was able to test the program but only after downloading the ocx file from the net. From now onwards plz. rename the executable files to some other ext. so that the server won't delete those files. i am new to VB programming. Really liked it.
(If this comment was disrespectful, please report it.)

 
12/20/2002 6:25:16 PMJefff

I get an automation error...
(If this comment was disrespectful, please report it.)

 
2/5/2003 10:09:36 PM

so do I, why is this?
(If this comment was disrespectful, please report it.)

 
2/9/2003 3:07:06 AM

Can't find the Active-X control:
RMCONTROL.ocx. Please tell me where
I can find this or can you send this to me?
(If this comment was disrespectful, please report it.)

 
2/9/2003 3:37:58 PMBPeek

Here is the link for the OCX file
http://www.a-fluffy.demon.co.uk/homeworld/hwse/rmcontrol.ocx
(If this comment was disrespectful, please report it.)

 
2/9/2003 9:44:03 PMTomas Tupy

Thanks for putting the rmcontrol link up, I forgot where I got it from.
(If this comment was disrespectful, please report it.)

 
3/10/2003 4:17:56 PM

HORRAY! Thanks for putting the ocx. 5 ball things for you. That is the simplest example of Direct3D i have ever seen. : ) THANKYOU
(If this comment was disrespectful, please report it.)

 
3/15/2003 9:27:37 PMTomas Tupy

If you get an automation error, compile to exe and then run it, it will work
(If this comment was disrespectful, please report it.)

 
3/15/2003 9:33:30 PMTomas Tupy

If you want to convert .3ds to .x files, goto http://www.3drad.com/links.htm
(If this comment was disrespectful, please report it.)

 
4/23/2003 1:29:10 PM

I Need the RMControl.Ocx. Please
Because Without this control, doesnt Work!
(If this comment was disrespectful, please report it.)

 
4/29/2003 6:11:17 AMMike Sanders

The RM control is pretty bad anyway. I wouldn't use it if my life depended on it... Although the code isn't bad so keep goin Tom.
(If this comment was disrespectful, please report it.)

 
8/8/2003 4:19:11 PM

Please tell me the URL for the RMCONTROL.ocx, or send it to me to: sdrm0@hotmail.com
(If this comment was disrespectful, please report it.)

 
9/20/2003 9:54:23 AMrubberducky

i need control dasannoniem@Hotmail.com
the ocx and the controlthing for ur simple direct x
(If this comment was disrespectful, please report it.)

 
10/22/2003 4:06:55 AM1" ''

0
(If this comment was disrespectful, please report it.)

 
11/1/2003 7:01:20 PM

Hi, it's a nice code but when I use another .x model file, it gives "Automation Error". Why? What can I do? Is there anything to do with code except from changing file name?
(If this comment was disrespectful, please report it.)

 
11/7/2003 9:16:22 AMAlex Claas

Thank You so much. This is the best code i have ever seen (at least for me ;) ) 5 Globes definatly!!!
(If this comment was disrespectful, please report it.)

 
11/7/2003 9:19:36 AMAlex Claas

You can easily alter this to make different scenes and/or worlds.
(If this comment was disrespectful, please report it.)

 
11/5/2004 1:19:44 AM

Good. Real very good
(If this comment was disrespectful, please report it.)

 
12/16/2004 5:54:15 AM

It's a good work to start with direct x
(If this comment was disrespectful, please report it.)

 
12/17/2004 11:01:43 AM

When I Try To Convert a file, the command prompt appears and dissapears again within 1 second :| ?
(If this comment was disrespectful, please report it.)

 
1/21/2005 11:52:01 AM

Y cant i use another .x file?
Automation error, what's that. please tell me
(If this comment was disrespectful, please report it.)

 
1/22/2005 3:34:13 AM

Ya I get the automation error even in the compiled exe. Y?
(If this comment was disrespectful, please report it.)

 
2/19/2005 11:07:17 PM

i can't find rmcontrol.ocx file or 3dconv.exe file
(If this comment was disrespectful, please report it.)

 
2/25/2005 1:38:29 PMHardStream Software Development

OCX Missing
(If this comment was disrespectful, please report it.)

 
5/17/2005 8:03:53 AM

Can someone give me the code which allows the control to detect when certain objects are clicked.
(If this comment was disrespectful, please report it.)

 
12/11/2005 1:25:32 AMkunal

why don't u add ocx code project in ur submisson its simple just update ur origional submission
(If this comment was disrespectful, please report it.)

 
1/23/2006 9:58:19 AMsamurai xxx

can anyone please email me the .ocx file at shashwat_garg2000@hotmail.com
PLEASE!!!! i'm in desperate need of that file
(If this comment was disrespectful, please report it.)

 
1/24/2006 10:24:14 AMsamurai xxx

please send me rmcontrol.ocx
i can't fins it anywhere on the net and the links given above don't work
send the .ocx file at shashwat_garg2000@hotmail.com
(If this comment was disrespectful, please report it.)

 
1/24/2006 10:24:33 AMsamurai xxx

please send me rmcontrol.ocx
i can't find it anywhere on the net and the links given above don't work
send the .ocx file at shashwat_garg2000@hotmail.com
(If this comment was disrespectful, please report it.)

 
3/24/2006 10:34:08 AMMinhTAm

please send me rmcontrol.ocx
minhtam05@gmail.com
(If this comment was disrespectful, please report it.)

 
8/30/2006 6:53:23 AM

I like this code keep it up
(If this comment was disrespectful, please report it.)

 
9/4/2006 4:29:27 PMFiredddragon

You can download the OCX here
http://www.delphster.net/games/homeworld/rmcontrol.ocx
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.