2008 And DirectX - Display ?

Dec 3, 2009

I'm using Visual Studio 2008 on Windows 7 64-bit and latest DirectX SDK (August 2009). When I run program, window looks like this . The code is from site . Windows Vista 64-bit has the same problem. My graphic cart is Gigabyte GeForce 9400 GT

View 4 Replies


ADVERTISEMENT

Add DirectX.AudioVideo Into 2008 Express

Jun 30, 2009

Managing a Music Collection Using Visual Basic Express and SQL Server Express.Just what I wanted. The Database setup was very straight forward. However, when it came to the Visual Basic coding I got completely lost The example references Microsoft.DirectX.AudioVideoPlayback.dll But I do not understand how to reference this from within the Visual Basic express coding. Within the example there is a line Private withEvents mp3 As Audio = Nothing.When trying to build the example Visual Basic 2008 Express alway reports the following error for this line.Type 'Audio' is not defined.I have installed the DirectX 9c SDK software and from within Visual Basic Express 2008 selected the following,[code]How do I play and MP3 File from within my Visual Basic express 2008 Application?

View 1 Replies

DirectX On Visual Studio 2008?

Sep 21, 2010

I am trying to learn how to use directX on VB.net. I found this tutorial:[URl]..and followed what Jenner wrote there but VB errors when I try running it.I installed the latest directX SDK package microsoft had and still the code errors when I run it.Anyone knows why that is? or has got some other tutorial that I could check out? I am running on windows 7 if it matters.

View 1 Replies

VS 2008 Draw Lines Using DirectX?

May 1, 2010

How do I draw lines using DirectX? (on my form)

View 1 Replies

VS 2008 - Overlay Small Bar Over Fullscreen DirectX Games

Jul 25, 2009

