Reva's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Who is using XACT?
If you are using or considering XACT for your product, could you let us know Recently we heard from a developer who was about ready to ship an XACT title, and we had no idea. We try to provide as much direct support to early adopters as we can, help them with any problems they bump into, etc; we can also adjust and prioritize our features based on real-world usage. So, if you're using XACT "secretly", please come out the woodwork and let us know, and maybe we can help. Thanks! Dugan Porter - Game Audio Team - Microsoft This posting is provided "as is" with no warranties, and confers no rights We would use it, if some compression that sounded better, and compressed more, than MS-ADPCM was available. WMA will do in a pinch; ...Show All
Windows Forms Bitmap Images
Hi there! I am making images out of data arrays, and then displaying them in a form inside a picture box. The thing is, the display seems to be interpolating between pixel values in order to smooth out the image, to make it look better I guess. But I actually want a purely pixelated image, so that each pixel looks like a square block of a single colour (gray scale actually). I havent been able to find any setting or methods in the bitmap class to change the interpolation method, so if anyone can help me out that'd be great! Thanks a lot Joe Wooo!!! Got it. Andrew got it in his second post above. Its the Graphics.InterpolationMode that you want. Set it to NearestNeighbour. It means you have to use a ...Show All
SQL Server Server Application Unavailable
Hi, Report is generated output 2000 pages. I was not able to export report in excel format. I am getting following error message. Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. Please let me know the what could be the reason. How to resolve this problem Thanks ...Show All
Visual Studio 2008 (Pre-release) Get notification of CD or USB stick insert in WPF application
Hi everybody, is there a way to get a notification in a WPF application when a new CD / DVD was inserted or a USB-stick was attached In WinForms I would intercept the WM_DEVICECHANGE event but I would like to know if there is a more elegant way without switching to windows forms in WPF. Thanks, Tobias I tried to use OldDino's code, but there is no definiton of " EventTypes" . I found somewhere this definition: public enum EventTypes { DRIVE_CONNECTED = 0x02, DRIVE_DISCONNECTED = 0x03 } and it's works, but I still don't know what do you mean by "StorageMediaType", could you give some code of this enum The second, and more important problem is how to ...Show All
.NET Development Help vb.net db problems!
hi im a vb.net newbie. im trying to connect a access database to vb.net using jet. i would like the database to fill in the interface in the form i created but when i run it, it shows this error message: An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll. When i tried using TRY..CATCH it showed this message: Record(s) cannot be read; no read permission on 'tblTest' tblTest is the table in my db. This is the code: Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim sql As String Dim mytbl As DataTable con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\DB\test.mdb" ...Show All
SQL Server SqlDataSource not updating on editing GridView
Hi, I'm new in ASP 2.0. I need to incorporate edit and delete capability in GridView. Using the wizard, i've generated this code. When I delete a row, it gets deleted but update does not work. I've tried several ways. I got no error or exception. But row is not updated. I've checked database, and I think the update query is not executing at all. Please let me know, what I'm doing wrong Here is the source code for reference. I'm using Visual Studio 2005 with SQL server 2005 Express Edition. Regards ========================================================== <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="QuoteItemID" DataSourceID="Sql ...Show All
Windows Forms Host Controls in Windows Forms DataGridView Cells
Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't accessible. http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_fxmclictl/html/e79a9d4e-64ec-41f5-93ec-f5492633cbb2.asp 10X in advance, Nir Oren The Rows collection has two Add method overloads that let you populate the values. You can either create a DataGridViewRow, populate it however you want, and pass it to the ...Show All
Software Development for Windows Vista change integrity level
Hi, All I want to start a process with medium integrity level from a low integrity level process. From http://msdn.microsoft.com/library/default.asp url=/library/en-us/ietechcol/dnwebgen/protectedmode.asp , I found an example which starts a lower integrity level process instead and use the following hard coded Low integrity SID of "S-1-16-4096". What's the value for other integrity levels' SID(medium|high|system) I searched June CTP's SDK and document, but didn't find anything. One more thing is that also following an example from above link, I try to lower the integrity level of a named pipe in the same process which created it, but I got error code 5(access denied). Anyone knows what goes wrong code fol ...Show All
Visual Studio Team System Help needed to resolve a Windows Group/User when trying to add them in Team Foundation Server
Hello All, When I try to add a Group or User from the domain, I get an error message that Team Foundation Server can't resolve the group or user name. The Virtual Server where the Team Foundation server resides, is on the domain so I am not sure where I need to make a change. Thanks in advance :) Bob Hanson Adam is correct that the required permission is read. The App Tier Service user needs to be able to read the active directory user/group object for every user and group referenced by TFS. The place where this often causes problems in when a one way trust is involved. If the Service user is not able to read AD objects in one of the domains, you will not be able to add users and groups from that domain. --Matt Hoover ...Show All
SQL Server Can't copy a database
I want to make a working copy of a database to a new name on the same server. I use the wizard giving the same name for source and destination, but giving the db copy a new name. I get an error that says "One or m ore arguments are invalid." But no hint as to what is wrong. Is it that I can't copy on the same machine You want to do a 'backup database' and 'restore database' to create a new database based on the old database. Here is a script that you can use. use master go declare @db1 sysname,@db2 sysname, @name1 sysname, @name2 sysname, @file1 sysname,@file2 sysname, @sql nvarchar(1000) set @db1='Northwind' set @db2='NewBD' set @sql='select @name1=name,@file1=filename from '+@db1+'.. ...Show All
SQL Server Realtime record count for table...
Here's a little sql 2005 script I wrote: 1. Start by running this script.... declare @x int select @x = 1 while ( @x < 75000) begin insert into myTesttable values (@x) Select @x = @x + 1 end 2. While the script is still running, I want to know how many records are in the table. From the same query window as the script, I have run both of the following statements. select count(*) from mytesttable witn (nolock) select count(*) from mytesttable witn (tablock) Instead of getting the answer immediately, they run only after the original script has completed. They seem to be "blocked". How can I get a near realtime count of the number of records in this table while the script populates the table ...Show All
Architecture Windows Application Versus Web Site
I need to develop an application that reads from and writes to a database housed in a SQL Server located in an Intranet. I am using Visual Studio 2005 (VB). I can see that there are two possible routes to the development - as a Windows Application or as a Web Site. I will be most grateful if some body out there could advise me on which option route to take and perhaps why. Regards. Nkenta You didn't say anything about your user interaction needs - If you are only transfer data from one side to the other you can write it as a windows service or even host it in SQL server itself. Arnon ...Show All
Visual C++ "cannot use this type here without a top-level '^'"
When I try to compile this code: // Connect.h : Declaration of the CConnect #pragma once #include "resource.h" // main symbols #using "Interop\Interop.Outlook.9.0.dll" // CConnect class ATL_NO_VTABLE CConnect : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CConnect, &CLSID_Connect>, public IDispatchImpl<AddInDesignerObjects::_IDTExtensibility2, &AddInDesignerObjects::IID__IDTExtensibility2, &AddInDesignerObjects::LIBID_AddInDesignerObjects, 1, 0>, public IDispEventSimpleImpl<1,CConnect,& __uuidof (Outlook::ApplicationEvents)> { public : ... I get this error: Outlook:: ApplicationEvent ...Show All
Visual Studio 2008 (Pre-release) Using Info card in WCP
Hi Iam using June CTP, I tried creating a service in which the client accesses the service using info cards, it is working properly till the point where the Digital Identity applet appear, when i select the Infocard and submit it then i get the following exception message {"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail"} Inner Exception {" An error occurred when processing the security tokens in the message"} need help regarding this Regards Ragu Ragu, there are a number of issues with CardSpace (aka InfoCard) in June CTP. I really urge you to use July CTP (and Rich as ...Show All
Visual Basic Need help: File.Copy throws TargetInvicationException
Hello! I’m trying to set up a FileSystemWatcher, which I want to monitor a map, and as soon as a file is created, copy the file to another directory. Private Sub InitializeComponent() Me .FileSystemWatcher1 = New System.IO.FileSystemWatcher CType ( Me .FileSystemWatcher1, System.ComponentModel.ISupportInitialize).BeginInit() Me .SuspendLayout() Me .FileSystemWatcher1.EnableRaisingEvents = True Me .FileSystemWatcher1.NotifyFilter = System.IO.NotifyFilters. FileName Me .FileSystemWatcher1.Path = "C:\Temp" Me .FileSystemWatcher1.SynchronizingObject = Me ........ End Sub Friend WithEvents FileSystemWatcher1 As System.IO.FileSystemWatcher Private Sub Form1_Load( ByVal sender As Syste ...Show All
