makst's Q&A profile
.NET Development Multi-assembly configuration
I have a C# application which uses multiple assemblies, and I want them all to use "global settings" Using Application Properties I am able to define and use persistant data, however these properties are not available to satelite assemblies as the settings class is Internal Sealed. The System.Configuration.ApplicationSettingsBase namespace does provide PropertyChanged event. How should I propergate global setting changes to all assemblies Should I use the PropertyChanged event or is there a more straightforward option that I am missing Thanks Nick.. Bump! Ah some one must know a prefered method to propergate user settings through to all assemblies whith in an applicatio ...Show All
Audio and Video Development Menus not showing up on WinDVD HD (Toshiba Qosimo)
Hi all, this maybe isn't the right place to discuss compatibility with players but maybe somebody tried to get things to work on a software player before. My project is working fine on Microsofts iHDSimulator and the Toshiba HD-A1 standalone player. But when I try to run it with WinDVD on the Toshiba laptop (the one with HD DVD Rom drive) the software either crashes or just plays the menu video without the graphics. Any ideas Are there any known issues for the WinDVD software Cheers, Gunnar Will Merydith wrote: Gunnar - are you getting menus to display for any HD-DVDs Yes. Even Million Dollar Baby is working well. Installed is only IE6 and WMP10. I do the programming on another machine... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WPF and DirectX
We are building a CAD application that will target Windows XP and Windows Vista So we are using WPF for the interface The thing I want to know is how well WPF can integrate DirectX(Drect3D) content (if anybody tried that) and which are the limitations The only references that I found was about using HwndHost which can let you interop with win32, com, directx. Then you have already found the only way to get WPF and DirectX working together. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No way to set the SpriteBatch transform ?
I can't find a way to set the transform of the underlying ID3DXSprite of the XNA SpriteBatch. Am I missing something Thanks L. The SpriteBatch class doesn't support any transform state members. You will need to perform any transforms yourself before calling Draw methods. The overloaded Draw methods also contain options for scaling, translation and rotation transforms. ...Show All
Windows Live Developer Forums org.apache.axis.ConfigurationException: java.lang.IllegalStateException: can't declare any more prefixes in this context
hi, when iam acceesiing msn search api using axis api in tomcat iam getting the following exception.can anyone help org.apache.axis.ConfigurationException: java.lang.IllegalStateException: can't declare any more prefixes in this context java.lang.IllegalStateException: can't declare any more prefixes in this context at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:3 ...Show All
Windows Forms Need help on some PropertyGrid and PropertyGridView members
Hi, I'm looking for a way to test the application with the PropertyGrid control, namely, to programmatically obtain grid items, select items, etc. I explored the PropertyGrid object with the test tool and found a number of protected (or maybe even private) members that I guess can help me with my task. The problem is, these members are not documented in MSDN. I tried Google search but haven't found anything on these members either. Well, the purpose of some of them, e.g. PropertyGrid.GetPropEntries(), or PropertyGridView.SetExpand (GridEntry, boolean) is obvious. However, I got stuck trying to understand what the others do. Could anyone provide me some information on these methods and their parameters Thanks in advance, Helen ~~~~~ ...Show All
Visual C# 同 How to use c # to write shrinking algorithm?
Algorithm use c # language is described shrinking Can write the code example thanks ----------------------------------------------------------- --This is group of data ,Judge next number through these datas What method have ----------------------------------------- 1: 019 2: 484 3: 733 4: 313 5: 736 6: 255 7: 459 8: 558 9: 504 10: 735 11: 193 12: 035 13: 550 14: 814 15: 916 16: ...Show All
Windows Search Technologies Have an idea for a Windows Desktop Search Technical Chat? Post it here!
Microsoft is striving to deliver an integrated community experience that responds to the needs of our customers. We're committed to providing online communities that allow people to interact, collaborate, provide feedback, and seek help with Microsoft products and technologies. The Windows Desktop Search Forum is one example of such a community and we're currently exploring the possibility of expanding our community offerings via a series of Windows Desktop Search Technical Chats. So, with that in mind, we'd enjoy hearing from you if you have one or more ideas for a Technical Chat. Just post it here as a reply. Stay tuned for more information about sc ...Show All
.NET Development XML serialize/deserialize and element that is a List<T>
This code throws an exception. How do I fix this code so that it serializes/deserializes a List<T> type ****CODE**** using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Xml; using System.Xml.Serialization; namespace Timeit { [Serializable, XmlRoot(Namespace = "Markit")] public class ItemData { [XmlAttribute("Len")] public int Len; [XmlAttribute("TimerList")] public List<TimerData> TimerList; public ItemData() {} public ItemData(int len, List<TimerData> timerList) { this.Len = len; this.TimerList = timerList; } } [Serializable] public class TimerData { [XmlAttribute("Timer_ ...Show All
SQL Server Unable to connect to SQL server database
I recently installed VS2005 Prof edition and SQLExpress 2005 and have been teaching myself C# using the book Microsoft Visual C# 2005 step by step. I have done all the examples including the examples on databases without problems up to chap 27 which is trying to demonstrate adding security to a web site using the ASP.NET Web Site Administration tool. After opening the tool and clicking on "security" the error message appears. Unable to connect to SQL server database As I understand it a database provider AspNetSqlProvider is supposed to create a database called ASPNET.MDF in the App_Data folder of the web site. Needless to say nothing is produced. I have read various posts and done the following without success. ...Show All
Visual Studio Express Editions the default settings SQL Server does not allow remote connections
Hi, I just downloaded VS Express a few days ago. I tried running the personal website wizard, got the code generated, and I hit Ctr + F5 to run it and drive test the thing. I get the following message: Server Error in '/WebSite2' Application. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). What can it be I am running a brand-new machine w ith Win XP Professional SP2. I am trying to migrate my skills from ASP (VBScripts) to this .Net thing. I get this pretty quickly, ...Show All
Visual C# How to make my function more generic ??
Let's say i have these 2 function void foo1() { Class1 classArray[] = GetArray(); for(int i=0;i<classArray.Lenght;i++) { console.WriteLine(classArray ); } } void foo2() { Class2 classArray[] = GetArray(); for(int i=0;i<classArray.Lenght;i++) { console.WriteLine(classArray ); } } as you can see .. the 2 function does exactly the same thing .. the only difference is the objet class1, class2 .... its just an illustration of my problem .... id like to do a more generic function... possible If you want to use generics, the following code will take an array of most any type and print out the class name: void UseArray<T>(T[] classArray) { foreach (T classInstan ...Show All
Visual C++ How to add MFC support in this project?
Hi I've donwnloaded a solution form the link below and compiled it. http://my.opera.com/Diniska/homes/files/test.zip It worked fine, but when I went to project settings and set "Use MFC in a shared DLL." Once I've set this option and re-compiled, it gave me LNK2019 error. It was about not being able to find __imp__CreateWindowExA@48 , __imp__GetWindowLongA@8 , __imp__SetWindowLongA@12 , __imp__MessageBoxA@16 , __imp__DefWindowProcA@16 extern symbols. What else do I have to do to be able to add MFC support to this project Thanks in advance. Then it gives me error LNK2005, such that "void * __cdecl operator new(unsigned int)"" ( 2@YAPAXI@Z ) has already b ...Show All
SQL Server Is there a script to delete all database constraints?
Hi all, I am trying to delete all of my table constraints and I generated this script: declare @table_name sysname declare @alter_table_statement varchar(256) declare @const_id integer declare @prt_obj integer declare @const_name varchar(256) declare @parent_name varchar(256) -- definindo o cursor... declare constraint_id cursor local fast_forward for select id from sysobjects where XTYPE='PK' OR XTYPE='F' order by parent_obj declare parent_obj cursor local fast_forward for SELECT PARENT_OBJ FROM SYSOBJECTS WHERE XTYPE='PK' OR XTYPE='F' order by parent_obj -- definindo o cursor... -- apagando as constraints... open constraint_id open parent_obj fetch next from parent_obj into @p ...Show All
Windows Forms How to disable the maximum click and enlarge of a fom?
I do not hope others to largerer the form since components on it will look strange, besides, I hope others can only minimize the form, so I want to disable the click of "Maximum" on the top right corner... Is there such information I am totally new to windows form. Thanks in advance! I've found the answers myself... however, it seems something wrong with the forum today.. FormBorderStyle = FormBorderStyle.FixedDialog; or in the properties windows, set the FormBorderStyle = FixedDialog/Fixed3D, then user can not resize the form. Set the Maximize property to false, so that the maximize click will be disabled, user can not maximize the form.. ...Show All
