Software Development Network Logo
  • Visual Basic
  • Visual C++
  • Windows Forms
  • Visual C#
  • Audio and Video
  • SharePoint Products
  • Microsoft ISV
  • Visual FoxPro
  • Smart Devicet
  • Windows Vista
  • IE Development
  • SQL Server
  • VS Team System
  • Game Technologies
  • Visual Studio

Software Development Network >> pcesarfe's Q&A profile

pcesarfe

Member List

Reuben
gpugelni
Eric Jensen
Ravie14
Nikolay Surdo
ggsubscribe
Forch
AlexBB
KAAU
SOAC
stswordman
Pretpal
todd_bulky
DavidIr
KitWest
Kanhaiya
BrollyLSSJ
Reuben
thechristopher
Velen
Only Title

pcesarfe's Q&A profile

  • Visual C# New C# Keyword - retry?

    I believe that C# could benefit from extending try-throw with retry keyword. Simple example of this would be: try { PerfomAction(); } catch(Exception ex) { DialogResult dr = MessageBox(ex.Message, "Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Question); if(DialogResult.Retry==dr) retry; // Jumps to the begining of try block } IMHO: This makes for cleaner-looking and less bug-prone code than the alternatives with goto or loops. Since the windows SEH exception handling mechanism is a two pass system you could even do something like this: object o = null; void DoSth() { o.GetType(); } void f() { try { DoSth(); } retry { o = new ...Show All

  • SQL Server Oracle and unicode

    Since the .net oracle providers are the only ones that work in x64 it is extremely annoying that it insists on mapping ALL varchar columns in oracle to wstring. Is there a way to fix this The oledb providers don't have this problem but I don't like being forced to use the 32 bit runtime as a workaround. I remember that this has already been discussed: I was told, that all .NET providers return UNICODE text. You have to do an explicit data conversion with ALL your fields. @Donald Farmer: Since you've said, that when developing SSIS it was meant to avoid implicit data conversion due to performance issues you've had with DTS, I'm wondering how this paradigm copes with this @Brent: Sorry I cannot help... ...Show All

  • .NET Development Error opening a sample .mdf database

    I'm going through some examples in a book. It included a sample SQL .mdf database named Books.mdf. I was creating a 'secure' asp.net database application using forms authentication. Once authenticated you see a page that has a dropdown list bound to an ObjectDataSource that is tied to a table adapter. The user selects an author from this dropdown list and a list of books show up in a GridView control, also tied to an ObjectDataSource tied to a table adapter. Anyway, before writing the database portion, I tested the login portion and it worked perfectly. Now, when I login, the next page should display that dropdown list, but instead I get the following error. I don't have any database named 'master' and have no idea where thats comi ...Show All

  • Visual C# Visual Studio stops responding using CDATA within Comments

    I'm running Visual Studio for Software Developers on Vista. I've installed Service Pack 1 and the beta for }Vista. Has anyone else experienced a problem when trying to create an xml comment in a .cs file such that Visual Studio stops responding and begins to eat all the memory on the system until it crashes public partial class WebUserControl : System.Web.UI.UserControl { /// <summary>asdf</summary> /// <example> /// <code><![CDATA[]]> /// </code> /// </example> protected void Page_Load(object sender, EventArgs e) { } } As soon as I try to add some HTML in between the [] in the CDATA, Visual Studio falls on it's sword. Am I alone here ...Show All

  • Windows Forms Visual Studio 2005 Service Pack 1

    What I want to know is when can we expect the desperatly needed service pack 1 for Visual Studio 2005 I've had so many errors so far when working with the Windows Forms designer, it is not only VERY frustrating and wasting my valuable time, but, it is also embarrsing when my projects and clients are being delayed because of a low quality tool. I expected higher quality standards from Microsoft! Don't get me wrong, I love .Net and especially version 2. It's just getting so frustrating to experience these errors in Viusal Studio and then red about them on the web to find out that I'm not the only one experiencing them and nothing is being done so far to come out with fixes or a Service Pack! WHERE is Servic Pack 1 When can we expect ...Show All

  • Visual C++ C++ code compiled with Visual C++ 2005 Express runs slower from the IDE

    I have noticed that my code runs slower when invoked from within the IDE. The debug code runs a small job in 21 seconds from the IDE (no breakpoints set) and in 6 seconds when invoked from Windows explorer directly. The release code runs in 11 seconds from the IDE and 1 second when run directly. For comparison, I tried the same code generated by Visual C++ 6 and got 14 seconds when running from the IDE and directly. Is there some setting that affects this I could not find any. Is this normal behavior for this version of Visual C++ Thanks, Peter Yes, I believe it is normal behavior. (I assume you are talking about running in debug mode rather than Ctrl+F5, since you mentioned breakpoi ...Show All

  • Visual Studio Simple question

    Is there a way to prevent msbuild to clear the screen in the cmd window when it starts We need to see the output from previous tasks. Is a command window msbuild does not clear the console when it is run in a command window. What may be happening is that your screen buffer is too short (the default is 300 lines which in a build is very short). You can increase this number by right clicking on the title of the command window, going to properties then layout, then setting the Screen Buffer Size height to something larger. ...Show All

  • Visual Studio 2008 (Pre-release) DateTmePicker control

    I try to insert DateTimePricker control value (VB Net) to Sql server data base CType(DH_DateTimePicker.Value, DateTime) I received the next message: System.Data.SqlClient.SqlException: {"Incorrect syntax near '.2006'."} Can explain me the message Thanks! George If you look at the strSQL after the assignment statement, what do have in it Try to execute the same SQL statement from the SQL Server Management Console (if you're working with SQL2005) or Query Analyzer if you're working with SQL2000. Do you get an error Guy ...Show All

  • Windows Live Developer Forums local.live.com Interface

    Does anyone know of any resources to build an interface within VE similar to the local.live.com interface The site has a full screen VE control with menu panels that collapse / expand, icons linked to menu panes, links to routes etc. I really like the it and can see the logical step with custom VE applications is to move to this style of interface. Is the interface code for local.live.com available John. Glad you like it. :) Local.live.com is, of course, Microsoft's customer-facing application that uses the VE control. As such, the code isn't publically available. Many of the nifty UI stuff has been duplicated (perhaps enhanced ) in several other mashups. Not to single out any one mashup too much, the http://atlas.freshlogicstudi ...Show All

  • Visual C++ How to overload the ">>" operator for a user-defined type

    Hi, I have a Location class in my project, and I need to read a Location object by using cin >>, eg: Location locationObject; cin >> locationObject; I'm wondering if there is a way to overload the >> operator for a user-defined type like this. I trid to code the overloading method: istream& operator >> (istream& is, const Location& addLocationObject) { return is >> addLocationObject; } The compiler does not complain, but there is a error at runtime when the >> operator is called: "Unhandled exception at 0x00414219 in C++Project.exe: 0xC00000FD: Stack overflow." and it's pointing at the second line of the method above. Any suggestion Thanks in ...Show All

  • Visual Studio Express Editions nooobi

    hi , i'm new to c# just moved from java ,what is c#'s equivalent to java's URLREADER (the class that enables me to grab a remote webpage from within the applet) thanks in advance well the above suggested solution would do this. You could implement a WebBrowser control and implement the document_completed event which will fire when the webpage has been loaded then do whatever you want but again you stated that you didnt want to perhaps use a web browser. I dont think you can trigger an onclick event when the file starts to download. The webbrowser control does have an event called filedownload and this will fire when you click on the file to download ...Show All

  • Windows Forms How to best update program

    Hi My program consists of a exe-file and several .dll-files. To install the program I've created a setup-project. If I later on updates my files (exe and/or dll), how should I implement the update-routine 1. Make another Setup.exe (uninstall / install) 2. Manually copying the files Kind Regards The recommended way to update an application deployed with a Visual Studio setup project is to rebuild the project after incrementing the setup project's version and setting RemovePreviousVersions to true. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. About XNA GS Release

    At FIU we a Special Interest Group (SIG) that specializes in game and graphics programming and will be upgrading some of our lab machines (hardware and software) for next semester to start designing games using XNA.  We've got a few questions that I'm sure have been answered or talked about before, but many are months old  (at least the ones i've seen). And I'll like to make sure what the current status was regarding XNA GS. 1. When will the final release of XNA GS (Express and Pro) come out I've seen a date flying around but i'll like to make sure. 2. Will the Express edition support Visual Studio Pro. The last blog I saw about this was from October 10, maybe t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. (Clip) Plane transform?

    Hi all -- I'm porting a water shader to XNA, but first I need to get my clip planes right. I noticed we still need to unproject the plane from camera space to world space, but I cannot find a method that actually allows to transform a plane! Like the MDX Plane.Transform method used to do. I tried to transform 3 world points with the inverse of my world*view*proj matrix, and create a plane including these points, but no luck. There was a bug introduced into the Beta 2 Plane(Vector3,Vector3,Vector3) constructor. It doesn't correctly initialize the plane, so you'll need to calculate it yourself. Here's some code for how I do (you may need to change the order of the vertices for your own program): public static void CreatePlane(re ...Show All

  • Software Development for Windows Vista Unable to open workflow in VS.NET 2005

    Hi all, I'm having problems opening a workflow in VS.NET 2005. I can create a sequential workflow project without any problems, but when I double click on the Workflow1.cs file to open it, I get a dialog box with an error saying: Method 'GetSelectedPropertyContext' in type 'Microsoft.Workflow.VSDesigner.ExtendedUIService' from assembly 'Microsoft.Workflow.VSDesigner, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. I have the following installed on the machine: Microsoft .NET Framework 2.0 Microsoft .NET Framework 3.0 Microsoft Visual Studio 2005 Professional Edition - ENU Visual Studio 2005 Extensions for Windows Workflow Foundation Windows Workflow Foundation SDK RC I also get ...Show All

©2008 Software Development Network