LittleSettler's Q&A profile
Visual Studio 2008 (Pre-release) Problem sending inherited objects
Hey! I have the fallowing class: [DataContract] public class MyItem { private string mInfo; [DataMember] public string info { get { return mInfo; } set { mInfo= value; } } Then o inherit this class to: [DataContract] public class MySubItem : MyItem { private int mId; [DataMember] public int info { get { return mId; } set { mId= value; } } I am now creating 5 object of each type(MyItem and MySubItem), this 10 objects are added to a dictionary that are of the typ MyItem like this: Dictionary<int, MyItem> To add the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Saving Files
My game is now ready for 360 Super Stardom.. but i need to save high scores to make the replay value higher. Please could someone point me in the right direction of saving files and high scores I'm glad I searched before posting... One more question though, how do we save in regards to the logged in profile For example, Marble Blast Ultra saves the user's best times without asking for a name or anything. Is there a way for us to determine the current user so that we are able to do this as well or is that something likely coming along with the Live support ...Show All
SharePoint Products and Technologies (WSS2) Lists Web Service, add DateTime value
I want to use the Lists web service to add items to Events list. However I dont know how to format the Datetime value I use following Method xml for the updateListItems() <Method ID='1' Cmd='New'> <Field Name='ID'>New</Field> <Field Name='Title'>New Event</Field> <Field Name='EventDate'>2/2/2007 11:00 AM</Field> <Field Name='EndDate'>2/5/2007 5:00 PM</Field> </Method> I got this error: Invalid date/time value A date/tme field contains invalid data. Please check the value and try again. Jason Dates have to be passed in the format YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ . So for you case, try 2007-02-02T11:00:00Z for the EventDate and 2007-02-05 ...Show All
SQL Server Query to return database file names and locations
Does anyone know a query that will return all the databases (SQL 2005) on a server with their file names and locations Thanks In SQL SERVER 2005, catalog view sys.master_files exposes this information. So, select db_name(database_id) database_name, * from sys.master_files will return all database file names and locations (except resource database) ...Show All
SQL Server Problem with Parameter
Hi , I am having a peculiar problem when i am using report parameters in a report. I am using report paramter to let the user select the month for which the report has to run, but the drop down has ordered the months in alphabetical order,for selection Is there any way I can set it to list it in the correct order Thanks in advance PMJ If you are using an analysis services datasource, there is an easy way to solve this. Open up your Date Dimension. Select the Month attribute. Right-click and select properties. Set the "Order By" property to key. Build and deploy your solution. Refresh the project in Reporting Services. And you will be good to go. ...Show All
Visual Basic Microsoft Agent Request Events Problems
Happy New Year VB Experts, I am attempting to use the Microsoft Agent in an application; you know, the Clipit and Merlin characters. According to the documentation that I have found there is a Request event which is fired by a number of the Agent methods. The agent _RequestComplete event is used to keep the Agent animations and the rest of the program in sync. This is how I attempted to program the Request event. The code sample just contains the code pertaining to this problem. Public Class Form1 Private WithEvents MYAgent As AgentObjects.Agent Private MYChar As AgentObjects.IAgentCtlCharacter Private MYRequest As Object Sub LoadAgent() MYAgent = New AgentObjects.Agent With MYAgent .Connected = True ...Show All
SQL Server Each member in my attribute has the same value as All (when used with a particular measure)
This only seems to occur in one area, and unfortunately (or fortunately, meaning it's not a bug) I cannot get anything in adventure works to display the problem. In my cube, if I look at [Customer].[Location Tree].[All], but also say where Customer.[Organization Type].&[School], the sales value of [all] is presenting itself like the organization type slicing wasn't even used. ie: (the total sales from this query is correct in my mind) select [sales] on 0, Customer.Territory. AllMembers on 1 from cube where Customer.[Organization Type].&[School] but the all value out of this query is truly "All".. it doesn't seem to make use of the filtering: select [sales] on 0, [Customer].[Location Tree].[A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Conecting my computer to xbox 360 for XNA
How do I connect my computer to the 360 for XNA because I put in the conection key and everything else but its still not connecting. It could be your router. I tried up and down to use Microsoft's Media Connect tool to share Vids, Picts, music from my computer to my Xbox. After hours of working with the Xbox people we gave up and determined that my router was not handling UPnP (Universal Plug and Play) even though the router indicated that it did. The router I couldn't connect with was a Linksys BEFSR41. I replaced it with a Linksys WRT54G and everthing has worked without a hitch. I could be way off, but I don't want anyone heading down the path I went through. Hope this helps. ...Show All
Visual C# How to populate data in Excel file format programmatically???
Hello, I like to programmatically genearte a Excel file format (*.xls) from a C# program for report. Can anyone give me ideas on API Thanks, vcboy take a look at this thread . There are good explanations for working with Excel. for writing in Excel I use similar statement (oSheet is of type Excel.Workbook ): oSheet.Cells[row, COLUMN_OFFSET + 0].FormulaR1C1 = "you data"; hope this helps ...Show All
SQL Server Three level replication schema
Hi I have to questions\problems I would need help with. First I am creating a three level merge replication. I mean I have a main publisher with its distributor, a subscriber/publisher and also with it's own distributor and lastly a subscriber. I start by creating the relation between subscriber/Publisher and the subscriber and than I move up to the main Publisher and Subscriber\Publisher relation. After this second merge I get the following errors and the articles in my Subscriber\Publisher are lost... The merge process could not retrieve article information for publication 'I-Test-Publisher'. (Source: Merge Replication Provider (Agent); Error number: -2147201017) -------------------------------------------------------------------- ...Show All
Visual Studio Team System Restore TFS to a different server
I want to run the restore procedure of TFS on a different server. Working with this document: http://msdn2.microsoft.com/en-us/library/ms252516.aspx . Under the "To build the data warehouse" phase, stage 6: Right-click the TFSWarehouse, and then click Process. Clicking on TFSWarehouse I have no "Process" menu. Continued the process of this document without doing this phase; I didn't have the server running at the end of it. What might be the alternative here Is there a different document I don't understand what I have to do. Please explain more precisely, or refer me to the right article. ...Show All
Visual Studio Team System Object reference not set to an instance of an object error
Hello, After checking in a changeset using Team Explorer, I get an OK dialog with the message: "Object reference not set to an instance of an object". I click OK, the dialog is dismissed everything seems to be ok. I checked the event log for any errors but I could not find any. This doesn't always happen, I could not find a pattern or a reproducible case. Has anyone encountered this error before Are there any log files that I can check to get more information about what is happening Thank you, Hi: Unfortunately, I do not think there are any error logs you can look at while running in Release that will give us any information. You hit a bug in our client code due to so ...Show All
.NET Development Return argument has an invalid type - security issue?
Hi, We have a .NET remoting application server, which works great by itself. We are currently evaluating a commerical automated testing tool, that loads the application server's API assembly and simulates a client connection to the server. However, under this scenario the proxy object does not succeed in dealing with complex objects, and we get the "Return argument has an invalid type" error in return. We figured it has something to do with security issues but couldn't find any solution. We are using a tcp binary channel with typeFilterLevel=Full. The interface for the complex object AND the complex object itself are defined in a separate assembly (ApplicationServer) then the API (ApplicationSeverAPI). Thanks, Ron ...Show All
Visual C# IntelliSence Bug in C# 2005
string Test(string s) { return s; } int Test(int i) { return i; } void CallTest() { string s = ""; int i = 0; Test(s). IntelliSense not working here } o945 - I don't see IntellISense working here in VS2003 or in VS2005. IntelliSense isn't able to resolve overloaded functions such as in the example -- we will be able to do this in the next version however. Thanks! Karen ...Show All
Visual Studio 2008 (Pre-release) Using Bitmap resources from .resx file in WPF
Briefly: How do you use a System.Drawing.Bitmap as the source of a WPF <Image> object Expanded explanation: So I plan on making extensive use of Resource files and assemblies (.resx files and externall .DLLs) in a WPF application specifically for storing and managing collections of image files (.pngs) - however it seems that all of the resource access functions return a System.Drawing.Bitmap object which I want to use in WPF Image objects. Hmmmm.... Two worlds collide. After doing some basic research, it would appear that the only way to do this through a bunch of GDI interop calls Its this true Is this a major oversite in WPF Are you not suppose to use resource files with WPF Referencing local images through file paths / dir ...Show All
