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

Software Development Network >> Mark Cosgrove's Q&A profile

Mark Cosgrove

Member List

kiwijason
doczap
duck thing
ASKavya
cbpd86
Al33327
djchapin
Carl-Otto
Dee_dotnet_79
smithmx
Bloom326984
TapasChoudhury
sathish_indian
JGttttt
Dr. Pizza677
Blackuke
Aaron Silverwatch
Dave Koehler
Colin Reid
canaux
Only Title

Mark Cosgrove's Q&A profile

  • Architecture role based vs code based

    I need to know general recommendation on whether we should should use role based or code based security for following type of .net applications: 1. Stand alone application 2.Enterprise application 3.B2C application 4.B2B application As per my understanding we should use Role based in last three cases.Code bases should be used in first and last case(if we are using webservcies). Your comments!! Regards Maybe I am misinterpreting your question, but do you mean role-based vs. code-access security (CAS) If so, they are different animals and can be independently employed in any kind of application based on your needs. Role-based security is based on *who* the user based on the authenticati ...Show All

  • Visual Studio 2008 (Pre-release) CommandBinding Issue I cannot seem to resolve.

    I have a custom command that I call from a menuitem in a context menu. I have the commandtarget set to and expander control but when I run the app the commandtarget is always null and the target defaults to the application window. Here is the pertinent code. If anyone has any idea what I am doing wrong I would appreciate some guidance before I pull out all of my hair. Thanks. The Header < Window x:Class = " Client.ClientWindow " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:commands = " clr-namespace:Client " > The binding < Window.CommandBindings > < Comm ...Show All

  • Visual C++ Releasing memory in mixed-mode .Net environment problem

    In a .Net application is the finalizer for each object in the GC heap guaranteed to be called before the memory in the C++ heap is automatically reclaimed The reason I ask this is that I have a private ref class component which creates an object of a C++ class in its constructor and deletes the C++ object in its finalizer. The finalizer is also called from its destructor. An object of this private ref class is created by a public ref class component in the same assembly. When the code in the public ref class component did not specifically delete in its destructor the object of the private ref class, which seems perfectly legal but perhaps not best since it is the equivalent in C++/CLI of not calling Dispose(), the finalizer of the private ...Show All

  • Smart Device Development ActiveSync connection detection using RAPI.

    Hello. I found an example how can I detect connection mobile-pc with ActiveSync without second thread working and using only notification. I read a lot about RAPI and I found an example from book. But there is a strange problem which I don't understand (I know what it means but I don't know how to resolve it). When I use CoCreateInstance() procedure in Init() it always return an exception (Incorrect parameter). Here is the code (it comes from .NET Compact Framework Programming with C# and .NET Compact Framework Programming with Visual Basic .NET_ Authored by Paul Yao and David Durant. - if I broke some rules please delete it) : // File Name: RapiConnectDetect.cs - Creates an ActiveSync COM // object of type IDccMan and an Advise Sink o ...Show All

  • Visual Basic Colour Combo Box

    Hi, How do i get a combo box to display system colours As i am using it so the user can select the background colour for a graph. I have tried colourcb.text = color() but this produces an error any ideas Andy Sorry i am new to VB so don't know all the default dialog boxes available. Is there a list with all the dialogue boxes some where How would i use the colour dialogue box just place a button the type = colour dialogue Andy ...Show All

  • SQL Server dll in c# sql 2005

    I wrote a class in C# with one method that returns a string. I built the dll and deployed it into sql 2005 and everything works just fine. I am now in a situation where I need to use this function in SQL 2000. Is there any way that I can use the existing dll and create a sql 2000 function, and if so how do I go about doing this Here is the c# code from the deployed dll. using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.Text.RegularExpressions; public partial class GECBI { [Microsoft.SqlServer.Server.SqlFunction(IsDeterministic = true , IsPrecise = true )] ...Show All

  • Visual C# The process cannot access the file **HARD ONE**

    Ok, This is a hard one...For me at least. I have a jpeg image that is being used by a picturebox in my windows form. During the duration of my program, I need to let the user replace the file that my picturebox uses an an image. I recieve the following error: Additional information: The process cannot access the file "C:\Documents and Settings\Ryan Barger\My Documents\Visual Studio Projects\WindowsApplication1\bin\Debug\workingDirectory\images\CRMImage[1].png" because it is being used by another process. I have tried disposing the image prior to replacing the file. Is there a way to close the file that was being used by the picureBox so the file can be replaced Thanks! I assum ...Show All

  • Software Development for Windows Vista Pattern for updating custom Activity Properties without completing Activity

    Hi Most activities in my workflows are human activities and are therefore event-driven. The workflow blocks at each new activity waiting for a user to click "Complete" or "Approve" in the application GUI. These activities have a number of common business-logic properties, encapsulated in a custom base class. Example properties are: TargetCompletionTime, Priority, RequiresApproval etc. The values of these properties are tracked using TrackingExtracts and custom TrackingProfiles. This allows me to query the tracking service for the current state of my activities, including the values of the custom properties. The complication is that I need to be allow my users to update the values of these activity properties at any time without closing the ...Show All

  • Visual Studio Team System About the SP1s!

    I don't understand why there are two service packs released. It says one is for Team Suite and the other is for Team Foundation Server. So I'm supposed to install both on the client machines (since all the client machines have Team Foundation Server Client installed on them) or am I supposed to install the SP1 for the Team Foundation Server on the server itself In other words is the TFS SP1 an upgrade to the server or client part of TFS Thank you, Sammy Okay; which brings me to another question; should I uninstall the previous one first I don't see any reference to that in the readme! Thank you, Sammy ...Show All

  • Visual Studio Express Editions open new outlook email window in program

    Can anyone point me in the right direction on how to click a button and open and MSOutlook new email window. I would also like to program to add an attachment as well. Thanks Thanks so much for the help. I think maybe what I'll try in to open a dialog box with the folder of the files to attach. The user has the extra step to drag the file over but its not too bad. ...Show All

  • SQL Server Authentication issue

    Hello I'm using RS 2000 and although Windows Authentication has been selected on the website and the "Reports" virtual directory, when I browse to localhost/reports I get the report manager with only Home on it and a very limited menu bar whixh exists of home, my subcriptions and help. I can't see any folders. What am I missing Thanks! Are you connected to some corporate network or it is stand alone PC Are you in the Admin group on that machne if not add yourself to the Admintrators group it should solve the problem. ...Show All

  • Visual Basic How to link buttons and textboxes, to do the same thing?

    I have some tab's, and need to link some buttons and textboxes at different tab's. Is there a way to do it, other then doing it by code What do you mean by "link" DO you want something in common to happen when you click a button or go into a textbox Yes you can do those things but it must be done in code ...Show All

  • SQL Server SqlTransaction.Rollback timeout

    Hi, Are there any rules of thumb or guidelines regarding use of transactions I've been using transactions to ensure a group of operations, like inserting records in several tables, work or fail in an "atomic" fashion, and it works beautifully and seemingly (I haven't measured!) without any big performance penalties. However, we have some logic to export and import data between database instances, and when importing we use a transaction in order to enable us to restore the prior state of the database in the event that the import goes haywire - or even that the user decides to abort it halfway through. I don't know if this is such a hot idea though. A single import involves dropping numerous triggers, executing up to sever ...Show All

  • Windows Live Developer Forums can i use the net feature of c# in the msn plugin

    i know, for security reasons, the plugin is kinda limited. so i wonder if i can use the c# net features to access some http link and show the web page's content in the signature area of the current user thank you. Read this post ;-) ...Show All

  • SQL Server SQL Find DUplicates query

    Hi all, i can find duplicate emails in my table like this select ExistingEmail, count(ExistingEmail) as cnt from YM_Email_Updates group by ExistingEmail having(Count(ExistingEmail)>2) but that groups and returns the email address and the NO of duplicates which is good. Is there a way to modify this query to actually return the ENTIRE row (not just the one column) would it involve including this query as a subquery. Ideally id like to return all the columns of all rows with duplicates but this query only returns the email address. I have tried adding the other cols and including them in the grouping but it does not work . TIA, mcm unfortunately it did not. i think i need to do a subquery to populate a temp fie ...Show All

©2008 Software Development Network