Paul Baudouin's Q&A profile
Visual Studio 2008 (Pre-release) Feb CTP and WCF Lab 1 Fundamentals
Hi, Has anyone else had any trouble getting the WCF Lab 1( http://windowscommunication.net/collateral/pages/Lab1Fundamentals.htm ) example to work with the Feb CTP. 1. The Program class in the host executable doesn't compile for me. The following line fails: Type serviceType = typeof ( DerivativesCalculatorServiceType ); The best I can do to correct this line is to use: Type serviceType = typeof ( DerivativesCalculator .Calculator ); 2. And then I see a "zero application (non-infrastructure) endpoints" exception when I try to run the host, like this post http://forums.microsoft.com/MSDN/ShowPost.aspx Po ...Show All
.NET Development TableAdapters BaseClass
Hi, I have a problem with the TableAdapters implementation: let's say I want to implement a generic method that takes a TableAdapter and performs some operation on it. For the sake of example let's say I just want to open the connection the TableAdapter uses: public void PreOpenConnection(<TableAdapter base class > tableAdapter) { tableAdapter.Connection.Open(); } With the current implementation I would need to accept a Component para ...Show All
Windows Forms Telephony application
Hello, a greeting to all, somebody have experience on the telephony subject, I need to make an application that occupies the modem to make calls telephone to clients and reproduces a recording. The idea is simple, but I do not have experience in this type of developments. From already thank you very much and greetings. ...Show All
.NET Development xml documentation
Hi! I've a problem cos my boss wants to do a strange thing (i think so). i'm gonna try to explain it: He wants to know how the .net generates the xml documentation when you programmer with c#. I mean which classes of .net are called to generate this xml. Basically, how (I supose) the compiler read (I supose) the .cs file and take just the documentation tags (<summary>,<param>...). Once you've got just the tags you need, it's easy to generate the xml, but i don't know how to do the before step. I have an idea but i think it's not the optimal one. My idea is: open the .cs file and go ...Show All
Visual Basic TextBox modifies Button's default action
Hello, Is this possible in VB Four TextBoxes and one Button are on a Form. Button's default Text and Action is 'Look up'. When all the TextBoxes are filled with some data Button's Text and Action switches into 'Save'. Kind regards, -------------------------------------------------------------------------------------------------- This newbie can't walk and can't talk. Embarrassing. Sure. Implement the Change event for all four TextBoxes. Have them call a common subroutine like this: Sub AllFourTextBoxesFilled() Dim ok As Boolean ok = textbox1.text <> "" and textbox2.text <> "" and t ...Show All
Windows Forms refactoring to web service
I have a winforms apps that uses instances of domain-entity classes (i.e. Customer, Product, etc) to bind and set data. The forms use controller classes to obtain these references (i.e. GetProducts(), etc), and save (i.e. Save(aCustomer), etc.) The controller classes communicate these messages to data-access and processing classes. I would like to put in a web-services layer on top of the controller classes, and below the winforms. So, the winforms would not talk directly to the controller classes, but instead use web-services to send and recieve data. The web services in turn would use the controlle ...Show All
Visual Studio Express Editions Free Learning Videos on Express Web Site
I've been trying to view and download the free learning videos for Visual Web Developer Express and Visual C# Express. Of a total of 30 videos, I've been able to view and download 26, but 4 cannot be viewed in their entirety nor downloaded to completion. They are Visual Web Developer #2 and #4 (for C#) and C# Express #12 and #14. I usually get a "server was reset" error message, but have also gotten a worm alert message on the first file (VWB #2). A friend who uses a different ISP is also getting this same problem at exactly the same places in each file. Each file stops downloading at exactly the same place each time. He also go ...Show All
.NET Development Web Services passed by reference
The test *.asmx page that Visual Studo generates doesn't support invoking web methods which utilizes ByRef parameters. I have tried WebServiceStudio: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c Is "passed by reference" not a primitive type Why If the Web Services method is written with ByRef parameters, can it be called by other application that is not written in .NET , like java, without any problems yes it can be called from .NET client application. e.g MyWebService.MyWebMethod(ref ldsMyDataSet); ...Show All
Visual Basic VB2005 Book
Could anyone tell me what would be a good book to start I used vb6 in my last project. Is it ok to skip vb.net Please advice... Hello Paul. I have been using the book "Introducing Microsoft Visual Basic 2005 for Developers" as you suggest. However I am missing out because the code samples have gone AWOL. The suggested link is dead: http://msdn.microsoft.com/vbasic/VB6Migration Can you find them for me Thanks, Vernon. ...Show All
.NET Development Retrieve the value from two cells from a row in a dataGridView, C#2005Expr
Anyone who know how to retrieve the value from two cells when you click a row in a dataGridView so you can insert the values in two variables Observe! It doesn't seem to work in the way it did in earlier versions of VS.NET - I've tried but it didn't work (but from earlier experiences I know that's not a garanti tough). I know how to retrieve the value from the cell you click in, but since I have two key attributes in the table that's visualized in the dataGridView I also need to retrieve both values to be able to delete or update a row/tuple. Anyone who knows when Microsoft is going to hand out this kind of information Regards, //Nic ...Show All
SQL Server Could not create DTS.Application because of error 0x800401F3
I am trying to run an ssis package from a classic asp web page. if I run it from the command line it works as expected. dtexec /f D:\publish\mypackage.dtsx however if I try to run it from the web page - I get the following error: "Could not create DTS.Application because of error 0x800401F3" I am assuming this is a permissions error - can anyone help Can I run a dts package from classic asp Google the error code and it comes up with "Invalid Class string" or "invaldi ProgID" which means the COM component is not installed or registered. Check you ...Show All
Visual Studio 2008 (Pre-release) MediaElement.Volume = 0 not working ?!?
Hey! I’ve created a customcontrol where i set a MediaElement as a texture to a Viewport3D-object. What I would like to do is to set the it’s volume to 0 but it doesn’t work properly when i use... myMediaElement.Volume = 0 ...when initializing my object. Anyone that have had the same problem and worked arount it somehow I create everything frome codebehind using a MediaTimeLine, MediaClock, MediaElement if that help you guys to give me an answer cheers /erik I'm using a MediaElement in one of my project and I've got no problem.... Are you using myMediaElement.Volume = 0 in the MediaOpened ...Show All
.NET Development problem with dropdownlist
hi all in my application i have a drop down list to select date that is filled dynamically based on todays date and the next week and i use this code to fill it private void initializeDate() { DateTime date = new DateTime(DateTime.Today.Year,DateTime.Today.Month,DateTime.Today.Day); for ( int i = 0; i<7; i++) StartDateDropDownList.Items.Add(Convert.ToDateTime(date.AddDays(i)).ToShortDateString()); } the problem that i having is that the list is generated with the double number of dates it's supposed to have for example if it must have days 1,2,3,4,5,6,7 of april it is filled with days 1,2,3,4,5,6,7,1,2,3, ...Show All
Software Development for Windows Vista EventSinkActivity flow in Sequential Workflow
Hi ! I am successfully created a sequential workflow with more EventSinkActivities. Let's call them A1, A2, A3. The flow is A1 -> A2 -> A3. I noticed that if I raise the event for A2 before that for A1 nothing happens. This is OK, but as soon as I raise the event for A1 the earlier call to A2 is executed automaticaly afterwards. This means that some sort of queuing exist. I would really like to throw an Exception if someone tries to invoke an activity that is not the current one, or at least to cancel that call. Is there any chance to do that Many thanks Hi Arjun, thanks for your reply ...Show All
Visual Studio Express Editions How to add Visual Foxpro Database into Visual Basic Express 2005
I have just install Visual Basic Express 2005. Only database from MS Access and MS SQL can be link to this VB. Can any one tell me how to link to Visual Foxpro 6 database Thank you. There are several methods you can try. If you use the OLEDB provider you may have to download it: Microsoft OLE DB Provider for Visual FoxPro 9.0 Public Sub ConnectToFoxProODBC() Dim ODBCConnection As Microsoft.Data.Odbc.OdbcConnection Dim FoxProReader As Microsoft.Data.Odbc.OdbcDataReader & ...Show All
