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

Software Development Network >> Michael Purvis's Q&A profile

Michael Purvis

Member List

cjg6300
Joshizzle
Stephen Turner
mertkan65
Kanhaiya
Paul Stovell
Sameep
Joel Hensley
GiriKrishna
beechum1
VoiceOfExperience
dgolds
etcheverrjc
kenlefeb
Karim Hemani
Josh Smith
sitha
karen_tgha
Prashant_Rai
peterng
Only Title

Michael Purvis's Q&A profile

  • Visual C++ Impersonate user (seteuid/setegid for Windows)

    Basically, I'm new to these forums, so I apologize if I am posting this to the wrong place. I am currently porting over code that was written for Linux that utilized the seteuid and setegid functions.  These functions allow a high privileged user (root) to impersonate a user/group when trying to run certain system-level functions. Basically is there something like these functions that exist in Visual C++    I'd like to be able to call functions, like requesting to delete a file, while impersonating a user.  I'd like to do this without having to run the process as that user.  This way, I could perform the same function over and over using different user profiles, if needed. Please let me know if this makes sense ...Show All

  • Software Development for Windows Vista Per Pixel Alpha subthemed controls

    New to Vista themes is visual styles that have perpixel alpha values. In my various incarnations of apps testing theming in Vista, I've started with a button on a Windows Form, subtheming it to a StartMiddle button, which works as expeted (the start menu image appears in the middle of the button area, the edges of the button image fade with the background, and the rest of the button area is invisible). I then created a glass pane (no frame, useing DwmBlurBehind), and then drew the TaskbarComposited::Taskbar background on top of the window, which then emulates exactly the feel of the taskbar itself, with it's blurry glass effect, with the taskbar image partially transparent. I also had a button subthemed to StartMiddle, and it appeared exac ...Show All

  • .NET Development Execute desktop .exe from asp.net 2.0

    I want to execute desktop .exe file from asp.net 2.0 I using Shell method to calling it but it's not show on desktop and it show in task manager under "Network Service". Thank you. HI. This guy has not responded but I am interested to do just this. I understand it is in fact by design but how to get around it A library dll to run it for the webapp is still of no use. I an building a VNC "switchboard" app for my schoolteachers to use to select a workstation from a webpage. I can pass all the commandline stuff to show that desktop no sweat, but it is of no use at all if the user can't see it. I would appreciate any ideas here. Thanks Keith ...Show All

  • SQL Server backup job quits without any errors

    Hi I have a job which is executed via SQL agent -it attempts to backup each database.. The only problem is that it terminates about 1/2 through (not always at the same spot) - there are about 80 databases on the server No errors are logged.. Where do I look next The commands executed are as follows: -------------------------------------------------- DECLARE @DB_Name varchar(32) DECLARE @Backup_Path varchar(255) DECLARE @Backup_Name varchar(255) DECLARE DB_Cursor CURSOR FOR SELECT NAME FROM sysdatabases OPEN DB_Cursor FETCH NEXT FROM DB_Cursor INTO @DB_Name WHILE @@FETCH_STATUS = 0 BEGIN IF @DB_Name <> 'tempdb' AND @DB_Name <> 'model' BEGIN print '--------------------------------<< ' + ...Show All

  • Visual Studio Team System TFS26201 This workitem has unsupported fields, or user does not have permssions

    Hello, I created a workitem and it imported correctly. I removed some fields and changed states and transitions. I can create the workitem but when I try to pass from one state to another, I got that error. From state Implementado to State-- No cumple or From state Implementato to State -- Revisado Interno. I am going to paste the section of states and transitions. <WORKFLOW> <STATES> <STATE value="Propuesto"> <FIELDS> <FIELD refname="Microsoft.VSTS.Common.ResolvedDate"> <EMPTY/> </FIELD> <FIELD refname="Microsoft.VSTS.Common.ResolvedBy"> <EMPTY/> </FIELD> <FIELD ...Show All

  • Software Development for Windows Vista Xaml only UIElement and the Ruleset Editor

    Hi, Does anyone know if it is possible to create a ruleset for a xaml only ui element (i.e. it has no code behind) I can serialize and render the xaml but would like to apply some simple rules to the element content (e.g. a value in a field has been supplied) If anyone knows the answer or can point me in the right direction I'd be grateful. Trev Trev, This appears to be a WPF question, since you're talking about UI, and fields being completed on the UI. Although WF and WPF both use XAML serialization, they interpret the XAML differently. I suggest that you ask your question on a WPF forum. Dave ...Show All

  • Visual Studio Team System TFS and AD/AM in NT4 Domain

    Hi All, i was hoping i could get some direction, I am trying to install TFS2005, however we only have an NT4 domain, I know TFS doesnt support NT4 domains, however is there a way to get TFS2005 to use AD/AM within an NT4 domain I know the requirement for AD/AM was removed from Beta 2 onwards. Thanks in Advance for your help See my recent post here for some information on installing using local accounts. Hope this helps- Cheers, Adam ...Show All

  • .NET Development WriteXML

    Hello.  I have a dataset that I filled with data and I want to write it to an xml file.  I know how to use the dataset.writexml() command and it does not output the data exactly like I need.  The xml output contains the xml declaration information and the dataset name as the root node.  I do not need these.  I found out how to remove the xml declaration with the following code: Dim xws As Xml.XmlWriterSettings = New Xml.XmlWriterSettings() xws.ConformanceLevel = Xml.ConformanceLevel.Fragment xws.Encoding = System.Text.Encoding.Default xws.Indent = True xws.IndentChars = " " xws.OmitXmlDeclaration = True Dim xw As Xml.XmlWriter = Xml.XmlWriter.Create( "c:\aa.xml" , xws) ds.WriteXml(xw) ...Show All

  • Visual Studio How can I get IHtmlDocument for the VS internal WebBrowser

    How can my Add-In access the HTML DOM of WebBrowser windows, e.g. the windows of the internal help. I don't want to access Document/Editor HtmlWindow Objects. The Type of the help WebBrowser window is allways shown as "__ComObject". Does it mean there is no way to get an interface Thanks Carlos for your reply, it's a usefull link but not what I am lokking for. It's my mistake, but it's mostly hard for me to find the right words in english. I've edited my post and hope my request is clearer now, please bear with me. ...Show All

  • Visual Studio Express Editions Textbox

    Hi, I want to do a program with a textbox and a button, when I press the button the Ibeam in the textbox goes do the next line, like we do when we press in the enter button. How do I do that Thanks Drop a textbox and a button on a form and paste this code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load With TextBox1 .Multiline = True .ScrollBars = ScrollBars.Vertical .Height = 130 .Text = "nobugz" + vbCrLf + "waz here" .SelectionStart = 0 End With End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click '--- Move to next ...Show All

  • Visual C# Creating visio like behaviour in C#

    Hi All, I would need to create an application that sort of behaves like visio in a way that allows users to drop objects to screen and than connect them with lines. Also the objects on the screen may contain another objects within them (simmilar to folders/sub-folders and files) There would be two basic types of objects: 1. Containers (able to contain multiple Conatiners or Simple objects) 2. Simple objects (able to be connected to multiple other Simple objects or Containers) Does anybody have any idea on where to look for more help Cheers, Hi man, Thank you for replying, I've lost every hope that someone will be able to help. Your project looks like excatilly what I need to do, container would be just ...Show All

  • SQL Server Updating Database User SID in SQL 2005

    Hi all We're currently undertaking the development of our first SQL Server 2005 database and we've stumbled across a problem with our method of deployment from Development through System Test, UAT and, finally, to Production. Under SQL Server 2000 we would build a new database in Development and assign permissions to a specific database user which was linked to an appropriate Windows Login - the whole build process was scripted. We would then hand the mdf and ldf files over to the Operations team who would attach the database to the System Test server, create a new Windows Login (appropriate for the environment), then run a script which would update the SID stored against the database user to the SID of the appropriate login. e.g ...Show All

  • Visual Studio Express Editions Checking for existing data using txtbox entry.

    Hi all, I am using VB express. I have created a customer database program attached to Sql database with a customer table, and column names CustomerCode, Name, Addra etc. On the customer form I want to be able to enter a customer code in the CustomerCodeTextBox, if there is a row in the data with a matching code I want the program to show that row, if not add a new customer using the customer code I have entered. I am new to Programming so I hope I have given enough info. Hope someone can help, i'll have no hair left by Saturday!!!!!! Many Thanks. I think i have finally got there thanks for your help!!!! i have added the sql statement in the dataset designer and added this code to the ke ...Show All

  • SQL Server Cannot access DB as a non-administrator

    Hello, I use SQL Server 2005 Express and VB.Net for my client server application. From a client machine, if the user is logged on as Windows Administrator, my application connects to the database server just fine. If the client is logged on as a non-administrator, then my app cannot connect. Here is my connection string: "Server= ServerName \SQLEXPRESS;Database=DBName;Trusted_Connection=True;Connection Timeout=30" I use TCP/IP. How can I fix this Any help will be appreciated. You need to grant the non-admin user login rights to the SQL Express instance. You'll need to connect to the SQL Express instance using an admin account first, then "CREATE LOGIN ...Show All

  • Visual Studio Express Editions Form Selection

    I have a small project that I am working on, On do a SQL search for phone numbers. My actuall question is: When I get my result from the search I want to have a form window popup or popup tab(prefered) depending if the result is either a CELL, Cell Modem, Deskphone, Office phone etc. If this is possible(which I beleave that it is) how would I accomplish such an easy task Simply look at the data being returned and based upon the value of this, determine which form/tab to display. This example takes the initial value from a textbox content instead of a SQL search but ultimately depending upon the content loads and form and selects a tab You should get the general idea and simply bolt you sql search result at the top. P ...Show All

©2008 Software Development Network