Sean2006's Q&A profile
.NET Development Using TransactionScope to share transactions between Methods
Hi, Before we start: This is all taking place on a single database. And I really don't want the overhead of Distributed Transactions. If I want to have lots of separate data access routines that do work on the database. Sometimes I want these routines to take part in a larger transaction. Sometimes they will just be running in their own transaction. I looked at TransactionScope and I thought this would do the trick. I now realise I w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged DirectX with Managed C++
I have been reading about the .NET framework for quite some time, and I found that Managed C++ allows mixing unmanaged and managed code. I've got a few questions about that. Is it possible to use an unmanaged API (like unmanaged DirectShow or DirectX) in a managed application If so, are there any steps that need to be done to do this Are managed API's like DirectX.NET also availible for Managed C++ If so, how do I know if I'm using the managed o ...Show All
Smart Device Development How to create a File, especially XML file.
hi all, I have not worked on any file handling, etc. I wanna know how to create an file, open / read / write / close. means, what type of object i need to create and how to use it. plz help me thanx in advance harish That is done using classes in System.IO and System.Xml namespaces. This is very generic topic and it is very desktop compatible, so this should point to at least couple hundreds samples: http://www.google.com ...Show All
SQL Server Setup of user-defined columns with eye on reporting
I'm looking for a best practice for creating user-defined columns that allows for not-overly complicated methods for reporting. For instance, a user or admin adds a few columns specific to his department, including descriptive and/or "column" names. He then wants to create a report that includes these columns along with some of the default columns. I'm thinking that for the novice or regular users, setting up report models would suf ...Show All
Windows Forms problem with dataview sort
I cannot get a dataview to sort at all based on the column name! Here is the following code that I'm using: lstReturnContact.DataSource = dsRolodexXSD.CONTACTS.Select(dsRolodexXSD.CONTACTS.Columns(1).ToString & " <> ''")   ...Show All
Visual Studio Team System Need some information regarding "Mark Method as static"
hi, i am implementing a singleton pattern in one of my classes. when another class method is using this singleton class instance then FxCop shows me an error to mark this class as static too as i am accessing a static property. if i mark this method as static then any other method which is calling this method also need to be marked as static as per FxCop. can anybody help me out with this problem. Thanks in advance -Rajesh. ...Show All
Visual C# link one form's controls to modify the main form
How do you link one form (say an OptionsDialog) to modify the Main Form i.e. Choose options in the OptionsDialog and make them modify the Main Form Like a settings dialog... you create separate form and call it. then check it's settings and modify main form accordingly using(SettingsForm frm = new SettingsForm()) { if(frm.ShowDialog() == DialogResult.OK) { //change title for instance this.Text = frm.MainForm ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .NET 2.0 application template
Hi! How to create an application template like the one presented here: http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx , but for .NET 2.0 I'm new to the whole .NET thing and it's quite confusing for me. I tried to follow the steps in the tutorial mentioned above and just changed reference to Microsoft.DirectX (which should i use: "version 2.0.900.0 runtime 2.0" or "version 2.0.0.0 runtime 2.0.50727" ), but should i also us ...Show All
Visual Studio Tools for Office Adding image to commandbarbutton
According to the following example ( sample ) I tried to add my own images to a custom toolbar. Only when I call the ' ConvertImage.ImageToIPicture _ (MyForm.PictureBox1.Image)' I get the error 'HRESULT E_FAIL' (I added the images to my project, changed also the build action to embedded resource, and also added my images to an imagelist) Does someone have an id ...Show All
Visual Studio Team System Trace-Logging to Verify TFS mail sending status
Trace-Logging to Verify TFS mail sending status ------------------------------------------------------------------- On a server with both TFS(Beta3) AND TeamBuild both installed. Per following link: http://blogs.msdn.com/psheill/archive/2005/11/28/497662.aspx notification_id=201283&message_id=201283 I open on TFS Server: SrBuild C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Web.config and ...Show All
Visual Basic Creating a byte array from a stream
How can I do this I've tried... Dim AccountToUpload As Byte() = System.Text.Encoding.Default.GetBytes(AccountUploadStream.ReadByte) ...but my result it -1. The stream is declared as... Dim AccountUploadStream As System.IO.MemoryStream = New System.IO.MemoryStream Any ideas The data stored in the stream is an XML document. Thanks. Try this code: Module Module1 Sub Main() Dim AccountUploadStr ...Show All
SQL Server DBCC CheckDB
Hi: As part of database maintenance plan, I am using the option (checkbox) for checking the integrity of the database before backing up database or transaction log. I am not sure when this database integrity check happens (DBCC CheckDB). They seem to be happening at different times not necessarily right before database backup. Does anyone have more details on this Also I am backing up my user and system databases every night wi ...Show All
Software Development for Windows Vista SQLPersistenceService and remote clients
Hello, I am trying to use SQLPersistenceService with persistence database available on a remote server. To test it I am using the Beta 2 sample "\Technologies\Hosting\PersistenceServices\". SQLPersistenceService connection string is configured for the remote SQL server using SQL authentication. The problem I experience: after starting the application from the remote machine (the one does not have SQL server installed locally), wo ...Show All
SQL Server Download database to local and use
I have SQL database hosted by my ISP. Every now and again we log on and create new tables using user XXX1. After getting a backup of the database, I have restored it on my local machine. When running the application on local, I get an error because there is a new user in database called XXX1. I would like to change the user from XXX1 to dbo on my local machine for all tables, stored procedures and views. How do I do this easily Thanks in a ...Show All
Architecture How I can let users to extend database schema?
Hi. Your help is very appreciated. I want to build an app that is basically a client db. For that I am contructing a "client" class (that has - name, address, contact details etc...). However, I want to enable my users, to add properties to my "client" class WITOUHT needing to change my code . i.e. some clients might require an "age" and "annual income" properties as part of the "client" class. Which design pattern(s) might assist me ...Show All
