Software Development Network Logo
  • Visual J#
  • Architecture
  • Visual Basic
  • Windows Vista
  • Windows Live
  • SQL Server
  • Windows Forms
  • Visual Studio
  • Visual FoxPro
  • VS Express Editions
  • .NET Development
  • Game Technologies
  • Microsoft ISV
  • Visual C++
  • Visual C#

Software Development Network >> michael.e.obrien's Q&A profile

michael.e.obrien

Member List

smeets116
staeudel
Steve Fu
Adrian Crawford
nielsvdcp
cwright
Dean Wagner
Zentik
MarcusLCox
Dmitriy.Vasyura
Peter Nowak (Germany)
Raj L N
Npotnis
Les Smith
Joer1970
DGKol
meweaver27
sun21170
CodeCharmer
Rajib
Only Title

michael.e.obrien's Q&A profile

  • Visual Studio Team System FxCop 1.35 RC1 - SuppressMessage for IdentifiersShouldBeSpelledCorrectly

    Is it possible to suppress all violations for a given word using a single module-level SuppressMessage attribute For example, if I use the unrecognized word "Foo" in several places in my code, e.g.: public int AddFoo(Foo f) { ... } public void RemoveFoo(Foo f) { ... } I would like to suppress the IdentifiersShouldBeSpelledCorrectly violations for all instances of "Foo" with a single module-level SuppressMessage attribute. I tried the following but it didn't work: [module: SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Foo&q ...Show All

  • Software Development for Windows Vista Serialize and deserialize a workflow with RuleConditionReference in IfElseBranch

    Hi, if I try to serialize (using the markup) a workflow with a RuleConditionReference in an IfElseBranch activity, in the resulting xoml file I find only the name of the RuleCondition. Now I need to serialize and deserialize also the RuleConditionCollection in which the RuleCondition is defined. How can I do it The RuleConditionCollection is serialized to workflow1.rules.  You should find: < rule:RuleConditionCollection xmlns:rule = " RuleConditions "> Regards, Paul ...Show All

  • Windows Forms Newbie Layout Question

    i am trying to develop a sample WinForm application. I want the application to have a list of links down the LHS which will act as my menu. Whenever a user clicks on a link, I want the RHS of my application to refresh, showing the new content that they have selected. My background is in web development, but for an ASP.NET application I would most likely develop a page with 2 frames. In Frame 1 I would load in my menu page and in Frame 2 I would load in a new content page whenever a hyperlink was clicked...etc...etc... When I first started my WinForm application, I reasoned that it would be a good architecture (code-separation wise) to ...Show All

  • SQL Server Puzzled by concurrent update

    I have a puzzle in my mind here. I will thank anyone who can solve my puzzle. I am not familiar with SQL and its theories behind, so please bear with me if I am asking a stupid newbie question. My puzzle is generally a problem of generating sequence numbers. The following SQL is only a stripped down version - it fetches the max number, add 1 to it and updates the table with the new number. DECLARE @max int SELECT @max = MAX(next_number) + 1 from sequence_numbers UPDATE sequence_numbers SET next_number = @max WHERE next_number = @max Now if user1 gets 100 and user2 also gets 100 and they both try to update the tabl ...Show All

  • Visual Studio Debugging multi-threaded operations problem

    You'll love this one... I've ran into a rather odd problem, both in the application I'm in the process of developing and in a test project I threw together just to replicate the issue. When debugging code that is run on a thread other than the main execution thread the non-main thread will exit for no apparent reason. Here's the kicker... It only happens if you have the autos variable window selected i.e. the problem will not show if you're viewing the watch list. Here's how to replicate: Visual Studio 2005 Standard 8.0.50727.42 1 Create a new Windows Application for C#. 2 Create 1 button. 3 Use the following for your class code. public part ...Show All

  • SQL Server Cannot create a report - VS 2005/SQL 2005

    I cannot seem to create a Report based on an SQL Server 2005 database. The IDE and the database server are on the same machine. The reports server is installed and running. During both installations (VS and SQL Server 2005 ) I opted for the complete install. I create a reports project - when I right click the reports folder and select Add New Item > Report - nothing happens. When I invoke the Report wizard and continue till the last step - pressing finish generates the following exception : =================================== Exception of type 'System.Runtime.InteropServices.COMException' was thrown. (Microsoft Visual Studio) ---------- ...Show All

  • Visual C++ Copy contents of int to float

    I'm trying to copy the contents of an int variable into a float variable... In native code I could just do a memcpy, but I'm having trouble figuring out how to do it with the new .NET code in Visual Studio 2005. So for example, I have an integer value of: 1073741824 or 0x40000000 in hex, and I want it to copy it into a float variable thus having a value of 2.0. Basically I want to preserve the bits, but have the variable be a different type. I don't want C++ to do any conversions behind the scenes for me. You could use a union. As an example, the following C++/CLI code outputs "2": union IntFl ...Show All

  • Smart Device Development Getting Owner Name

    I know I've seen this but for the life of me, I can't find it. Does someone have a small snippet that gets the Owner string Thanks as always! You can do it through State and Notification broker APIs. Here's C# snippet: using Microsoft.WindowsMobile.Status; .... owner = ConvertToString( SystemState .GetValue( SystemProperty .OwnerName)); There are native counterparts too. In SDK help look under Developer's Reference->Managed Code->Microsoft.WindowsMobile.Status Developer's reference -> NativeCode->State and NotificationsBroker Hope this helps. Thanks, Preethi ...Show All

  • .NET Development SSL/TLS exception when using HttpWebRequest with client certificate

    Hi, I wrote following code to call a aspx page in code (from another aspx page): HttpWebRequest httprq = ( HttpWebRequest ) HttpWebRequest .Create(uri); string certificateName = "SoapProxy2" ; X509Store store = new X509Store ( StoreName .My, StoreLocation .CurrentUser); store.Open( OpenFlags .ReadOnly); X509Certificate2Collection certificates = store.Certificates.Find( X509FindType .FindBySubjectName, certificateName, true ); X509Certificate certificate = certificates[0]; httprq.ClientCertificates.Add(certificate); httprq.Method = "POST" ; httprq.ContentType = "text/xml; charset= ...Show All

  • Visual C# asp email funtion

    Hello I am having trouble with my email funtion in asp. I can get it to email if i hard code the address into the coding. However I want to use a email address that a user submits into a form and when the submit button is clicked then it emails the user with some text verifying there order was submitted. Here is the code: Dim MyMail MyMail = CreateObject( "CDO.Message" ) MyMail.Subject = "Work Order Reciept" MyMail.From = "infosystems@dhiusa.com" MyMail.To = "" <-------------This is where I want there email to automatically go after the user has typed it and when the submit bu ...Show All

  • Visual Studio Crystal report using dataset read prompting for database login on a deployment machine

    Hi,   I created a windows application that reads data from ms-access database using OLE DB connection. I used push method (filling dataset and adding dataset to the report object). Everything is working fine on my development machine.       I included merge modules during build process and created msi. When I installed the app in a different pc, the database login screen pops up with already filled in server name (that is, database path). I tried with userid and password that was already in connection string. And it comes up with a message "Login failed. Try again". I added message box r ...Show All

  • Windows Forms Copy one DataTable to another DataTable?

    Hi, How can I copy selected columns from one DataTable to another  This should be easy, but I can't seem to figure it out. Beener Hi, Why dont you just copy the datatable and remove the rows you need -Edward ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Tint a sprite red

    I've had good success in tinting sprites a certain color by using this code: _sprite.Draw( _texture,  new Rectangle( 0, 0, (int)_width, (int)_height ),  new Vector3( 0.0f, 0.0f, 0.0f ),  new Vector3( (int)_left, (int)_top, 0.0f ),  Color.FromArgb( 255, 255, 128, 128 ) ); // Reddish tint The problem is, black parts of the sprite don't change at all, which is really bad, because some of my sprites are silhouettes; and are therefore completely black - and they aren't effected by the red tint at all. I need a way to tint the while thing red; black parts included. And because parts of the sprite are transparent, ...Show All

  • Visual Basic VB6 to VB.NET Migration

    Hi, I am trying to migrate VB code to VB.Net. At the time of migrating a form(the VB project contains so many Forms)it is showing following error. Run-time error'-2147467262(80004002)': System Error &H80004002(-2147467262). No such interface supported Can anybody tell me where exactly the problem is... Thanks, Ravi Varma. Sup Ravi... When you start the wizard, does it migrate any other forms I had a problem with just 1 form once (I also have like 20 frms on my project), so what I did is that checking the progress of the wizard I saw the form with the problem, I removed it from my application, then migr ...Show All

  • Visual Studio Team System Incredibly (astronimically) slow performance on new RC of TFS

    We upgraded from beta3 to RC on TFS. Also ran the 2.0 hotfix. I uninstalled the client (had no instances of vs2k5 running) and installed the new RC team explorer client. I also installed the 2.0 hotfix on my local computer. Now the SQL server runs on 100% load.. 'TfsVersionControl.dbo.prc_QueryItemsExtendedLocal;1' is running It loads the solution fine to a certain point, but then freezes. Getting latest from team explorer goes fine. Branching is successful, opening the branch, however, was not successful. It resulted in the same kind of freeze / cosmic slowness. On 1 out of 10 times, I managed to load the solution. From there it was fa ...Show All

©2008 Software Development Network