msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DirectX and vb

 
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX
Author Message
Ricardo Furtado



Joined: 04 Oct 2007
Posts: 14

PostPosted: Tue Sep 25, 2007 7:32 am    Post subject: DirectX and vb Reply with quote

I'm new in DirectX, just starting now, and i'm following the code that i see
in books. I'm trying to use a code from a book but i get an error message
that i can't solve (and it souldn't be appening)
whenever i click the button1 i get an error message in the following line of
code:
For i = 0 To Microsoft.DirectX.Direct3D.Manager.Adapters.Count - 1

i get this error message (error message has been translated to English)
DLL
'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll'
is trying the execution managed inside the blockade of the Shipment Program
of the SO. Do not try to execute the code managed inside DllMain or an image
initialization function, because that might make the application to be
suspended.


my source code is this

Public Class Form1
Dim ObjDirect3DDevice As Microsoft.DirectX.Direct3D.Device

Private Sub ListAdapters()
Dim i As Integer
Dim AdapterInfo As Microsoft.DirectX.Direct3D.AdapterDetails

For i = 0 To Microsoft.DirectX.Direct3D.Manager.Adapters.Count - 1
AdapterInfo =
Microsoft.DirectX.Direct3D.Manager.Adapters(i).Information
lstAdapters.Items.Add(AdapterInfo.Description)
Next

lstAdapters.SelectedIndex = 0
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
ListAdapters()
End Sub
End Class


Can you help me?

My thanks in advanced

Archived from group: microsoft>public>vb>directx
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Namespace or Type DirectX for the Imports Microsoft.DirectX I have encountered Namespace or Type DirectX for the Imports cannot be found reinstalled Directx SDK. Navigated to Called DXSetup.exe with the command line attribute, as follows. DXSetup.exe /I

NT directx What is the maximum directx avaliable for NT 4.0. Paul

DirectX SDK For VB.NET Hi! I've downloaded DirectX sdk for vb.net but there aren't referenced libraries etc) in the samples can i get them?

New to Directx Hello, I am very new to Directx develpment. Can any one sugest a good very beginners place to start. I have downloaded Directx 9 (summer) SDK. I have looked at the samples and am very excited about creating apps with directx, but need to learn the very ba

Directx - I need your help! I have downloaded star trek command III for my son. It said error, needs 8.1 , couldn't find that but downloaded a 9.0 version ( don't know where to go to find out which one) and it still repeated same error. I did find an 8.1 and downloaded and it repeat
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group