tfeaster's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Creating a new texture as a rotation of an existing texture
thank you very much but new problem come: How to create a new Texture from an existent Texture I have a bitmap file, first I created a Texture from a bitmap file by using function D3DXCreateTextureFromFile(). Now I want to create an another Texture from the existent Texture, and the new Texture's content is the existent one's bitmap but be rotated 45 degrees. For Example: the existent Textures have a horizontal line "-" on it's center , fr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput and Mouse Acceleration
I am using the Managed Direct Input library to gather mouse input for a graphical research app. However, my testing shows that the application is affected by mouse acceleration despite using the Direct Input API. My understanding was that only driver level acceleration could affect the Direct Input data, but if I test some of the samples that ship with the DirectX SDK I don't see the same problem. T ...Show All
SQL Server Problem adding Annotations to KPIs
I'm trying to add an annotation to a Kpi object in AMO. I'm starting with just the simplest thing: kpi.Annotations.Add("AnnoName", "AnnoValue"); The KPI validates, and cube.Update doesn't report any errors. But when I try to read back the KPI later, the annotations collection is empty. I profiled the XML/A sent as part of the Update, and the KPI definition included the annotation there. But the annotation never seems to be sa ...Show All
Windows Forms showing item text in checkedlistbox
Dear all, I have a checkedlistbox which "multicolumn" property set to true. When the bind dataitem is having a lengthy content, it will be cutoff. For example: the data which is having "Perth-Western Australia" is being cut ...Show All
.NET Development Remoting Configuration in VS2005
Hi there, I'm trying to configure the remoting services and channels of an application using the app.config file in VS2005. It keeps giving me an error telling me that it... Could not find schema information for the element 'application' as well an error for every other child element under the <system.runtime.remoting> element. Here is the start of the configuration.... < configuration > <!-- Configiration of t ...Show All
Visual Studio 2008 (Pre-release) Modal "something" in browser app
(I know this is a bit off topic…) I want to make my own modal dialog using a CustomControl or Popup with buttons. But how can I stop program execution and wait for a button to be pressed I mean something like this: public class MyOwnDialog: CustomControl { public static DialogResult OpenDialog(string question) { //Add control to window, and hook op buttons. //But how do I wait for button clicks } } Usage: private void OnDeleteCu ...Show All
Visual C++ parse the login name
I have login name like domain \username, I tried to use strtok to parse it. However, strtok can not recognize "\". For example, char ustring[] = "domain\username"; sLogin = strtok(ustring, "\\" ); sDomain = sLogin; while( sLogin != NULL ) { sUser = sLogin; sLogin = strtok( NULL, "\\" ); } Output both sDomain and sUser are domainusername However, if I change ustring to the following by adding one more ...Show All
SQL Server Dynamic loading of a file
I've been told by Kirk that it is possible to load a file whose metadata is unknown at design-time by using bulk insert along with a file (not a flat file) connection. He didn't elaborate though. Can anyone explain -Jamie Jamie, Bulk loading to several different tables with known metadata is simple. I don't know how one could load to a table with completely unknown metadata. The file connection works fine with the bulk insert task. If I r ...Show All
Windows Forms datagrid column width
I am trying to set the column of the windows datagrid so that all the text can be seen it the cell. Could you please see why this function does not get the correct width lengh 'set the width of the Description column to it's text length... Private Function AutoSizeCol(col As Integer) As Integer Dim width As Single = 0 Dim numRows As Integer = CType(notesDataGrid.DataSource, DataTable).Rows.Count &nb ...Show All
Visual Studio Express Editions "Failed to add validation event handler because the following error..."
Failed to add validation event handler because the following error: El indice no es valido. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX) While double clicking on column. Editor shows this: namespace HolaMundo1 { partial class Database1DataSet { partial class CLIENTESDataTable { } } } Windows XP sp2 in spanish. Visual C# Express 2005 SQL Server Express 2005 Some idea what can I do It seems a bad DLL / OCX / assembly ...Show All
Software Development for Windows Vista Workflow Monitor Sample
I have downloaded the lasted WinFX sdk and Visual Studio workflow extensions but cannot find the Workflow Monitor Application. Is this application a separate download I am not seeing this either. Under C:\Program Files\Microsoft SDKs\WinFX\ there is no Application Samples directory. Regards, Chris ...Show All
Visual C# Unloading an Assembly
Hello, I read in one of the Blogs that an Assembly cannot be unloaded. It has to be loaded into a AppDomain and then unloaded. I have tried that. Take a look at the following code. AppDomain newDomain = AppDomain.CreateDomain("NewDomain"); Assembly myAssembly = newDomain.Load(AssemblyName.GetAssemblyName(assemblyPath); After doing Reflection on myAssembly, I used ...Show All
Visual Basic Visual Basic 2003 Code in Framework 2.0
I need to upgrade my PCs from the current Framework 1.1 to the new Framework 2.0. Will Visual Basic 2003 code currently running in the Framework 1.1 run in the Framework 2.0 without any recompiling or upgrading Thanks for your help, Marc Let me ask this a different way just so I understand. If I install the Framework 2.0 on a new PC with no Framework, will Visual Basic 2003 code that was compiled with ...Show All
Visual Studio Express Editions Variables values
How can i see the variable values while program is running cool, i've solved the error problem and in this project the breakpoints worked well and i can use the watch window. i just dont understand why it dont work in the other project thank you cgraus! ...Show All
Visual Studio Team System Test Case ID
I'm playing with some code in the TIP, specifically in the MergeResults() method, but I'm confused by the behavior of the TestElement.Id. I'm monitoring this Id as it comes through MergeResults() by calling resultFromWire.Test.Id, but the value changes everytime I run the test. I was expecting that GUID to be the same everytime for the same test. This seems more like a a TestRun Id in practice than a TestElement.Id. I'm running the same test ...Show All
