Tridex's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DXGI_USAGE_BACK_BUFFER <-> DXGI_USAGE_RENDER_TARGET_OUTPUT
Currently I specify in D3D10CreateDeviceAndSwapChain() in the buffer usage the DXGI_USAGE_RENDER_TARGET_OUTPUT flag. If I specify the DXGI_USAGE_BACK_BUFFER flag I get an error message. What is the difference between those two flags Isn't a back buffer not a render target ... I can't think of anything that makes a back buffer so special to give it its own flag :-) Enlighten me please, - Wolfgang I believe the expectation is that back buffers can be scanned out. You can bind almost anything as RT output from the pipeline in D3D10, but there is a limited set of formats that are required for scanout: R8G8B8A8_UNORM R8G8B8A8_UNORM_SRGB R10G10B10A2_UNORM R16G16B16A16_FLOAT -Sam ...Show All
Visual Studio Express Editions check language
Hey there!!. is there any way that I can check the languaje in a string.... for example:.. I have this string: "The dog is running on the green grass" and I need to make a function that checks if the string language is english or not.... now my questions is, can I use aome kind of dictionary or i have to use a database for checking ... please help!!. I don't want to write a lot of code... jeje.... an information page could help too, if someone knows!!. thanks for everything!!!. Well yeah that would be great, I have been working in an Access Database for creating a dictionary but I'm to long to finish it, so I would like to have some database finished already, so if you ...Show All
SQL Server Login Failure
I have the default instance of sql server (2005 express) installed on my machine. I can log on with no problems using the windows authentication but I had to create a new login account with a username and password. I have added the new user using the Management Studio under the Security>Logins folder. I have assigned this new user has a server role of sysadmin and I have mapped the user as the db_owner of each current database on the server (default system db's). When I try to connect to this server (keeping in mind it works fine with the windows account) using sql server Authentication and the new username and password, I get an error that says "Login failed for user 'WblsUser'. The user is not associated with a trusted SQL Ser ...Show All
Visual Studio How to download VSTA SDK?
Hello, So far, I was not able to locate any information about where to get the released bits of the VSTA SDK. I have already scanned through these pages: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=908415&SiteID=1 http://msdn.microsoft.com/vstudio/extend/vsta/ http://affiliate.vsipmembers.com/affiliate/downloadfiles.aspx Thank you, Adrian Adrian: The VSTA RTM bits can be found in the VS SDK 3.0 (August 2006 CTP). KD Hallman, the Microsoft General Manager of the Developer Division, posted the following on November 9th: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=908415&SiteID=1 For further information related to getting the VSTA RTM bits check out the following: http ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cylinder between two vectors
I have tried rotate this thing on every axis and I still can't get it right. what I am trying to do is draw the single bond between two atoms. Does anyone have an example of the math and steps to do this. I have two atoms in my world and I have the cylinder(bond) in between. I just can't get it to rotate 90 degrees into place.If the cylinder is laying on its Z axis that mean my Z axis is pointing straight up. What am I do wrong I almost got this thing licked.... I am calculating the x, y angle for my rotation. What is the correct order to rotate these so they "connect" correctly It has something to do with the value of the angles. Can you explain how to do this or point me in a direction ;-) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawableGameComponent - Need to create Texture on fly!
I have created and drawable component but need to recreate a texture (2d sprite) on the fly from a bitmap using Texture2D.FromFile. To do this i need to access the Graphics Device. The graphics device (this.GraphicsDevice) exposed from the base class (DrawableGameComponent.GraphicsDevice) returns a null reference in both the Update and Draw (override) methods. Help Did you add your DrawableComponent to your game's component list Personally, I just make a public property in my game class (public GraphicsDevice GraphicsDevice{get{return graphics.GraphicsDevice;}}), which all my components have references to. Then, I just use game.GraphicsDevice to access the device. ...Show All
.NET Development WMI Problem
I've tried these two methods of accessing Win32_Account from WMI, from two separate PCs, each trying to access both itself and the other PC. In all cases the For Each loop does not execute as if the Instances collection is empty. Any attempt to inspect the Instances collection with a debugger hangs. I can run similar code in VB6 using objects and it works perfectly and lists accounts on each machine. Is this a bug in System.Management or am I doing it wrong Dim wmi As New System.Management.ManagementScope( "\\" & "somepc" & "\root\cimv2" ) Dim sClass As String = "Win32_Account" Dim opt As New System.Management.ObjectGetOptions( Nothing , New System.Ti ...Show All
Visual Basic Access database + BLOB?
Hopefully someone can help me with a few questions: 1) Can you manipulate Access fields to manually (using the Access interface) add images translated into binary (have a text field instead of a OLE Object field) Or does this have to be done through a memorystream/streamwriter in a seperate program 2) I don't like using BLOB to read binary text streams from a database because it causes crashes when I scroll through the entries too fast or how it requires you to read the binary from the database to a physical file then read the file using system.drawing.image.fromfile(). Can I use image.fromstream() to do the same thing without having to write to the harddrive (I would like a short example please) Maybe memorystream 3)Can you strip the OL ...Show All
Visual Studio Team System Don't see treediff as an option
I don't see treediff as an option when I type TFPT at the command line. This is what I get: C:\Program Files\Microsoft Visual Studio 8\VC>tfpt TFPT - Team Foundation PowerToys Type tfpt help <command name> for full description Commands: tfpt annotate Display line-by-line change information for a file tfpt getcs Get only the changes in a particular changeset tfpt history Show the history of an item tfpt online Pend adds, edits, deletes to writable files tfpt review Review (diff/view) workspace changes tfpt rollback Pend changes to roll back a changeset tfpt unshelve Unshelve into workspace with pending changes tfpt uu Undo changes to unchanged files in the workspace And i ...Show All
Visual Studio Team System I can't find the Clean Build policy in the Checkin Policy
Hi I'm using MSF Agile and I can't fins the Cleab Build policy to set in the checking Thanks in advance Javier The clean build policy functionality was rolled into the code analysis policy some time after Beta 2. so if you enable that one, you should get what you're looking for. For quick reference, here's a walkthrough for enabling policies in team projects: http://msdn2.microsoft.com/en-us/library/ms242920.aspx ...Show All
Visual C++ Problem with C++ exercise
The exercise says: ( Employee Class ) Create a class called Employee that includes three pieces of information as data members--a first name (type string), a last name (type string) and a monthly salary (type int). Your class should have a constructor that initializes the three data members. Provide a set and a get function for each data member. If the monthly salary is not positive, set it to 0. Write a test program that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary . Then give each Employee a 10 percent raise and display each Employee's yearly salary again. I need to know if I am heading in the right direction so here is what I have so far: // ex3.14.cpp : ...Show All
Visual Basic Accent Characters
Here is the problem. I am accessing data, usually using streamreader, reading a line at a time. The data is in CSV format, so I parse it with the .split. However, a lot of the text contained in the files have the funky characters, such as: 6,"Jose","Grandon","",28, However, when I pull that in, I get Jos Grandn. Which is NOT what I want. Is there any quick and easy way to allow the text to be pulled in correctly Thanks, Larry The problem is that you actually need to know the encoding in order to reliably read the text. By default, the stream reader will assume that the text is UTF-8 encoded. Maybe you could try using the default encoding and pass it in to ...Show All
Visual Studio Need .Net framework 1.1 for programs, Have 2.0 loaded.
I have .Net framework 2.0 loaded on XP Pro Sp2. I need files for 1.1 to run several programs. Can not unload 2.0 enough to load 1.1 then 2.0. Any ideas ...Show All
Visual Studio "unable to attach to the process" - VS 2003 VB.NET dll and VB6 exe
I'm trying to debug a VB.NET dll that is used by a VB6 exe but every time I try to attach to the VB6 exe process i get a "unable to attach to the process" mesage from VS 2003. I start my VB6 exe project in debug and step to a break point where I have received a calculated value from the VB.NET dll. I then open my VB.NET dll project and try to attach to the VB6 exe process in CLR mode, at which point I get the message mentioned above. I've managed to do this in the past but I run into the same problem on two different systems. I've read threads where issues with netfx 1.1 and 2.0 seem to be the culprit but the work arounds mentioned there (forcing use of netfx 1.1 in app config etc....) aren't relevant to me as my exe is a V ...Show All
Visual Basic Centering a form.
I am using vb.net 2005, winforms. I want to know how can I center a form, with relation to the screen. Thanks FormStartPosition.CenterScreen doesnt work. Is there a way to do this like "Screen.height / 2 " type formula I can get the screen.height in vs2005 ...Show All
