AmitKGupta's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. creating custom effects for .x models
I want to use a .x file just for the vertex data so I can create my own shaders and try to implement different effects. Does anyone have any samples or tutorials on this Just do a ContentManager.Load<Effect>(@"your\\effect\\here") and add the effect to the content folder. Then assign your effect to the Effect property of one of your model mesh subsets. ...Show All
Visual Studio Team System How to ignore compiler-generated members?
Our company has rule to prefix all class member variables with ‘m_’. When I try to make a custom FxCop rule, it will pick up all compiler-generated controls’ names (starting with underscore) in the web application (VB). How can I make it so custom rule will ignore them Thanks... Alex, it seems that your private members are note checked by FxCop now. First, set the field: "Project->Options->Spelling & Analysis->Run all overridable rules against all targets". It should help. Otherwise you can try to override the TargetVisibility function: public override TargetVisibilities TargetVisibility { get { return TargetVisibilities . (choose apropriate mode) ; } ...Show All
Visual Studio Express Editions External Tools
Help tells me to goto Tools->External Tools to add an external tool such as the resource compiler. When I click on the ellipsis I am taken to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE. When I go back one level and open Tools there is no bin folder. Help says that is where the Resource Compiler resides. I have gone so far as to remove VB 2005 Express and reinstall. What in the world am I doing wrong Thanks for the update. It's a big sucker alright...gonna take about 15 minutes. I really appreciate the help Chuck ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play Contest Question - Using languages other than C#
I've managed to use Chrome ( www.remobjects.com ) to create some small XNA demos that use the content from SpaceWars. The rules do not mention whether non C# langauges are allowed to enter the contest. Since there are several .NET 2.0 compatible compilers out there shouldn't this contest allow these entries as well as they can use both the Windows and XBox 360 XNA assemblies. Just to clarify, I have Visual C# Express and Game Studio Express installed on my machine, but am using Chrome via Visual Studion 2005 to write and compile my XNA demos and the plan is to use that combination to write future XNA games and contest entries. Could someone from the XNA contest team please clarify your position on the use of non C# languages for the Dream ...Show All
Software Development for Windows Vista Using the WF rules engine editor
Hello there, I am working on a project where I am using the WF rules engine frequently. I have a set of rules that need to be implemented into the WF rules engine. But when I was implementing the rules into the rules editor (the dialog that came along with the WF) I found a problem. I need to write a rule like.. if ( ifCondition ) DoSomeWorks(); else if (elseIfCondition) DoSomeOtherWorks(); else DoDefaultWorks(); But I am facing trouble inserting this rule. the dialog does not allow me to insert the else if part. If I break down the else if part to another if-else group then the it will be too complicated when I have a long if-else if-else if- else if -....else chain. one more thing I found that the rule ...Show All
SQL Server Distributed sp problem 32 & 64 bit.
Hey, I have a Sql 2000 w/ SP4 on Server 2003 running an sp that inserts and updates to a 2005 64 bit DB w SP 1 on Server 2003 . The SP has worked forever. No code or server changes. Now all of the sudden I randomly get this error. It will work, then fail 2Xs, then work, then fail . Very bazaar. Any help is appreciated! I have done the MSDTS, ran catalog sps, forced TCP/IP . I'm lost. If I run the sp on the 64bit box it works fine, but on the 32bit box now, I get the frequent error below. [OLE/DB provider returned message: Unspecified error] Msg 8525, Level 16, State 1, Procedure sp_xxx_xxx_xxx, Line 1496 Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction. The line ...Show All
Windows Forms Dataset & DataGrid???
I have a dataset that holds some data, and when i show it in the data grid i would like it to be editable, and changed in my dataset, can anyone send me a link or shed some light on how i should get this done yes, another button like a "save" button but a method would be ideal so not only can you call it from a "save" button but also when you are exiting the application, but remember to make your dataAdapter and dataset private global variables as to me it seems like you declared them in the local scope of a button, so add them to the top of the class, just after the class declaration something like: public class theClass { private DataSet ds; private SqlDataAdapter da; ... ... } ...Show All
Visual Studio Express Editions Make Autorun.exe
Hello! I would like to create my own Autorun.exe for DVD or CD. I only know how to run application or open some files with command like this (process.start "c:\text.txt"), but in this command I must indicate the drive letter, and I woul like to make my Autorun that independently will run from another drive letters, like F, E, G, etc... Thank you very much. Dave299 wrote: For a CD you need to have an autorun.inf file on the CD. You can find lots of information here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_works.asp I would like to know how can I call another application from my CD, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Packaging assets
I haven't got into using XNA as of yet, however I very much like the idea to play my games on the Xbox360 (blah blah blah). I see that the XNA team has put large amounts of effort into some asset management in XNA, that includes the XACT audio cues for like "make it possible to change the sound triggered by some event without doing it in the programming". I'm fairly deep into the process of making my customized packaging format with the goal to essentially archive anything (textures, sounds etc) into a single or more packages. There are several reasons, one of them because I started before the XNA project was convened, and to ease distributions on levels and mods by packing several files, textures, sounds, scripts in a single package file. ...Show All
Software Development for Windows Vista July CTP Cardspace problems - Cannot run samples
I have installed the July CTP on a fresh new machine: 1) The .NET 3.0 Runtime components 2) The Windows SDK for .NET 3.0 3) WF Extensions AFAIK, there is no corresponding Orcas tool to go along with the July CTP. All install well. However, I cannot run any of the Infocard samples. Running the setup.bat gives this errors: The service name is invalid. Apparently, there is no such service "Microsoft Digital Identity Service" installed. What am I missing I also had trouble with the install scripts, but I just started the Windows Cardspace service manually and got past that. But trying to run the samples is leading to the following error in the identity selector: "This version of Windows CardSpace d ...Show All
Visual C++ could someone plz. help me in printing some integers, character and a file in c++
could someone plz. help me in printing some integers, character and a file in c++ on printer direct There are various articles related to the topic at http://www.codeproject.com/printing/ . Have a look at those. ...Show All
Microsoft ISV Community Center Forums Displaying the description of a function and each of the variables within "function arguments" window.
Dear all, When I want to insert a function into a cell, I press "insert function", I select the function that I need from the list, and a new window is displayed with a brief description of the function, and also the description of each of the variables in the function. How can I add this descriptions for my own functions Thanks! ...Show All
.NET Development Bug? : Sgen breaks web-service serialization
I am using the noaa weather web service and it works fine if I have not run sgen on the assembly. I have sgen disabled in the project settings and instead run it explicitly in the main build. I run sgen using the command: sgen /a:myassembly.dll /force /compiler:/keyfile:myassembly.snk This creates an [assembly_name].XmlSerializers.dll and when running the application again, the same call to the web-service fails with the following exception. This is internal to the web-service code so I'm stuck for what to do other than not run sgen: System.InvalidOperationException: There was an error generating the XML document. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'myassembly.gov.weather.www.productType' ...Show All
Visual Studio 2008 (Pre-release) assigning ItemSource in MenuItem By Code
alslam alikom (Peace Opon You) i have case of adding a menu to the application through runtime and bindthe itemsource of this menu to a already XAML resource coded in the window here is the XAML code: < Grid.Resources > < XmlDataProvider x:Key = menuData > < x:XData > < Items xmlns = "" > < Item Title = " Foo... " GroupName = " First Group " ClickMethod = " item1_Click " /> < Item Title = " Do stuff " GroupName = " First Group " ClickMethod = " item1_Click " /> < Item Title = " Mangle " GroupName = " First Group " ClickMethod = " item1_Click " /> &l ...Show All
SQL Server Error in metadata manager processing sample database/cubes
I've just installed SQL Server 2005 with Analysis Services and the sample AdventureWorks databases. When I try to process the database via SQL Server Management Studio, I get the following error - see below. I did check the xml file referenced by the name of the error and I do see the dimension listed Order Date key but not any attribute called Name of Date. Is there any workaround to enable processing of the database and cubes I did bump up to Sp1 and this did not fix my problem. I also tried installing the samples from the downloads section of microsoft.com. Alas, no success. Any help appreciated, Mairead ------------------------------------------------------------------------------ Errors in the metadata manager. The ...Show All
