Mike D12995's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rotating sprites center
I'm new to directx programming and i'm writing a simple program to help me learn. I'm using sprites and i'm trying to rotate the texture based on its current heading (the sprite is moving around). Now when i try to rotate it using a matrix, it seems the matrix is too big. My texture is only 32x32, and when i do the transformation, leaving the rotation center as NULL should set it to be the top left, according to what i've read. However, after experimenting because it didnt work, I found that if i set the center to be close to the window's center, or some larger center, it seems to fix it a bit. So it seems to me that the matrix is too big for my texture. I don't know if there is any way to set the size of it If you would like code I can ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT Cue Playback Latency vs. DirectSound
I'm currently working on a piece of sound software that performs realtime quantizing based on eventual in-game actions. Since I need to play sounds on beat, it's important that the time from the Play() call is made on a buffer/cue to the time it actually starts coming out the speakers is very low. XNA and XACT look like they're a great framework for making games. For the application I'm developing though, minimal sound playback latency is critical. Has anyone at Microsoft measured any additional overhead caused by using XACT over DirectSound (in either MDX, or C++ DX9) XACT on Windows XP has some additional latency on top of DirectSound. XACT has its own software mixer, and (on XP) it takes that outpu ...Show All
.NET Development file opened exclusively error, re-use datatable when new text files are created
I am writing an application that watches a folder for new comma-delimited ascii files. Whenever one is created, I read it into a datatable, compute some statistics, write them to a log file and get ready for the next file. My code works great for the first few files, but starts throwing unhandled "file opened exclusively by another user" oledbexception errors after 4-5 files. The error always occurs at the adaptertext.fill(dtModel) line. Any help is much appreciated! My code is as follows: '**** Private Sub newasciifile(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs) Dim selectfilename As New System.IO.FileInfo(e.FullPath) Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Sour ...Show All
Windows Forms Unistall icon on the program menu!
I wolud like to have an uninstall.exe generated with my setup project. My plan is to make a shortcut to it from the program menu. Or exactly, a shortcut to a .vbs-file on tne program menu. The .vbs-file is shuting down a service then it deleting a database the it deleting a odbc-connection then it will start the uninstall.exe. But I dont have any unistall.exe, how to create it and place it with the other files in the installation Yes! I only did this and added a shortcut to it from the start menu. msiexec /x {EB678418-F144-47E6-B2DB-7FEFA528B421} EB678418-F144-47E6-B2DB-7FEFA528B421 this is the product code of the installed package. ...Show All
.NET Development Creating processes in a suspended state?
I need to use Win32 job objects to corral a bunch of child processes. First problem is that there is no concept of jobs in the BCL. Strike 1. Why not Ok - not that big a deal - the stuff I want to do isn't that hard to pinvoke a bunch on - mostly just IntPtr handles anyway. Second problem is that there is no way using the Process class to create a child process in a suspended state so that the handle is valid, but it isn't running yet. Strike 2. What a mess - the existing code I have to modify heavily uses the Process class. and that little addition to the ProcessStartInfo of a bool CreateSuspended would have been so handy. Argggh. The obvious solution is to P/Invoke CreateProcess() so ...Show All
SQL Server "Cannot apply value null to property Login: Value cannot be null..".
I'm trying to use a transfer "SQL Server Objects Task" between a 2005 SQL Server Database and a 2000 SQL Sever Database. I have the login info specified in the connection I'm using. According to the Debug Output the process truncates the destination tables but then stops with the: "Cannot apply value null to property Login: Value cannot be null..". Any help anybody NF Unfortunately I’m using SSIS between a SQL 2000 (local) & SQL 2005 (remote). If I install SQL 2005 SP1 on my machine will that cure this problem – meaning, will the SSIS tools work properly -Cheers ...Show All
Software Development for Windows Vista Web Configuration File To Host Workflow
i have example about how configure web.config file to host workflow. This article shows how to : http://msdn.microsoft.com/msdnmag/issues/06/04/CuttingEdge/default.aspx HTH Kavita ...Show All
Smart Device Development CABWIZ/Makecab problems
Hi all, I'm having trouble building a CAB file for a CF 2 project. Done the usual steps, Added a Smart Device Deployment project to my solution, set its propertys, go to build and Always get back a message saying ; Error: CAB file "C:\Documents and Settings\DAVE\My Documents\Visual Studio 2005 \Projects\Project1\DeploymentCAB\Release\Project1. CAB " could not be created It's really annoying, I dont want to have to go back to using 2003 to build projects as I really like the new features in CF 2, but if I cant deploy them correctly, then theres no point. Any thoughts/comments appreciated. Dave I've seen reports of that before: - On file system with short name generation disabled. - O ...Show All
Visual Studio Team System Unit tests not run when building ASP.NET site
Hey. I just created a team build for an ASP.NET site with unit tests. However, the tests are not run and I'm not sure where to begin looking. Could anyone help me out The BuildLog.txt states: Target CoreTest: Creating directory "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\..\Sources\..\TestResults". __________________________________________________ Project "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\TFSBuild.proj" is building "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\TFSBuild.proj" (RunTestWithConfiguration target(s)): Target RunTestWithConfiguration: TestToolsTask MetadataFile="C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\..\Sources\Ebutik\Ebutik.vsmdi" TestLists=& ...Show All
Smart Device Development Compose_View and Item Menu
Hi, i'm trying to add my custom item menu in compose form for messaging application. I want add numbers in 'To' field. When The command is invoked i get the pRef but i don't understand how can refer to 'To' field. I tried to get pRref as IMessage* but all methods fail, i tried to get ENTRYID from pRef but when i try to call IMAPISession->OpenEntry() returns E_INVALIDARG and GetLastError returns ERROR_INVALID_HANDLE So: how can use ITI_MessageItemRef Any clue I have the same problem about Compose_View menu. I have to wait for a while before select the customized menu item to make my code work properly. (on select the menu item, I get EntryID from sited IDataObject, and I& ...Show All
Visual Studio Express Editions Reports/graphs etc in VB express?
Hello All, Is it possible to display graphs based on data is the functionality in vb express or do you have to tap into the excel COM objects Any info would be great, thanks! Nevron has a nice charting tool for .NET. Check her out: www.nevron.com ...Show All
Smart Device Development Windows hooks on WM 5.0 for Smartphone
I am aware that SetWindowsHookEx is not meant to be used for smartphones on WM 5.0, though I notice the function is available in coredll.dll in both Smartphones and PocketPCs. I also notice that limited usage can be achieved on PocketPCs (yet, it's all undocumented), while I had no success while playing with it on a smartphone. What do we do in that case I want my application to be able to receive press events (incl. the events coming from 0-9 keys) while homescreen is in foreground, and to be able to execute a code before any other application (for instance a dialer) handles the events. What do we do for it when SetWindowsHookEx() is not available Btw, is SetWindowsHookEx() now considered to be a *privileged API*, or it is not availabl ...Show All
SQL Server DML error logging
Oracle 10g2 offers DML error logging, which enables to load data with traditional SQL without having a complete roll-back in case one record is refused. http://orafaq.com/node/76 This is almost similar to loading capabilities of ETL-tools (at least in the error-handling department) Does anyone have a clue whether Microsoft is going to add such functionality to SQL Server 2005 I think you have that in SSIS, (almost 99% sure, so ask over there in their forum too http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=80&SiteID=1 ) but depending on the situation, you can do this easily in an instead of trigger, if you know the criteria to check for. Just something like the following in the ...Show All
.NET Development Problem with Sendmail Activity
Hello,In my application I use the send mail Activity but it doesn'y work.. (I am using the IIS SMTP server) I want to know if there is a specific configuration in this activity to success this scenario, thanks. no for the workflow , it's working but I am asking how to verify the result, creating a new local mail account(outlook, IIS) , or sending an mail for an already existing mail ...Show All
Smart Device Development prob with syncronizing socket send and recieve. Plzzzzzzzzzz help!
Hi, My app uses a socket connection to send and receive from a remote server. I've very serious prob with the socket, i.e. synchronizing send and receive on that. The app actually creates seperate threads for sending and recieving. The receive thread, which we call as cmsThread, keeps polling the socket, by calling receive on the socket periodically. From the time i started this app, i had probs with synchronizing the send and recieve. Previously i used lock(this) for both send and recieve, in the socket class that i created. This made my app look hanging when more msgs were sent. I realized that this was because of blocking the thread in send and receive. So i removed the lock statements altogether. But now i've a ne ...Show All
