jaomello's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Identification of unreleased resources
Is there an easy way of identificing d3d resources which has not been released properly I have an abundance of resources an often I will have to back track in my code manually to find the spot which might be cause to crash, ex during during device reset. But it would be much easier if there was a possibility to see which resources where created on the hardware and which was not released properly Any advice Shade, Have you tried using PIX This can list all the objects in a sample run of your game as well as calls per frame. Thanks. Cale ...Show All
Visual Studio Team System TF14087: Cannot undelete "file" because not all of the deletion is being undeleted
We're having a problem with the source control in TFS. Here's our scenario: Created branch "Rel1.2" from "Rel1.1-maint" Deleted branch "Rel1.2" Created new branch named "Rel1-2" from "Rel1.1-maint" Renamed branch "Rel1-2" to "Rel1.2" Now we get this error message when we merge from Rel1.1 to Rel1.2: TF14087: Cannot undelete '$/Foo/Rel1.2/Rel1-2/file.sql' because not all of the deletion is being undeleted Why does it think that the directory structure has a "Rel1-2" in it Did the rename process cause problems with the branch It has been fixed for Orcas. There's no hotfix I'm aware of. You could call Support and request one, but the workaround i ...Show All
Windows Forms Datagridview image column
Hi all, I have been trying to get this code to work to no avail The code below I believe should put an image into a datagridview image column , but I could be wrong.. I tried to use byteArrayToImage(e.value) but all it says is systems.drawing.bitmap - it's not giving bytes, it's giving a string. What do you reckon I'm missing to return the byte array Private Sub dgvUsers_CellFormatting( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles dgvUsers.CellFormatting Dim _cell As DataGridViewCell = New DataGridViewImageCell If e.ColumnIndex = 1 Then dgvUsers.Columns(e.ColumnIndex).ValueType = GetType (System.Drawing.Bitmap) _cell.ValueType = GetTy ...Show All
Visual Studio 2008 (Pre-release) VirtualizingStackPanel and TreeView
I'm a bit puzzled over the behavior of TreeView. I have overridden the ItemsPanel property of the TreeView control with a VirtualizingStackPanel with IsVirtualizing set to true, and also have overriden it for the TreeViewItems with a Style bound to TargetType={x:Type TreeViewItem} and Setter replacing the StackPanel default for ItemsPanel with a VirtualizingStackPanel. Yet it's still not virtualizing. Any ideas on why this is happening Here's the code if it helps <Page.Resources> <Style x:Key="highlight"> <Setter Property="Control.Foreground" Value="Blue"/> <Style.Triggers> <Trigger Property="Control.IsMouseOver" Value ...Show All
Visual C# Add Reference... won't work: Excel 11.0 Object Lib
Hello, I have installed Excel 2003, the Office 2003 PIA's, on a Windows 2003 machine. In VS 2005, I try to add a COM reference to Microsoft Excel 11.0 Object Library. The reference appears in web.config, but not in the Solution Explorer. I can't use it in my code this way, it won't compile. This behaviour seems to appear in Web site and Web service projects. In a regular application, it works fine. Anyone have an idea Kind regards, Koen Hi, In aspx.cs, add this "using" statement, [If you have added Microsoft Excel 11.0 Object Library then this will be available] using Microsoft.Office.Interop.Excel; and then in code, just write Application excel = new Application (); (This is Mi ...Show All
Windows Forms FillByParameter - using parameters with the Select Statement
Hi, I want to open a new form (form2) and have it load only the data for an item chosen from a datagridview in form1. In the constructor, I'm passing the ID of the record chosen to the constructor of the form2 in the field mID. Form2's data is in a master-detail relationship. So I have created a dataset, dsSermons21, that contains the 4 other child tables. In dsSermons21, I have created a new parameterized Select query call FillBySermonID. Now, If I understand this correctly, I use the following to fill the Sermons table of the dataset: DsSermons21.Sermons.FindBySermonID(mID) I do not know where it got FindBySermonID from, then name of the new query is FillBySermonID, but that is what came up in intellisense. If this is ...Show All
.NET Development Trouble with SoapExtension not firing.
I have a Class Library (dll) that calls a web service and includes a form where a I am trying to implement a progress bar using the code in "Adding a Progress Bar to Your Web Service Client Application." The web service executes fine, but I can't get the SoapExtension to fire. The code for the soap extension is similar to the sample code: ' ' Progress bar - C# to VB.NET hack ' Class ProgressClient Inherits webapp.MyWebServiceWSE Public Progress As ProgressBar Public Transfersize As Integer Dim MyForm As ServiceForm Public ProgressDelegate As ServiceForm.UpdateDelegate = AddressOf MyForm.ProgressBarUpdate End Class ' ' SOAP Extension - C# to VB.NET hack ' ...Show All
Windows Forms Calculating Total
hi everybody, i have a datagrid and it has many columns out of which amount is one column, and i have a textbox outside the grid, if i fill the amount column automatically textbox should be filled with the total amount, i did the coding part for calculating total, but the issue is i want the textbox to be filled after i leave the amount column in the datagrid, i have tried currentcell changed event, navigate event, tab index changed event, leave event, tab stop changed event, almost the events i tried out, but the value is not catching on the textbox, but the value catches in the textbox after i leave the whole row and then come to next row, i want the value to be catched after i leave the amount column ....... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render Target returns NaN on 360, not on PC
When I deployed to the 360, I found that Vector4 textures are not supported as a render target, and that only one render target is supported at a time. I've refactored my code such that it uses four R32Fs and one render target, and this runs fine on my PC. But when deploying to the 360 I ran into another problem; GetData after GetTexture is returning completely wrong information. The thing is... even this simplified pixel shader returns NaN on 360! float4 Test() : COLOR0 {return (float4).25;} But it returns .25 for on the PC. How I'm calling it: this .GraphicsDevice.SetRenderTarget(0, null ); this .GraphicsDevice.SetRenderTarget(0, rt[Offset + 0]); currentEffect.Beg ...Show All
Visual Basic My.Settings overwritten during upgrade installations
Hello, Is there a way to keep the settings stored in My.Settings from being "reset" during an upgrade installation Every time I put out a new build of any application using My.Settings the settings in My.Settings are reset to whatever they are in the visual studio designer. For anyone else dealing with this issue, here's how to resolve it: Add a "ShouldUpgrade" boolean setting to your Settings.Settings file in the designer and set its value to true. In your main Load event for your startup object, add: if (My.Settings.ShouldUpgrade) then My.Settings.Upgrade() My.Settings.ShouldUpgrade = false End If My.Settings.Upgrade looks for the most previous user. ...Show All
Visual Basic What's the deal with Generics
Hi, I have the following Function Public Function EnterOrder( ByVal custCollection As Generic.List( Of CustomerDTO), ByVal OrderDTO As OrderDTO) As Boolean Dim customerBOCollection As New Generic.List( Of CustomerBO)(custCollection) ...............Do stuff End Function I get an error when I run the program basically saying unable to convert CustomerDTO to CustomerBO. What other way around this do I have CustomerDTO is my serialized object and CustomerBO (name speaks for itself) is the one with the rules etc. With one customer it works like this Dim customerBO as new CustomerBO(CustomerDTO) I now need to pass a collection of customers and I was turning to Generics for assistance. Any ideas ...Show All
Visual Studio How to include the license file as resource file through MSBuild?
I have a '.license' file with me and I need to include that while building the project. Previously I used to do the following <cs.build projectFile='Service.csproj' compilerOptions='/res:"Service.exe.licenses"'> I have tried to include it as a project property as follows: < MSBuild Targets = " Rebuild " Projects=" Service.csproj; " Properties = " Configuration=Release;Resources=Service.exe.licenses; StopOnFirstFailure = " true " /> But this doesn't seem to work. BTW I am using the same .license file as I was using for ver 1.1. You would pass the .licx file in EmbeddedRssource item. .licences file would be ignored. So ...Show All
SQL Server Merging a database into another
Hi everyone. I am working on an application that will use SQL Server Express locally installed on the client machines. We want to be able to deploy MDF files and merge those files into the clients existing database. For example, their databases will have a Produce table which will contain prices and varieties of products we give to the clients to sell. The clients will also have some records of their own in this table for their own produce that they sell, and we will not know about those records at all. If we update our prices and add more produce, we want to simply merge in our records (update existing and insert non-existing) without touching theirs. (scenario is fake BTW, so don't take too literally) My question is does SQL Server Expr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mesh scale and move problem
hi all, How to scale and move my mesh in DirextX Best Regard, D3DX utility library supplies D3DXMatrixTranslation & D3DXMatrixScaling the function Use D3DXMATRIX to create your translation & scale matrix as following: D3DXMATRIX matWorld; D3DXMatrixTranslation(&matWorld ,xPos,yPos,zPos); d3d_Device->SetTransform(D3DTS_WORLD, &matWorld); ////Render your mesh Same goes for scaling use: D3DXMatrixScaling(&matScale, sx,sy,sz); ...Show All
Visual Basic Cloning Listviews
I'm wondering how to accomplish a complete clone of Listview entries, with all subitems and icon settings. Is this possible without explicitly going through all variables E.G. Listview2.entry(x) = Listview1.entry(y) The best you will do is to iterate through the list and clone the items: For Each lvi As ListViewItem In Me . ListView1 . Items Me . ListView2 . Items . Add ( lvi . Clone ) Next In order to get the images to show up properly you must set the listview2 imagelist to the same imagelist as listview1 ...Show All
