alex china's Q&A profile
SQL Server sql 2005 install error. MODIFY FILE failed. Specified size is less than current size.
I installed sql 2005 a while back. Then I recently found out my file system was fat32 (I don't understand why the hardware people did this...) and I had to convert to NTFS. Naturally the sql service no longer worked so I uninstalled inorder to reinstall now I can't reinstall it I keep getting this message native_error=5039, msg=[Microsoft][SQL Native Client][SQL Server]MODIFY FILE failed. Specified size is less than current size. I'll try to post the full log in a new post. I think the problem is coverd on the following knowledge base article: http://support.microsoft.com/kb/932593 ...Show All
Visual C# generic methods
I want to be able to implement a strongly typed IClonable, so that I can clone based on lineage. public interface IClonableObject { T Clone<T>(CloningFlags flags); // flags specify level of cloning } so that I have something that looks like: public class Foo : IClonableObject, IFoo, IBar { string bar = ""; public string Bar { get { return bar; } set { bar = value; } } T Clone<T>(CloningFlags flags) { switch(flags) { .... case CloningFlags.ShallowCopy: { return (T)MemberwiseClone(); } } } } and can use it like: Foo f = new Foo(); Foo b = f.Clone<IFoo>(CloningFlags.ShallowCopy); I know this syntax (and most likely logic) is wrong. Th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Resource Management - Taken care for us?
Hey all, Does the content pipeline handle duplicate resource entries or is that still up to us ie.. tex1 = Loader.Load<Texture2D>("picture") as Texture2D; text2 = Loader.Load<Texture2D>("picture") as Texture2D; Does this load picture twice or does it load it once and hand out references for us ...Show All
.NET Development Executing a query against Access and Excel
Hi, there I wrote a program that reads data from both Excel and Access. But I don't know how to submit a query to both of them. Connection to Excel is made through OleDb in code, and Access connection is made through Database Explorer, in design time. The question is: how can I make reference to these sources Thanks, Flavia Hi, You can execute queries on these datasources by using a Command object. Since these 2 sources are using OleDb then you would use the OleDbCommand object. Just use your connection on your datasources for your command to be directed to its proper datasource. Ex: OleDbCommand myComm = new OleDbCommand("SELECT * FROM AccessTable", connAccess); You can then use the execute method if your ...Show All
Visual Basic How to retrieve every subfolders and files of a specified directory ?
Hi everyone, I would like to import every subfolders and files of a designated folder, Code samples I tried so far, only shows first sublevel and do not go further (not the full tree), which can also be obtained by using Directory.GetFileSystemEntries(). Anyone knows a good method on how to import every files and subfolders , and store them into an array Thanks a lot try this... Dim theFolders() as String = System.IO.Directory.GetDirectories( path , "*", SearchOption.AllDirectories) Dim theFiles() as String = System.IO.Directory.GetFiles( path , "*", SearchOption.AllDirectories) ...Show All
Community Chat Is MS trying to throw away menu bar?
In IE7, classic menu bar is disabled by default. In Office 2007, there is not menu bar at all. Also the traditional toolbar is gone. I can't find a way to create my own custom toolbar too. What's happening I know menu bar is very classic and not pretty, but it is one single place that I am 100% sure that I can get all the features from a program. I don't want to lose it. ReneeC wrote: You didn't answer my question. When I do word processing, I'm interested in typing a document that's all. Why do I need a Gallery and Live preview We haven't had them before. I've been very happy with Word, if anyone asked me what word needed, it would never occur to me to say, "A Gallery and a Live preview. ...Show All
Visual Studio Team System Install both Team Dev and Team Arch
Is it possible to install VS Team Dev and then VS Team Arch over top to get the features of both Will doing so screw up any other apps e.g. Visio for Arch, or disable ability to profile (from Team Dev) cmk Yes you can: just install multiple versions on top of each other and then the service pack. It has been working fine for me and my team. Note: Installing all the different 'flavours' does not make a "Team Suite" edition... Team Suite includes extra "stuff" that is simply not available in the Tester, Architect and Developer editions. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Memory leaks disposing AudioVideoPlayback.Video object
Hello. Sorry if this question is not in the right thread. I'm writing C# application for continuous video playback using the Video class from AudioVideoPlayback namespace. I create new Video object for each movie clip disposing previous one and I face the memory leak problem if I set Audio.Volume property somewhere; the Audio object is not disposed. This leads to E_OUTOFMEMORY exception when trying to play 10th or 20th clip. Now I've commented lines that change Audio.Volume and application operates normally. Is there any way out of the situation I don't like the idea to change the master volume... Thanks in advance, Victor. ...Show All
.NET Development XML Appearance in Visual Studio 2005 versus Visual Studio 2003
Hi All, We used to see xml in visual studio 2003 under 2 tabs XML & Data; one for xml text and the other for Table Data View of xml. In Visual Studio 2005 that doesn't appear any more, only xml text is present. Is there any setting should I do to get the Data tab of xml in Visual Studio 2005 Many Thanks and Best Regards, Bishoy Try right clicking the file in Solution Explorer and selecting "Open With", then select "XML Data Editor". Hope this helps. ...Show All
Visual Basic Forms.keypreview ????? not exist?
Hi experts, currently I am trying to use keypreview to disable the auto-submit from clicking "enter" when focusing a textbox. So I am going to turn keypreview to false. However, I can't find it!!! it's not in Forms....anybody can tell me how to do it I am using Visual Studio 2005 and 2.0 .net framework. Thank you very much yours, armansiu As your trying to create a web form - you'll be using ASP.NET and I would probably suggest the forums at ASP.NET as a better location to get an answer to you question. Forms.KeyPreview is a windows form concept and is probably not applicable to web forms, and therefore there may be a better way to achieve the results that you want. forums.asp ...Show All
SQL Server Database is read-only.
Hi I have been learning on how to use the new features of the .NET 2.0, and Well I using VS2005 and everything is pretty straight foward. I did a Membership webform where you log in and create users and roles etc. I installed the SQL Server 2005 express as my Data provider and thats where my Tables are. I used the aspnetsql_reg comand to integrate the server to this application. Anyway my problem started when i decided to copy my project to my IIS server and well when I run the app from the Browser tells me that he Database It's set to Read-Omly and therefore it cant update it. This happens right after log in. but then I open the App. on hte VS and it runs find. This is the error: Exception Details: System.Da ...Show All
Visual C# Exposing properties
Hi! My idea is to include into language a mechanism to expose a field's properties. Let's say I'm inside some WinForms user controll. My control's got a label named label1. I want to expose the Text proprety of the label inside my user controll class and call it LabelText. The main pattern idea is to 'inherit' all the child's property attributes automaticly (like DefaultValue, Browsable and so on - these are just examples, Text proprety's got some others). I would only have to write single line of code that would do everything for me, like public LabelText = label1.Text; One problem I've noticed is that some of the attributes may be of private nested inside that class types, like class MyClass { [AttributeUsage(Attribut ...Show All
Visual Studio Express Editions LoginForm1.vb problems
I am a new coder (only been doing it for a couple of months) and I am having some trouble with the templete LoginForm1.vb in Visual Basic Express Edition. I can't figure out what code I need, nor am I really sure of the way to go about using the form. I've done some looking on the MSDN Library but all they have their is logins for web applications. Since what I am creating is a windows app then this doesn't help me. If I could get some help in really simple terms that would be great. I've also looked at some other posts on this forum concerning this problem and they didn't help me too muchl unfortunately the link you sent me didn't help too much. What I can't figure out is what I need to do so that when som ...Show All
.NET Development Detecting Disconnected Sockets
I'm creating a multi-threaded Tcp-Server, each thread reads from it's Network Stream in blocking mode. How can I detect if a client is lost (not disconnected correctly) My server works by catching the IO exception or receiving 0 bytes from the read function to alert a disconnect. The problem is closing the connection (and thread for that matter) when the client's power is lost or it loses network connectivity. Any help would be appreciated. Thank you. Yes, I handle those 2 situations correctly and the connections are properly closed. However, if the client's ethernet cable is unplugged or it's power is turned off, I do not recieve ANY exception in the server and the port stays open. ...Show All
Visual Studio Express Editions designing individual panels?
Hello everyone! this is my first post here. Im just moving into C# and .NET after a few years working with C++ and various GUI Libraries/frameworks. (MFC, wxWidgets, WTL, etc.) Is there a way to use the IDE’s form designer to design individual panels not whole forms, but panels. in other words, to create a panel class that is not "attached" to any form. The idea is that my favorite approach to designing complex GUIs in my applications is to have a main screen, where diferent "views" are shown one at a time, think of it like a tab control, but without visible tabs, the user "invokes" these views by choosing buttons on the toolbar, main menu, dialogs, etc and i programatically show/hide or create/dispose the ap ...Show All
