Dwight Kulkarni's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DirectX8 and Vista Compatibility
(split from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1221168 to make a new question) It is interesting that you say that because I am testing a VB6 app that was working fine on XP and below but now fails on Vista when it tries to create a DirectX8 object, specifically Set oDX = new DirectX8 throws Error 429, ActiveX failed to create component. Running in XP SP2 compatibility mode does not work either. I would be really grateful if anyone has any ideas on this. I also tried running the latest DX9 redistributable because I heard that was providing backward compatibility, but to no avail. Thanks. I am awaiting a reply from the DirectX team - their response time ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scanlines in 2D
I'm cerating 2D game and wondering how to implement scanlines effect. For now i'm using simple .png image colored with scalnines patern and transparency - i simply draw this sprite in front of all other of my sprites, but since the texture is big and uses transparency it seems slow and i have large framerate drop when i'm using it. So i'm asking for help - is there may be other ways to create this effect Thanks. Wery nice idea, but i have no expierence in programming my own shaders . Does it is worth effort to learn it to solove this situation Some tips would be nice .. P.S Sorry for my bad english, i hope You get the idea ...Show All
Software Development for Windows Vista Live UDF
Hello There, What is Live UDF Does the optical platform support third party UDF implementations How do we ensure compatibility of Live UDF with OSTA standard Rgds, Ok, let me try to address some of your questions. How do I format as a application Call the command prompt format command. How do I open and close the door Use the IOCTL_STORAGE_EJECT_MEDIA and IOCTL_STORAGE_LOAD_MEDIA. How do I detect media type My answer may not be the best, but I suggest using scsi pass through IOCTL to issue a Get Configuration command to the drive and deduce the current media type from the current profile. See ntddmmc.h in the WDK for definition of MMC structures and the MMC-5 document ...Show All
SQL Server the database isn't working with the setup based deployment of the application
I deployed my application to my newly installed xp pro laptop The prerequisites are installed Now that I want to testdrive my database application I get this error: An attempt to attach an auto-named database file c:/program files........................\MyDB.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share. This is what I read in my app.config file; < connectionStrings > < add name = " MasterDetail.My.MySettings.MyDBConnectionString " connectionString = " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDB.mdf;Integrated Security=True;User Instance=True " providerName = " System.Data.SqlClient " /> < ...Show All
SQL Server SQL Server Active/Active, Possible?
Dear all, I am a newbies in SQL server. One of my client what to using Clustering and SAN Feature to make his SQL server have high avaliabilty. However, since they want to utilize the SQL server, they would like to active/active cluster with network load balancing. However, questions comes: 1. Can I mount a same database in a Active/Active Cluster environment 2. If I can do that, how will the SQL server handle those instance/how can I set it up 3. When there have two users using difference node SQL server to insert data, what will happen Please help. Thanks and Regards Jacky SQL Server's implementation of clustering is not a RAC-like solution. It is not a load balanced/scale out solut ...Show All
Visual Basic Execute Code on Application Exit
I need to find out how to add a confirmation dialog box if the application is going to exit, ie i call application.exit() or the last form is being closed. I need my app to confirm the exit with the user and also perform some maintenance type tasks before it exists as well. is that all i only have to put that in all 50 forms, well thats a whole lot easier than finding out what line or few lines of code it will take to abort the shutdown in the code i already have. Not too mention your method is too redundant, which beyond making the application larger makes it harder to update the shutdown process for future versions. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XInput or DirectInput?
I need to interface a Playstation 2 controller through USB adapter with my application. A group of us are recreating Guitar Hero (kinda) as our final project in our Software Engineering course. I would just use the 360 Version of the guitar but it's not yet released. I was wondering whether I should use XInput or DirectInput. I've read that XInput is best for the 360 Controller, but what about a joystick through USB Hmm, I never thought about that. Although that is true, Managed DirectX has been let go though, so I don't know if the current version of the Managed DirectInput reference is going to still work in later versions of .NET. I assume it will, but there's no telling kinda like DirectDraw. Mic ...Show All
Visual Studio Team System Data Generation Plan unable to delete tables with foreign keys
Hi there. I am using the CTP4 of VS for DB professionals and it is awesome.! One question I have is this. I have a database with some 80+ tables. I am only interested in 2 tables. I created a datageneration plan to populate these 2 tables. The IDE picks up all of the correct foreign relationship/constrains and populate the join tables as well. This works great. However, when I run this data generation a second time, I get errors all over. It complaints that it can't delete rows on tables with foreign keys. It seems that it forgets the join relationships that it just populate... I have pull the schema from a production db and created a brand new one on my test server. So initially there is no data on the tables. Is there an option that I ...Show All
Visual Studio 2008 (Pre-release) data mining 2000
I create a mining model: CREATE MINING MODEL [bh'S] ([Cusid] LONG KEY , [Products] TABLE PREDICT ([Productid] LONG KEY )) USING Microsoft_Decision_Trees INSERT INTO [bh'S] (SKIP, [Products] (SKIP, [Productid])) SHAPE {OPENROWSET(…, 'SELECT DISTINCT "dbo"."customers"."cusid" AS "Cusid" FROM "dbo"."customers" ORDER BY "dbo"."customers"."cusid"')} APPEND ( {OPENROWSET(…, 'SELECT DISTINCT "dbo"."orderdata"."cusid" AS "UI_GENERATED_PARENT_KEY_COLUMN", "dbo"."products"."productid" AS "Productid" FROM "dbo"."order ...Show All
Visual C# Exclude element from foreach index (MenuStripItem) HELP!
Hello! I have a foreach loop. How can I exclude one of the elements from being indexed: I have a foreach loop setting a property for each of the items in a ToolStripMenuItem category, but one of the items is a ToolStripSeperator, and I would like to exclude it so the foreach loop would set the property for all of the items EXCEPT the toolstripseperator. How can I do that Matt Write it something like this foreach (ToolStripItem item in favoritesToolStripMenuItem.DropDownItems) { ToolStripMenuItem menuItem = item as ToolStripMenuItem; if (menuItem != null) { // ... code here ... } } ...Show All
.NET Development Need of a fast timer
Hi, I was wondering if there were a faster timer than the control timer provided in the toolbox. I would like to take some value from a controller card at a rate of around 10-20 KHz. Or I was wondering if it is possible to have an infinite loop ( which stop when I press a buton), with a function which tells to do any events ( move mouse, paint, close...) that may appear Thank you for your answer, Eric hello dears, i need atimertick which repeat the process every 200 microsecond .what should i do i wrote my app with visual c#.net. plz help me very soon. i don't have enough time. ...Show All
Visual C# Calling Event Issues??? Help!
When my form closes I want to fire an event that will do somethings....but i think i may be calling it wrong...Here is my method signiture...and this is the error.... [code languge="C#"] public delegate void frmClosing ( object sender, FormClosingEventArgs e); public frmClosing ClosingVendorDetails; public static void DisplayVendorDetails(System.Windows.Forms. Form ParentForm, BHFreight.Tracking.BusinessObjects. VendorOrderLegDetail _VendorLeg, frmClosing ClosingForm) { BHFreight.Tracking.UI.MainWindows. VendorOrderLegDetailsForm frmVendorLeg = new VendorOrderLegDetailsForm (); frmVendorLeg._VendorDetail = _VendorLeg; frmVendorLeg.LoadVendorObjectToForm(); frmVendorLeg.ShowDi ...Show All
Visual Studio Express Editions Problem with RSS reader project
Hi, I downloaded the beginners videos from http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/#beginners and all was going well, I'm on lesson 15 and have read the additional writing for this project and have done everything shown in the video and I've looked extensively at the snapshot included in the download, my code is identicle and up until now always compiled and executed, after adding the code from this lesson however my application crashes. The problem seems to be here: // Begin the WebRequest to the desired RSS Feed System.Net.WebRequest myRequest = System.Net.WebRequest.Create(rssURL); System.Net.WebResponse myResponse = myRequest.GetResponse(); // Convert the RSS Feed into an XML document ...Show All
.NET Development problem trying to separate title and description from html title tag
I'm trying to pull out the title and description in an html's title tab and this is what I've been able to come up with so far. ( :<( <TitleTag>title)>) ( <Title>.+) ( ( <Separator>[\-.:]+) ( <Description>.+) ) ( :</\k<TitleTag>) My problem is I'm not able to properly identify the double hyphens and other separator's. I've been wracking my brains on this for two night's now and not getting anywhere. I know I don't necessarily need all those named group's but it's helping me to debug this. Any help would be greatly appreciated. Thanks. My input (using Expresso to help me test this out) is this. something might be here <title></title> <title></title> <titl ...Show All
Visual Studio Express Editions WPF Media Player, Video Control or Active Movie?
In the following code, I select a dvr-ms File and then play it using ActiveMovie (RunAM), VideoContol (RunVC) or WPF MediaPlayer. With ActiveMovie I get both video and audio, with VideoControl I get video and no sound and with WPF MediaPlayer I get sound and no Video. What am I doing wrong Imports System.Windows Imports MSVidCtlLib Imports QuartzTypeLib Public Class Form1 Inherits System.Windows.Forms.Form Dim FileName As Object Dim FGM As FilgraphManager Dim MP As Media.MediaPlayer Dim VD As Media.VideoDrawing Private Sub FileToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileToolStripMenuItem.Click CmnDlg ...Show All
