hi I'm new here! quick question...

Syborg
05-10-2005, 04:42 AM
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 :whoops:

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

Machaira
05-10-2005, 06:58 AM
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.

Syborg
05-10-2005, 02:28 PM
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 (http://www.infm.ulst.ac.uk/~mdf1sms/vb/1.gif)
screenshot2 (http://www.infm.ulst.ac.uk/~mdf1sms/vb/2.gif)
screenshot3 (http://www.infm.ulst.ac.uk/~mdf1sms/vb/3.gif)

elnerdo
05-10-2005, 02:43 PM
Are you referencing Dx?

Project > Add reference > .NET > look for all the ones you'll need for your project.

Syborg
05-10-2005, 03:05 PM
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

Machaira
05-11-2005, 07:27 AM
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?

Syborg
05-11-2005, 09:18 AM
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

Machaira
05-11-2005, 10:20 AM
This seems applicable: http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.directx.graphics/2005-01/0042.html

How they could break backwards compatibility is beyond me.

Syborg
05-11-2005, 10:32 AM
thats great mate, will give it a go and let u know how i get on!

thanx again

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum