amit9979's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX 9.0 Deployment via VS 2005
I have been researching this question on the net a few days and have not had much luck. I have a project that uses DirectSound to play WAV files and I want to include the DirectX redistributable files in my install. Some of my users apparently do not have DirectX installed and are having issues running my application. (These users are using Windows 2000 without the latest service packs in an environment where they do not have an internet connection.) I found a Managed DirectX 9.0c bootstrapper package that was made in 2005, but it no longer works with the latest August 2006 DirectX redistributable files. The bootstrapper package interfaces with the Visual Studio 2005 bootstrapper, and enables the author to check a box for Managed Dir ...Show All
SQL Server Minimal install possible?
The smallest downloadable version seems to be 53MB. Is there any way to create a smaller version to use as an embedded DB for an application I only need it to be single-user, for what that's worth. I'm thinking more in the 10MB to 20MB range. You have an option to use SQL Server 2005 Everywhere edition. It has to be run in-process and won't run as a service (however, I think it might be possible to create your own windows service where you embed SQL Server Everywhere). It only uses a few MB HD space, and uses about 5 MB RAM. Available at http://www.microsoft.com/sql/ctp_sqlserver2005everywhereedition.mspx , though only in CTP. Scheduled for release at the end of 2006. Best regards Bjornar Sundsbo ...Show All
Visual Studio Express Editions some more questions :p
yep, its me again and i have some more questions xD 1) how can i create a picturebox in the code itself like when i click button1 then there is a picturebox created 2) i want my 'if' thing to have 2 things in it (like if (MyInt == 0 and MySecondInt == 5)), how do i do this, as 'and' didnt work 3) u can write things in a combobox, but how can i disable that u write things in it 4) u can check and uncheck a radiobutton by clicking it, but how can i do that u cant check and uncheck it by clicking the radiobutton (i have some other ways to check/uncheck the radiobutton) thx in advance Q1: private void button1_Click(object sender, EventArgs e) { PictureBox box = new PictureBox(); ...Show All
Software Development for Windows Vista State machine workflows and transactions
A quick question that I hope someone can answer. I have a state machine workflow with a few different types of event handling activities (implementing IEventActivity). They are driven by transactional events - e.g. messages arriving on a queue. They must therefore be part of a transactional context, to ensure that the triggering event is marked as complete in an atomic operation with the subsequent processing. In a sequential workflow I would do this simply by placing the activity in a TransactionContextActivity along with the subsequent processing. However, in a state machine workflow, the event handling activity must be the first child of the EventDrivenActivity. This precludes the use of a transaction context. My question is, i ...Show All
Software Development for Windows Vista XAML Based WF Linked to Assembly
I am trying to set up an XAML based workflow where all of the activities are either common activites or defined in a custom assembly. I am loading the xoml file at runtime using an XMLReader to load the xoml file, then calling CreateWorkflow with the XMLReader. After working with this a bit I was finally able to get the workflow to load correctly. The workflow starts with a While Activity. The While activity calls a member of my custom SequentialWorkflowActivity class named 'ContinueLooping'. 'ContinueLooping' sets args.Result = true; This should result in a continuous loop, however, the workflow always completes right away. If I put a message box in the 'ContinueLooping', I never see the message box. If I change the name of the 'ContinueL ...Show All
SQL Server Using Multiple Versions of SQL Server in a Replication Topology
Hi there, I have one publicacion on ms sql 2005 Enterprise w.sp1/MS Windows 2003 Enterprise w.sp2 and one subscriber on MS sql 2005 Enterprise w.sp1/MS Windows 2003 w.sp2, but I have also 3 subscriber on MS SQL 2000 w.sp3/MS Windows 2000 advanced server w.sp4. They replicate the same database with a publication compatible with 80RTM, All works fine with data replication, but I can't replicate DDL to MS sql 2005 suscriber, I don't care that don't replicate DDL, but I want manually alter triggers at MS sql 2005 suscriber, but I get this error at the subscriber on when I run the ALTER TRIGGER statement : Msg 21531, Level 16, State 1, Procedure sp_MSmerge_altertrigger, Line 67 The DDL statement cannot be performed at the Subscribe ...Show All
Connected Services Framework Profile Integrator failure on subscription through ProfileSubscriber tool
Hi, I was trying to set up subscription of ProfileIntegrator through Profile-Subscriber tool. The command ran successfully, and returned a subscription ID. However in event-log I could see Profile-Integrator getting failed. Following is the profile-subscriber tool command used: C:\Program Files\Microsoft CSF\V3.0\Connectors\Profile Integrator\bin>profilesub scriber -subscribe csfdomain\csfuser1 Csfuser@123 http://blrkec21593d/ProfileMa nager30/ProfileManager.ashx http://blrkec21593d/ProfileIntegrator30/profilein tegrator.ashx Subscription: Identifier = 7f58c937-d667-4d0f-bddf-d4a099a95521, SubscriptionMan ager = http://BLRKEC21593D/ProfileManager30/ProfileManager.ashx M ...Show All
Visual Studio Team System URGENT: Error when merging changes after folder move
Recently we faced with an error which preventing us from merging changes. This issue is quite urgent for us. We had a main source tree under folder $/P5/RC and several version branches under $P5/R9, $P5/R10 and so on. We created new team project named "P7" and moved main source tree into it via move operation (to folder $/P7/RC). Now when we trying to merge any changeset to version branch (for example $/P5/R9) performed BEFORE moving main tree to the new project we are getting the following error: The item $/P7/RC does not exist at the specified version. It seems to us that TFS do not take into account move operations when trying to get specific version of items during changeset merging. I believe 'tf history' ...Show All
Visual Studio DSL interacting with VS project system.
I've been hitting the DSL trail hard over the last couple weeks and have some designers and code generaters that would be of tremendous value to me if I could figure out how to get my model to interace with DEVENV and interact with project files, references, Types, or other language elements already in the solution. For instance, I would like to be able to define a property "type" that has to provide a UITypeEditor capable of browsing the the project in a similar way that the Class View operates to enable the user to reference and datatype a property without having to manually type it in. In another case, I would like to be able to add or remove files to the project in response to user actions within the DSL such as automa ...Show All
Visual Basic Session state in VB.net
Hello all! I know there is a session state in asp.net. Is there something in a vb.net application that does the same thing Thanks! Rudy Thanks Spotty! I need it for a windows application. I just wanted to make sure there wasn't something out there before I create something to do the session handling. Thanks againg for the info! Rudy ...Show All
SQL Server Need textboxs in a table to show zeros if no record found - not a NoRows message
I need a way to have the text boxes in a table to show a 0 if there is no record found for the query (not looking for a NoRows message). I've tried setting a default value for the textbox, but it isn't displayed since the query is empty. Is there a way to setup the query to have an if statement that would return a value of zero for the fields as in: If recordcount =0 then set field to 0 The textboxes are visible when the query returns data. I solved it by creating a record on the database that had zeros and then selecting that record if the original query is null. Basically the query is: If exists(Select * from table1 where id='1') select * from table1 where id='1' else select * from table1 whe ...Show All
.NET Development Insert/upadte thousands of records in the table from an excel file depending on some business logic.
Hi, I have an excel file with thousands of records which contains Employee data. Depending on some business logic I want to upadate/insert the records in a table "Employees". Is there any way to do this with little performance impact Please reply... Thanks in advance, Suren... Hi, Thanks for reply. But prior to loading the data want to apply some business logic. I want to check for the duplicate records in the excel file as well in the database table for the same. If the records are duplicate I dont want to insert that record again. Regards, Suren... ...Show All
Visual Studio Team System Making all the fields in work item read only.
Hi, In my work item I have a field "Status" whihc decides the status of the "Defect" work item. When the value of "Status" is closed, I want the work item to be read only. Hence I have put the following conditions for all the fields in my work item including the "Status" control. < WHEN field = "Defect. Status " value = " Close " > < READONLY /> </ WHEN > But when I set the value of "Status" as "Close" the fields does not become read only. Catch here is, if I remove the above condition for "Status" field, all the fields except "Status" field become read only. Is there some kind of cyclic action happenin ...Show All
Windows Forms Can't find prerequisites option on my VS 2005
Hello I am looking for the prerequisites option on my VS 2005. but i couldn't find it anywhere. I followed the instruction here. http://msdn2.microsoft.com/en-us/library/7eh4aaa5.aspx it said it is located in the properties pages under build property page. and it should have a prerequsites button there. but im looking around and couldn't find it. I am using a professional edition of VS 2005. Anybody knows where it is hiding Yeah thank you. I don't see it when i develop for WM 5.0 for pocket pc. what does this mean is that wm5.0 already has .net framework 2.0 install in there already ...Show All
Software Development for Windows Vista Writing to HKLM
I'm using the RTM release of Windows Vista and testing my application to see if it will run on Vista as a standard user. I'm seeing some strange behaviour and I'm wondering if anyone can help me figure this out. My application writes some data to HKLM\Software. I was expecting to see this write getting redirected to the VirtualStore when running as a Standard user. However, that does not seem to be happening. My app is able to write to HKLM\Software. My app is not running with elevated privileges and Virtualization is ON. I even tested my app with the Standard User Analyzer tool thinking it would possibly show me some errors when writing to registry but nothing showed up there either. Strangely enough, I see the same behavior when running ...Show All
