XNA Rockstar's Q&A profile
.NET Development MSXML2 vs .NET
I've been having a little bit of succes employing my past knowledge of MSXML2 to create and send requests to an Axis based webservices. But clearly there must be a .NET way to achieve the same result. Currently I read request from a file sub the proper fields and parse the result with MSXML2.DOMDocument. This seems like a pain considering that in some point in time I need to select nodes and find values in these responses. What I have in MSXML2 (and works) is found below. How do I get this done in the .NET FW static public string sendRequest( string message ) { output.WriteLine( string.Format( @"{0:yyyy\/MM\/dd HH\:mm\:ss.ff (zz)} > {1}", DateTime.Now, message ) ); // // create request // MSXML2.XMLHTTPClass http; ...Show All
Software Development for Windows Vista Is there a "standard place" to store writeable not plublic shared files to please UAC?
Our program has two files must be writeable (a database file and a config file) which are shared by all dedicated users of the program on a single system. The automatic redirection to a single users directory path is not helpfull in that case. Before changing our program: Is there a standard place on Vista to store writeable not public shared files (We whant also to pass Vista Logo test...) Thanks in advance Yes I'm testing at the moment. I'm going through the stages of making our main selling app Vista aware and the folder is both hidden and readonly for regular users. I have just read another thread that suggest using CSIDL_COMMON_DOCUMENTS so I'm going to investigate that in a bit more detail tomorrow. ...Show All
Visual Studio Team System In SQL SERVER 2005 need database, before restore has done.
Hi, Thanks for all supported till now . Today i face a new poblem. Actually i restored stsConfig database from backup. But now i need the same old stsConfig Database. I thought of using Rollback but i dont know exact way and syntax. Can you help me on this. I'm going to move this to the TF Admin forum. Are you trying to restore the database that was there before it got overwritten with the one from you restored from backup If you don't have a backup of the database that was overwritten, I'm not sure that you can do it unless you have some other program backing things up (for example, Windows system restore in Windows XP). Buck ...Show All
SQL Server Problem Creating Stored Procedure From A Library, DLL
I'm having a problem creating Stored Procedure from a library I have created. I have found that the Create Assembly query causes the Assemby to be placed into the Master Database's Assembly collection. The other is that the Create Procedure Query states that it cannot find the type in the assembly. Can someone see what is going on and let me know I have also changed the "struct" to a "class" and I get the same error message. I've included the code snippit, and queries belows: using System; using System.Collections.Generic; using System.Text; using Microsoft.SqlServer.Server; using System.Data.SqlClient; using System.Data.SqlTypes; namespace HHLibrary { [Serializable] public struct State { [SqlFu ...Show All
SQL Server Big problem for Vista x64 whis Jet.OLEDB 4.0
I have Vista Ullimate x64 English. ODBC don't have drivers for Jet.OLEDB 4.0. Only available drivers are SQL Native Client and SQL server All my NET application not working with local data base with follow error "The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered. " I tried to install Jet40 SP8 64 bit, but it say no install needed because there is a newer verion found on system. There isn't a 64 bit version of Microsoft.Jet.OLEDB.4.0. Please search the forums for more postings on this issue. ...Show All
Visual Studio Report Rendering error
I'm working on a pretty complex report in local mode. This has a single column table having a rectangle in each cell and each rectangle having a table inside. The rdlc is generated dynamically and at rendering time the viewer throws an error "An internal error occured on the report server. See the error log for more details". When opened the generated RDLC in visual studio report designer it openes up fine. I managed to get the exception thrown by the viewer by subscribing to the error_occured event. If any one of u can give me some clue as to where the error may lie it would be really great as I'm kinda lost. Here's the exception trace, at Microsoft.ReportingServices.Diagnostics.Utilities.RSTraceInternal.Assert(Boolean condit ...Show All
Visual C# Save a radiobutton value in Settings?
How can I save a radiobutton.Checked value in Settings Thanks, First you need to handle when radio button is checked. You need to handle ValueChanged event on every radio button, by seperate handler or what I prefer one handler for all radio buttons in a logical group. I also use a form property that is used to cover radio button selection. Then you need to decide how to represent that selection. It's easyer if you define enumeration for radio buttons group and value to be a of that enumeration type. Then you can store string representation of enumerated value in application settings and when you need that value you can just read, parse and based on that value, select (check) coresponding radio button. When you have a value you ca ...Show All
Visual Studio Express Editions Lesson #4 - Development
Sometimes the idea of using the debugger, can be intimdating to those unfamiliar with them. This is a tutorial based in a standard piece a source code that we will supply for the purposes of this tutorial. We're going to make a cheap MP3 player. I hope this tutorial is highly interactive and constructive. Needed Ingredients: 1.) A test directory with about 4 mp3 files. Make them as short as possible. 2.) Create a new Windows project. In the form Designer, add: a.) A progressbar called progressbar b.) Two buttons, One named btPlay and the other called btStop. In their respective text property boxes in the designer, insert Play and Stop. c.) A windows Media Player control. This probably is not in your toolbox ...Show All
SQL Server Different Result Same Sql Queries
I wrote 2 sql queries in two different ways. The only difference in both queries are One using '=' and other one using 'in'. All the other data is same.In my sense '=' and 'in' same Both queries should give same result. But one query giving different result and other query giving different result. Is this 2 queries different SELECT sum(SALES_ITEM.NET_PRICE) FROM PRODUCT_GROUP_LINK, PRODUCT, SALES_ITEM WHERE (PRODUCT_GROUP_LINK.PRODUCT_CODE=PRODUCT.PRODUCT_CODE) AND (PRODUCT_GROUP_LINK.PRODUCT_CODE=SALES_ITEM.ORIG_PRODUCT) AND PRODUCT.STYLE_CODE='MC001 ' AND (SALES_ITEM.PRICE_LIST='1FAC ' OR SALES_ITEM.PRICE_LIST='1FAW ' ) AND CLASS_CODE='TYPE ' group by STYLE_CODE SELECT sum(sales_item.net_price) from PRODUCT ...Show All
Software Development for Windows Vista Sample grabber callback / one shot for audio samples
Hi DirectShow forum, I would like to use the sample grabber to get uncompressed PCM audio data out of my filter graph to play using other means (i.e. not a DirectShow renderer). The sample grabber "one shot" mode would be the ideal solution to this problem, becuase it would allow me to create a simple GetSample function which advances to the next sample and returns the data. Unfortunately, the "one shot" mode is completely broken (as anybody who has attempted to use it already knows...) I can't use the callback functions because my application for the sample data does not match the playback rate of the graph. It would be possible to use the callback functions if I could reliably pause the graph after each callback, allo ...Show All
SQL Server Efficient sorting by an XML node value over multiple table rows
Hi colleagues. I would like to use the newest XML feature for localization problem. So: I have Country table with Name column of XML data type. This column contains a country's names in amount of languages, in a format like: "<ru> </ru><en>Russia</en><fr>Russie</fr>...". I liked that approach much until I faced a problem - How to select all the countries ordered by French name So I created primary and secondary (PROPERTY) XML indexes in order to increase efficiency of the following query: select top 100 * from Country order by Name.value('(/fr/text())[1]', 'nvarchar(max)') However, when I tested that query over 150 000 rows it turned out to be 60(!) times slower than to quer ...Show All
Software Development for Windows Vista Manifest files for Vista
Hi, For some of the exes of my product, I need administrative privilege. So I embed them in my application with "requireAdministrator". It works fine on Windows Vista and prompts for allow/deny or administrator uname/password as applicable. But the same program has non consistent performance on previous OS versions(XP, 2003 Small business etc). It shows blue screen sometimes for the applications where these manifest files are embedded. One can avoid these blue screens if the embedded manifest file is also present in the same directory as the exe for other OS. I do not want to make my application dependant on the presence of manifest file in the same directory. Is there a way out Is there a tool to find whether an embedde ...Show All
Visual Studio 2008 (Pre-release) Go-live version: multiple endpoints
Aynone ever get this to work This is a critical scenario... the other critical scenario is having more than one endpoint on the same IIS hosted service. Neither scenario is currently working using the imperative (below) or the declarative (config file) approach. It looks like ServiceHost is now looking for an address, which of cource you can't really give it since there are more than one. This scenario used to work great in the older CTP versions. Now either you get something about a security token being invalid or no response at all (depending on the binding). [Go-live version] using System; using System.ServiceModel; namespace DemoStuff { [ServiceContract] interface IDemoService { [OperationContract] string GetTe ...Show All
Windows Forms How to get [SourceDir]
How can I read the [SourceDir] and [TargetDir] vars with a custom action on install I want to copy a file (outside of the install package), what will be located at [SourceDir]<filename> with a custom action. Details depend on what kind of custom action, but in general you use [SourceDir] and [TARGETDIR] wherever you need to pass them to a custom action. (They are case-sensitive!) So if you wanted to have a custom action access a file fred.txt in SourceDir you'd pass [SourceDir]fred.txt to the CA. In an installer class you'd pass /myarg=[SourceDir] . http://simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ ...Show All
SQL Server Getting Started - What do I need to use SSIS?
OK. I am new to SSIS. I do not have control over the servers, so I have to provide a list of what features we need installed and such. In order to use SSIS to import data files (from multiple flat file sources), what do I need installed I have SQL Server 2005 installed on a server. But the Business Intelligence Development Studio isn't present. Do I need to install that on the server How about any services Also, can I/Should I install Business Intelligence Development Studio on my local development machine What about licensing requirements for it Thank you for your help in this matter. Usually I have full control over the server and I can just poke through the install to get what I need. Wow -- this is a big question, a ...Show All