I need to overlay a small bar along the top of the screen over a fullscreen DirectX game. I have searched for a while but I have not found any code examples for VB.NET 2008 (I've never used any previous version). How can I do this? Would this involve learning DirectX programming?

View 2 Replies

VS 2008 DirectX Audiovideo - Snapshot - Getting Errors And Exceptions

Sep 11, 2010

I have already incorporated DirectX into a program and set the owner to a picturebox which so far works great, but all it does is set the place/dimensions of the directx window to the picturebox... it doesn't actually USE the picturebox for the video so if i pause the video or set a timeframe I can't use the picturebox frame/image to pull information from. So what I want to do is when i pause the video at a certain frame I want to be able to actually take a snapshot and populate the picturebox with that image and then be able to save/manipulate it like a normal picture. I have read some examples and coding on screen snapshots using DirectX.3D, but not audiovideo. Not sure if its the same or what. I know normally you would start out with CODE, but in this case I have NO IDEA exactly where or how to start it.. I tried Bitmap options with the screen area/location, etc... but was getting errors and exceptions..

View 2 Replies

VS 2008 In Directx Full Screen Game GetPixel

Aug 20, 2010

in Directx Full Screen Game GetPixel Function Not Working (#000000)

View 2 Replies

IDE :: Add The Directx In VB6?

Mar 9, 2009

i am using windows vista and i have installed visual basic 6 and Microsoft directx SDK 2008 in my computer.I want to use directx in VB6 but i am not able to add it from the reference.There is no reference to directx available there.

View 1 Replies

Set DirectX SDK Up With VB?

May 9, 2009

i am beginning to be better and better to VB express edition 2008, and really really like this language, my goal is to program 3D games.And since i didn't came anywhere in C++ or C#, i believe it's possible to make great 3D in Visual Basic. how to set DirectX SDK up with Visual Basic? and show me some tutorials or books?

View 10 Replies

Using DirectX With VB?

Jul 21, 2009

I have a quick question that needs answering. How can I use DirectX in my VB 2008 application? Most sites I've seen says to write Imports Microsoft.DirectX but it's apparently not there. I have downloaded the DirectX SDK (MArch 2009) but there are only C++ files in there. Can anyone provide insight as to how I could solve this?

View 5 Replies

3D Grid Using DirectX?

Aug 16, 2010

I am using Microsoft's Visual Studio 2005 (VB.Net) to make a basic directx program, which shows the coordinate visually. The idea is to draw the x-y and x-z grid using the line class of the direct3D. The line class has a function to draw line in 3d

Public Sub DrawTransform(ByVal vertexList() As Microsoft.DirectX.Vector3, ByVal transform As Microsoft.DirectX.Matrix, ByVal color As System.Drawing.Color)

View 4 Replies

Hooking DirectX 9

Sep 9, 2009

I'm working on a tool that requires overlays ala X-Fire. I'm hoping to do it in C# or VB.NET rather than resorting to C++, but the only solutions i've found for .NET cause a large performance hit (~20FPS in games). Take a look here: [URL]

View 1 Replies

Add A Reference To DirectX In VB 2010?

Mar 21, 2012

If I try to copy/paste simple tutorials such as [URL], Visual Studio freezes indefinitely and I have to force-close it. If I try to use code like the stuff found here
[URL] or even just load up Reed Kimble's XArcade Vengance from this forum, I get this error message:

An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.DirectX.Direct3D.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

[Code]...

View 6 Replies

Add DirectX Capabilities To My Project?

Oct 30, 2010

I want to add DirectX capabilities to my project and I don't feel like messing around to learn WPF at the moment. How can I include DirectX into my project running VS2010 .NET 4.0. I know MS no longer supports managed code for DirectX but is there an API module or something I can get.

View 3 Replies

Cannot Import The Directx Reference

Oct 17, 2011

I've spent a long time bashing my head against my desk and an even longer time trying to get directX to work with vb.net. I've downloaded the June 2010 SDK and installed. I cannot import the directx reference, and it does not even show up in the add references popup. even when manually going into the c:program filesMicrosoft DirectX SDK (June 2010) and search every folder for the correct file it does not exist. What the hell. I'm running Visual Studio 2010 Pro. this is the most frustrating thing.

View 1 Replies

Connect An Unmanaged DirectX To .NET?

Sep 20, 2009

Maybe this is not true ... But how to connect an unmanaged DirectX to VB.NET? For anyone dll I use <DllImport()>, but Unmaged DirectX have interface.... Than I tried use "<ComImport(), Guid(...)...>", but I do not know how to use COM interfaces Maybe I did not really understand COM technolgy... I tried find documentation "how to use com interfaces", but found nothing.

View 1 Replies

DirectX - How To Create 2D Graphics

Aug 20, 2009

I have found an example about how to create 2D Graphics in Visual Basic using DirectX here. I have created a new Windows Application, I have copied the code, but I get errors. The code seems to be OK, but the application refuses to start. I have the nVIDIA 7300LE Graphics Card and I'm using Windows Vista x64 with DirectX 10 and Microsoft .NET Framework 3.5 SP1. I have also downloaded the DirectX Redistributable Package (March 2009) in order to make my application work...

View 10 Replies

DirectX 2D Drawing With Program?

Sep 28, 2011

I'm using using System.Graphics for my latest project (A simple 2D application). Problem is, it gets a horrible FPS and I'm only drawing 8x8 tiles (usually 10-12 is enough to bring it down to 12FPS).

A friend of mine suggested that I use DirectX. He also suggested XNA but I opposed because I don't want my clients to have to install the XNA distributional. DirectX is common enough (to my knowledge) and I can just include the dll's if I need to.

So, my search began. I've been looking only for DirectX 2D tutorials for VB.net. I've had no solid success thus far. In truth, all I need to do is be able to draw bitmap x at position pos.

I've been using System.Graphics and a hacked up bitmap as my buffer thus far so I'll go for any improvement that I can get.

I'm using VB.net so I'll be ok if you give my one for C#, I'm pretty good at being able to read it (and I have a nice converter too). I would just prefer VB.net to save time.

View 1 Replies

DirectX Not Working In .NET FYI And Question

Apr 3, 2010

I decided to add some 3D rendering to my project and found an interesting little quirk. DirectX doesn't like to work under the AnyCPU Platform; it won't run. Instead you have to assign it to a new platform x86 under the Configuration Manager; which makes debugging difficult because if your doing User Controls they won't load.

View 2 Replies

DirectX Scaling / Intensity Changes

Jun 24, 2010

So, I coded a graphics engine for myself. I can make meshes, save them, load them, rotate them, position them, scale them, and light them. Unfortunately, when I scale objects to a size other than it's original size, my lighting intensity changes (seemingly proportionally) with the scale of the object! Ambient light still works correctly though. Any suggestions?

View 4 Replies

How To Install DirectX With Application

Mar 13, 2011

I have made a rendering application and it NEEDS dx9c to run... so i want to add dx9c install into my setup project, so when the application installs after the setup has installed the main application it will then install dx9c, I have a folder in my data folder called dx9c with full runtimes inside and the dxsetup.exe, I have tried making a custom action and pointed the action at the dx9c/dxsetup.exe from the data folder into commit folder but this errors on when launching the dxsetup.exe "invalid command line" and uninstalls the whole application.

View 1 Replies

IDE :: DirectX Referencing In VS10

Jun 25, 2010

i have just installed Visual Studio 10 and DirectX SDK (June 2010), however i can't seem to add directX as a reference. I have also tried Direct X SDK (march 2009).

View 3 Replies

Installing DirectX Or OpenGL On VB?

Sep 13, 2011

I wanted to install visual Basic or C++ (but Basic really seems easyer to use) with DirectX or OpenGL but I can't get it to work!I've tried Visual Basic Express 2008 and 2010 and i'm getting the same type of errors...

-> Directx

When I try this program [URL]with VB I either get

with 2008 : just a red cross on a blank screen

with 2010 : an unlimited waiting time, and when i click i get an error message that tells me to continue waiting, im forced to CTRL -ALT - DEL to shut down VB.

-> OpenGL:So i've tried a lot of times! they tell me that it's already installed on windows so i don't need any installation but then VB gives me alot of errors, telling me that some part of code isnt recognized!!

i've tried tutorials with Csgl or Tao, but none seem to work...I already got some knowlege of OpenGL but not DirectX, so could anyone please tell me which one does work on my computer and is best for creating a graphics window inside an API that i create, for instance a mob maker?

View 15 Replies

Multiple Sounds With Directx?

Dec 22, 2009

i have a little project I have been working on over the past few days just a simple piano project, during making it I used directx sdk To allow me to play multiple wav files at the same time. everything worked out great got the piano working and was able to play some sound effects while I banged out a master piece on the piano . So the next step was to make an exe file , I knew that once I used directx sdk I might run into a problem when trying to make an exe to run on all my PCs that dont have directx sdk installed on them .

My question is it possible to make an exe that will allow my program to run on any pc even without directx sdk installed?

View 4 Replies

Overlaying Form Over DirectX?

May 30, 2010

I have a vb.net application. I want to overlay my application over a DirectX game. When the user presses a hotkey the window is displayed and when the window is overlayed ontop of the game. I want it fully interactable. How can I do this in vb.net?

View 3 Replies

Play Video In DirectX (WPF)?

Apr 9, 2011

I have a WPF 4/VB.net project, and I'm trying to play video in it. I've been using a mediaelement, much to the chagrin of the program's overall performance. Thus, I'm looking into the only other viable alternative that I can find for my project...directx.

Which brings me to my question. Is it possible to play video (either Theora [.ogv] or Flash Video [.flv]) in DirectX?

View 1 Replies

Playing Video Using DirectX ?

Sep 18, 2009

I have scoured just about every code sample on the web, and am still having trouble. Basically my code follows the following structure:

I installed the DirectX SDK, and imported AudioVideoPlayback Imports Microsoft.Directx.AudioVideoPlayback '''

Then I create my VideoPlayer Public WithEvents VideoPlayer as Video So far so good, I have event handlers and a video object

Then:

[CODE]...........

I execute the above subroutine and the video plays flawlessly

[CODE]............

The above code works perfectly as well

Then I try to execute the PlayVideo sub to play another file and I get a generic "Object reference not set to an instance of an object" error, that does not point to any particular line of code. It took me forever to find out exactly what line of code was causing this. So I came up with a workaround:

In the PlayVideo sub I changed the code to this

[CODE]..............

And there it is, the second video played without error. but then I noticed something, after the second video ended the .Ending event handler did not fire, actually all the event handlers basically died. So someone told me to use a timer to monitor when the video ends, and I basically laughed it off since we know that's an amateur move. After being frustrated for a while, I caved in and used the timer to do my dirty work, which I really don't like.

Now there's another problem, after I play a video in my project, DirectX is not screwed up for other programs until I restart my computer. Particularly I have a visualization plugin for Windows Media Player called Gforce. After I play a video, Gforce will not work, it gives me an "Error=18" which means that my computer does not have sufficient hardware to use it. The only way to be able to clear it up is to restart my computer.

Here are my specs:
Intel 3.0ghz Dual Core processor
Nvidia Geforce 9800GT with 1GB ram
4 GM Ram
Windows 7 64-bit version (build 7100)
Programming in Visual Studio 2008 Professional (using Visual Basic code)

I originally attempted to use the AxWindowsMediaPlayer control, but I am unable to. According to Microsoft there is a bug that prevents me from using it. When I pull up the choose items dialog box it does not show up, if I browse to wmp.dll to manually add it, I get an error ("self-registration for c:windowssystem32wmp.dll failed"). I also read that you should try to add the wmp.ocx instead of wmp.dll, but I am at a loss on this since I am pretty sure that file does not exist. I am trying to put together a new media player program for my theater pc and this video thing is putting me to a standstill. I am a highly experienced vb programmer (over 20 years), but I am not very experienced in DirectX. I have read a lot of code samples on video playback but they all give me tons of problems, so I hate to say it but i think that most of these samples were written by people who don't know what they are doing.

View 2 Replies

Using VB2010 With DirectX Aug 2009?

Dec 31, 2009

My OS is Vista Home Premium (64-bit) SP2. I've been working with VS 2010 Beta 2, wrote a few apps, and downloaded the Aug 2009 DirectX SDK. I have all of the source code for a game I wrote ten years ago (with VB5 using DirectSound and DirectInput from DX7) and I would like to get it working with the latest VB and DirectX (and use Direct2D also) but the first problem is that I can't even find how to "include" directx into a project. I was hoping to make a small example app to figure out what I need to do to update my code and what capabilities D2D has, but I can't even get out of the gate with DirectX.

View 6 Replies

VS 2010 DirectX Authentication?

Oct 30, 2010

a WindowsForm application and I need a code to check target's machine installed version of DirectX.If the reg key doesn't match with provided one >>> load the form and launch the DX installer "redistdirectx_Jun2010_redistDXSETUP.exe"If the reg key matches with the provided one >>> launch other application "Setup.exe"

View 6 Replies

Apply A Texture To Primitives In DirectX

Jun 14, 2009

i'm developing a simple 3D Cad Application that renders some created objects. I'm able to apply a color-based material to the objects but not to cover their surface with a texture, such as a bitmap. These are the two main code blocks of my application:

This code, creates the objects and creates materials for them. (To draw the objects, i'm using the Mesh class' methods):

objects(0) = Mesh.Box(device, obj.SizeX, obj.SizeY, obj.SizeZ)
materials(0) = New Material
materials(0).Diffuse = obj.Material
materials(0).Specular = Color.LightGray
materials(0).SpecularSharpness = 15.0F

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved