homeslick's Q&A profile
.NET Development passing Streams to a MarshalByRef object method
I have a class that implements the following psuedo-code: public MyStreamReadWrite : MarshalByRefObject { public void ReadWrite(Stream inStream, Stream outStream); } I am hosting this class as a server-activated, SingleCall, object, listening on a Tcp channel. I want clients to be able to invoke the ReadWrite method on the server and pass open streams to files located on the client. I have made this work by doing the following: ...Show All
Visual C++ What happened to vector?
Something is wrong with the STL 'vector' header file in the 2005 Express installation. After installing beta 2, I can't compile any source files which #include<vector> any more. The vector file is now 59k as opposed to a very tiny 'vector' header in the VC++ 2003 Toolkit. Also, the VC++2005 vector file has all the code in it, while the vector file that works only has a few lines including some other headers. These p ...Show All
SQL Server Setting permissions to clr procedures while debugging.
I'm evaluating the writing of our stored procedures in C# through the CLR integration of SQL Server 2005. The problem I'm fighting with right now is permissions and debugging. I've written a stored procedure in Visual Studio 2005. When I run the stored procedure, I get an error stating that execute permission is not set on the stored procedure. I go into SQL Server Management Studio and explicitly set the permission and everything works fine. UN ...Show All
Windows Forms System.Deployment.Application missing! (VS2005 Beta 2)
Hi! My first post on here, so be gentle! I'm running Visual Studio 2005 Beta 2 and experimenting with ClickOnce deployment to work. So far so good, but I'm trying to get the publish version in code, so I can display it in an "About" box. The following thread says you can find it in code using the property System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion http://forums.microsoft.com/msdn/ShowPost.aspx PostID=91 ...Show All
.NET Development How can I create XML file from an existing database table?!!
Would any one tell me if there is any tool avaiable to assist me to create XML file from some selected column in a table database !! populate a dataset and use the features to expose the xml and save it to a file, you could write this as a windows app very quickly. i know xml spy can create schemas and managed classes from database tables as the data containers, but not sure about the data. ...Show All
Visual Studio 2008 (Pre-release) WinFx - Convincing Clients to buy into it ?
Hi, Firstly, many thanks for WinFx, it makes my life easier if only because i can create great looking, easier to use apps and clients love them, which means its easier to sell to them. but... I am finding resistance from my clients to adopt the perceived "Heavy weight" download overhead for WinFx applications, for internal systems i can set them up no problems, its just part of the install. but What about web based currently ...Show All
.NET Development Displaying data from linked fields
Hi, I've got this link table, lets call it "Link". It has 3 fields: ID, RepresentativeId and CityId. There are two other tables called Representatives and Cities, each with another ID. Link.RepresentativeId <-> Representatives.ID Link.CityId <-> Cities.ID Now... I want to display a drop down which returns the ID of the Link as the value, but the Display Member should be a text contatenation of the representative's name and the city n ...Show All
Visual Studio Team System Error in executing a build. Failed to create the cache folder path
Hi, While trying to execute a newly created BuildType, I get an error that TS failed to create the cache folder as the cache folder path is invalid. Now, the cache path that TS is trying to create is derived from the servcie account that it uses. My company has a policy of creating service accounts on domains that are prefixed by a $ symbol. e.g. $MyTFSServiceAcct. Although, Windows has no problem creating the $MyTFSS ...Show All
Visual Studio Team System Team System for Project Managers
hi I am quoting this from microsoft site. " Design, develop, and test modern service-oriented solutions Team Suite combines the Visual Studio Team System role-based products into a set that address the needs of multifunctional roles in an organization. The Visual Studio 2005 Team Suite includes the following: Team Edition for Software Architects Team Edition for Software Developers Team Edition for Sof ...Show All
Windows Forms How to close form instantly?
I have a subroutine which call to get data, and I want the form to be closed instantly if there is something wrong. However, the form didn't close and will go through all the subroutine, therefore GetData2() and GetData3(). Is there a way  ...Show All
Smart Device Development loading controls and using load, activated and sub new()
Hi, i'm developping an application for pocket PC using VS 2005 Beta2 and here is (are ) my problem(s ) I set up the first page as, let's say, "loading", once I launch the application, I want to first of all check if a login is set, if it is, show the login form ("login") and if not, load all the controls on my loading form, once they're all displayed, load the data from my database to finally show the welcome page ("welcome") now, here's my m ...Show All
Visual Studio Express Editions SQL Server 2005 Express Edition April CTP fails to install
I have spent the last hour trying to find other cases of the same install error on the web, but w/o luck. Does anyone know how to fix the following. I have Windows XP SP2 with VS 2005 Beta 2 (April 2005). When trying to install the "SQL Server 2005 Express Edition April CTP" I'm getting an error at the end of the install. Here's some of the messages: The initial error dialog: "Microsoft SQL Server 2005 CTP Setup" (window title) Mi ...Show All
SQL Server SET RECOVERY SIMPLE generates error
I've come across several references indicating that the recovery model can be set to simple by using the following sql statement: ALTER DATABASE dbname SET RECOVERY SIMPLE However, all I get is the error message below. What is the correct syntax Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '.'. Msg 195, Level 15, State 7, Line 1 'recovery' is not a recognized SET option. according ...Show All
Visual Studio 2008 (Pre-release) DLINQ vs ADO.NET vNext
recently there has been some "information drop" about ADO.NET vNext (http://msdn.microsoft.com/data/default.aspx pull=/library/en-us/dnadonet/html/adonetv3.asp and http://msdn.microsoft.com/data/default.aspx pull=/library/en-us/dnadonet/html/nexgenda.asp) in ADO.NET vNext we have sort of object-relational mapping based on enity concept. in general enity view over db gives formal represention of enities and relations. there is a tool t ...Show All
Windows Live Developer Forums Questions regarding MSN Messenger API
Great news! I have 2 questions about the API: 1. Will the API be managed or native I would love to have a managed API or at least a managed wrapper supported by Microsoft (like PIA for Office). 2. Using this API, will it be possible for external applications to send and listen for messages, but invisible to the end-user what about msn messenger live . ...Show All
