deanvanrooyen's Q&A profile
Visual Studio 2008 (Pre-release) Tweaking DataContract-generated schema
Suppose I am building a WCF service using DataContracts. My service is working great, but I'd like to make some modifications to message schemas exposed by this service's metadata. For instance, I might want to set minOccurs and maxOccurs on some elements of the schema, or add some key/keyrefs to try to clarify some of the relationships within the data of these messages. (Note that I'm not trying to change the structure of the actual messages on the wire, just trying to enrich the metadata so consumers have a better sense of how to use/interpret these messages.) Is there a way of intercepting/injecting customized schemas in a service's ...Show All
.NET Development Transformation of Binary Data
Hi friends, I have an XML file with one tag having binary data(image Content) base64 encoded - now, I would like to know how can I apply stylesheet (XSL) on that XML file and get that binary data(image) back. Let's discuss it in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398112&SiteID=1 Best regards, Anton ...Show All
Windows Forms Data Grid View with Databinding
Hi, I'm having a problem with Data Grid view control. Its is bind to a sql server 2005 table and it is displaying data. The problem i have is that I can't manage to capture that data and copy it into excel file. If someon knows how to capture it so that i can copy it into an Excel file. P.S I have one butoon which is select all, I want it to select all rows and then when i place copy it should export to Excel. Any specific property. Thanks Supes I want to give the user the option to either select all by clicking a button or select any no of rows and then the rows data should be transfered to an excel file, click an ...Show All
Visual Studio Crystal Report Auto Checkout
We have some strange behavior happening on a few of our development machines. The IDE for VS 2003 will be open and an embedded Crystal Report will be in design mode. With no interation happening, the report will try to check out from Source Safe. Has anyone experienced this behavior before We also have the problem with the same report getting saved with different filenames, i.e. Report.rpt will become Report1.rpt for no reason. Has anyone experience this before Thanks!! Allen Thanks Alfredo! I'll get with them and post a reply here. Allen ...Show All
Windows Forms unload me
in vb6 we have this function unload me however in .net i can't seem to find it so how do we unload a form here in .net not close but unload NOT THIS ONE (e.g.) me.close me.dispose application.exit i'm looking for the convertion of that unload me code here in .net thanks in advance You may wish to build a parent form to Form1, so&nbs ...Show All
Visual Studio Team System VS2005 stuck in Team Foundation mode!?
I previously installed Team Foundation Server, but didn't complete installation when I realised my machine didn't meet the requirements. I then downloaded the Team Suite and installed. On the PC where I had Team Foundation Server installed, VS2005 seems to be running in a 'Team Foundation' mode where it wants to connect to a Foundation Server and doesn't have the usual local options for viewing a project with the View > Solution Explorer window etc... How can I switch this VS2005 back into local developer mode, like it is on the other PC where I didn't try to install Team Foundation Server I assume there's a switch or option but I'm damne ...Show All
Visual C# How to set up a Web app in Visual Studio 2003?
I just posted a question on namespace System.Web.UI and am beginning to think that perhaps my trouble is related to the fact that I am using the namespace out of a Windows Application. I really need to set up a Web application but the browser does not allow me to do it. It is bizarre. When I click on File-->new-->Project-->ASP.NET Web Application I have to choose a location from a combobox. There are a few options there. None of them works. My attempt to anchor the application to any of the web directories fails. If I choose http://localhost, I get an error message: "The Web Server reported the following error when attempting to cre ...Show All
Visual Studio 2008 (Pre-release) Two O/R Mappers from Microsoft? Say it ain't so!
I've been hearing a lot of rumors coming out of TechEd that Microsoft is going to be releasing two O/R Mappers, DLINQ (Linq to Sql), and Linq for Entities. Please tell me this isn't true! We already have too many O/R Mappers, let's not make it so Microsoft has too two many as well! http://steve.emxsoftware.com/ORMappers/As+if+we+need+more+OR+Mappers - Steve Kind of true - I am here at Tech Ed and went down and talked to the LINQ and ADO.NET 3.0 folks. They are working together on these capabilities and the end result is still up in the air - they aren't sure if the two will merge or if they will remain sepa ...Show All
Smart Device Development MissingMethodException when trying to directly access SQL Server throught .Net Compact Framework 2.0
Hi, URGENT! I'm receiving a missing method exception while trying to instantiate a object that contains simple SQL Client code on Pocket PC 2003 Projects. I'm using .Net Compact Framework 2.0 with Visual Studio 2005. The piece of code i post bellow is able to simulate the problem i'm talking about. I just can't see any problems. I've even declarated on the Pocket Project a reference to "System.Data.SqlClient" as a try to solve the problem, without success. I'm working on it for three days and I just can't see any other solutions then the ones i've tried. Please Help! ...Show All
Visual C++ Why is strdup() deprecated in VS 2005?
< hyslopc@discussions.microsoft.com > wrote in message news:9a93850c-505b-48c3-bd60-44625db8bbc6_WBRev2_@discussions..microsoft.com ... This post has been edited either by the author or a moderator in the Microsoft Forums: http://forums.microsoft.com You may not care about it, but I do. I don't want to disable the warning because I think the concerns with most of the deprecated functions are very valid, and only wished Microsoft had done this a long time ago. As such, I have taken the opportunity to change a lot of my code to use the new functions. The problem ...Show All
Visual Studio Team System Will VS 2003 still be available after transitioning subscription
Hi all, My company is considering transitioning our Universal Subscription to take advantage of the free upgrade so that we can have access to Team System for Developer. However, we may not want to start using this for some time. My boss wants to be sure that we will still have access to all of the products we currently have access to, including Visual Studio 2003. Thanks for reading. If you have Universal, I recommend that you transistion to Team System Suite (it contains developer, tester, and architect all in one). I believe that VS2003 is still included in the Subscription. However, there is a MSB ...Show All
SQL Server SMO / SqlBackup() - Unable to connect to SQLEXPRESS instance
I am using the following code in an attempt to backup a SQL 05 Express datbase that resides in the local machine instance (SQLEXPRESS). I keep getting a "Unable to connect" error that prevents the backup from running. Any suggestions and or fedback would be greatly appreciated. try { Server server = new Server(Environment.MachineName); BackupDeviceItem bdi = new BackupDeviceItem(@"C:\test.bak", DeviceType.File); Backup backup = new Backup(); backup.Database = "Test"; backup.Devices.Add(bdi); backup.Action = BackupActionType.Database; ...Show All
Visual C++ Need help with overlapped I/O
Hi, I'm in the creation of a program that monitors a directory, and receives notifications from the OS every time a file in that directory (or any subdirectories) is modified. I try to accomplish this by using asynchronous I/O. Here is the code: #define _WIN32_WINNT 0x0400 /* Require win NT or later */ #include <windows.h> #include <stdio.h> #include <tchar.h> /* Prototypes */ void CALLBACK dirUpdated (DWORD, DWORD, LPOVERLAPPED); void closeDirHandle (LPHANDLE); int main(int argc, char **argv) { LPCTSTR fname; /* Name of the watched directory */ DWORD sharemode; DWORD flags; HANDLE dirHandle; FI ...Show All
Windows Forms Custom Installation Screen
I am currently trying to implent a license model for an application. I am trying to add a custom installation screen that allows the user to enter username and license key at installation. How do I add a custom screen to an existing installation process Hi. Dear friend. Recently, I got the same problem. Did you find any solution&nbs ...Show All
Windows Forms how to manipulate Listbox
Hi, I've been working on creating Windows Form program. I'm struggling to write a code within Listbox. When I open a players name list from file, they display on Listbox. If I click one of the players in the Listbox, it shows on firstName textbox, lastName textbox, position textbox, and age textbox respectively. I'd like to make a code like if I want to modify the player on each textbox but same name, then click Update, the player's information changes. The code is shown below, private void m_PlayerList_Click(object sender, EventArgs e) { Player selectedPlayer = (Player)m_CurrentTeam.PlayerList[m_PlayerList.SelectedIndex]; ...Show All
