hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question...
hi I'm new here! quick question... hi I'm new here! quick question...
hi I'm new here! quick question...
Go Back  Xtreme Visual Basic Talk > > > > hi I'm new here! quick question...


Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2005, 04:42 AM
Syborg Syborg is offline
Newcomer
 
Join Date: May 2005
Location: L'derry
Posts: 6
Default hi I'm new here! quick question...


hi guys,

nice forum! I'm in my last year of study at university, for my final project I have been asked to develop a program (in vb.net and direct x) that loads a .X file (containing a 3d model) and puts it in a DX window with various statistics on performance, verts etc...

My tutor gave me a copy of microsoft SDK 9.0 and told me everything i would need would be on the disk... there was 1 vb tutorial that was a basic starting point. nothing else was of much use. So I managed to get an earlier copy of sdk, which had a larger array of tutorials and source. MY problems were solved (or so i thought)...

The machines in the university here are equiped with .net studio and directX extensions, I presumed that the majority of the source code would work, but the only tutorial that works is the "create_form". The other codes produce a good few errors, has anybody else experienced this problem or have a fix? Because my supervisor doesn't

I have little or no experience in vb.net although I have done work in visual basic 6, so hopefully will be able to understand the lingo

Thanx for your time guys, I really hope i haven't missed a topic on this already as i took 20-30mins to browse through your content b4 i posted.

Sy
Reply With Quote
  #2  
Old 05-10-2005, 06:58 AM
Machaira's Avatar
Machairahi I'm new here! quick question... Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Tutorial 6 in the SDK is a project for loading .x files.

What errors are you getting when you run the other projects? Just because they have .NET and DX doesn't mean they have the hardware capabilities to run some of the samples. The code in these samples doesn't check hardware capabilities so you'll just get errors. That's more than likely the problem you're experiencing.
Reply With Quote
  #3  
Old 05-10-2005, 02:28 PM
Syborg Syborg is offline
Newcomer
 
Join Date: May 2005
Location: L'derry
Posts: 6
Default

hi mate.

thanx for replying.

here are a few screenshots of the errors, 68 build errors in total. I have to be doing something wrong here, this code is straight off the sdk browser. the project was copied onto the c drive then opened in vb.net, when i attempt to build or run the project these errors occur

p.s. this is an "enhanced mesh" tutorial, although these errors occur when i attempt to run any other tutorial other than the most basic "Create_device"

screenshot1
screenshot2
screenshot3
Reply With Quote
  #4  
Old 05-10-2005, 02:43 PM
elnerdo's Avatar
elnerdo elnerdo is offline
Contributor
 
Join Date: Jul 2004
Location: Northern New Jersey
Posts: 490
Default

Are you referencing Dx?

Project > Add reference > .NET > look for all the ones you'll need for your project.
__________________
nerds unite!
Reply With Quote
  #5  
Old 05-10-2005, 03:05 PM
Syborg Syborg is offline
Newcomer
 
Join Date: May 2005
Location: L'derry
Posts: 6
Default

ok, I abandoned the enhanced mesh, and looked into the tutorials section...

tutorial 6 seems to be a good start, although tutorials 2-5 come up with this error

C:\Documents and Settings\mdf1sms.MGPC122\Desktop\Tutorial3\Matrices.vb(57): 'DeviceCreated' is not an event of 'Microsoft.DirectX.Direct3D.Device'.

any idea?

*p.s. the folders and files are all in their relevant places

Last edited by Syborg; 05-10-2005 at 03:12 PM.
Reply With Quote
  #6  
Old 05-11-2005, 07:27 AM
Machaira's Avatar
Machairahi I'm new here! quick question... Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

What do you mean by "this code is straight off the sdk browser. the project was copied onto the c drive"? I'm assuming you actually installed the SDK? What version of DX9 is it and what version of Windows are you running? When you open the References node in the Solution Explorer are all the references good?
Reply With Quote
  #7  
Old 05-11-2005, 09:18 AM
Syborg Syborg is offline
Newcomer
 
Join Date: May 2005
Location: L'derry
Posts: 6
Default

references work ok, only this line has an error

AddHandler device.DeviceCreated, AddressOf Me.OnCreateDevice, where "DeviceCreated" is underlined

The SDK is installed on this machine, directx 9.0, and this machine runs XP, the project was installed onto the cdrive-desktop from the browser.

thanx for your reply
Reply With Quote
  #8  
Old 05-11-2005, 10:20 AM
Machaira's Avatar
Machairahi I'm new here! quick question... Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

This seems applicable: http://www.tech-archive.net/Archive/...5-01/0042.html

How they could break backwards compatibility is beyond me.
Reply With Quote
  #9  
Old 05-11-2005, 10:32 AM
Syborg Syborg is offline
Newcomer
 
Join Date: May 2005
Location: L'derry
Posts: 6
Default

thats great mate, will give it a go and let u know how i get on!

thanx again
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question... hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question... hi I'm new here! quick question...
hi I'm new here! quick question...
hi I'm new here! quick question...
 
hi I'm new here! quick question...
hi I'm new here! quick question...
 
-->