Kane_Hart's Q&A profile
Software Development for Windows Vista How to get SeBackupPrivilege in a deferred custom action EXE?
I have encountered a privilege difference in Windows Installer between XP and Vista RC1 which makes our installation fail. I have searched for an explanation and workaround but haven't found anything so far. This is NOT a UAC issue: the difference in privileges is there even when UAC is off. The Problem: In Vista RC1, a custom action of type 3074 runs WITHOUT having the SeBackupPrivilege privilege. The privilege is not there so it is not possible to enable it using AdjustTokenPrivileges. (Type 3074 custom action is an EXE that runs from a temp file using deferred execution in the Local System context.) In XP SP2 and earlier versions of Windows, this custom action has the SeBackupPrivilege privilege so it is possible to enable it u ...Show All
Visual C# Representing playing cards
Ok I am new to programming obviously from this question. I am looking to make a blackjack card counting program, for reasons to help learn the syntax. Now my question is how will I go about representing playing cards How should I define each card How should I build the the playing card deck: an array, hashtable, enum Yeah I know I gotta sit down and write this one out, but the problem is I don't know how I should represent each card. My problem is I can't think of a way to represent a card with its proper suit. ...Show All
Visual Studio Team System Visual Studio hangs on source control operations
Hello, I'm having a problem where several TFS source control operations result in Visual Studio becoming (almost) unresponsive. If I try to "Add selected projects to source control" or add an item to a project that is in tfs source control VS first shows the progress dialog and after the operation is complete VS doesn't respond to commands. When I "end task" VS and start again the operation has been completed. It's like the problem reported elsewhere where a modal box is shown off screen. The UISettings.config on my machine, however, seems to be ok. When in this state I can close open documents by pressing Ctrl-F4 and browse windows with Ctrl-Tab but do virtually nothing else. I have disabled all add-ins (Class designer ...Show All
SQL Server select inside update query?
Is it possible for me to do something like update table1 SET var1=something,var2=something2 from table1 (SELECT * from table2) as newtable where newtable.field1=acondition OK, the query (although not correct) also makes no sense to me. What are you trying to achive, try to explain the query you want to write in words. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista Another Problem with Tutorial Lab03/Ex02/Task02
The main code is as following. I can say my connectionString is Correct, as I have retrived the data successfully from database with the connectionString. My problem is, when the appliction runs this code " waitHandle.WaitOne(); ", it has no response. I have to break the application to terminate it. Thank you all! static string connectionString ="Data Source=(local);Initial Catalog=TrackingStore;Integrated Security=SSPI;"; static void Main(string[] args) { using(WorkflowRuntime workflowRuntime = new WorkflowRuntime()) { workflowRuntime.AddService(new SqlTrackingService(connectionString)); AutoResetEvent waitHandle = new AutoResetEvent(false); workflowRuntime. ...Show All
Windows Forms Creating a "Now Loading" Form whenever a Form closes in a multi Form C# windows moblie 5.0 application
Hi all, hope you guys can help me with this. I would like to create a splash screen that says "Now loading" that runs everything whenever a user closes a current form and before the other form shows up. Been trying for quite some time but couldn't get it to work. ------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows.Forms; using System.Threading; namespace PHIMS { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [MTAThread] public static void Main() { SplashScreen frm = new LoginPage(); frm.RequestForm = "LoginPage&qu ...Show All
Visual Studio .NET 2005 cannot find Source Control Provider
We have problems integrating .NET 2005 and ClearCase 2003.06.15. We have installed IBM's Rational ClearCase client for VS .NET ( http://www-1.ibm.com/support/docview.wss rs=984&context=SSSH27&q1=.NET+2005&uid=swg24010813&loc=en_US&cs=utf-8&lang=en ) as well. We get the following error when we open our .vcproj file from .NET 2005 "the Source Control provider associated with this solution could not be found. The projects will be treated as not under source control" "Do you want to permanently remove the source control bindings from the projects " Our .vcproj file has the following string in it: SccProvider="MSSCCI:ClearCase" We have .NET 2003 installed on ...Show All
Windows Forms Extend control functionality without subclass
Hi, How to write a behavour class that able to extend functionality of winforms control without subclass I hope to let my developer to drop an instance of my class on tray, set the control and event to listen using property sheet. In my class constructor, it will bind listen to specified control's event and respond accordingly. Any ideas and sample code Thank you It sound like you're talking about a component similar to HelpProvider. Once dropped on a form, it dynamically extends the properties of other controls. It is well described in this MSDN library article . ...Show All
Software Development for Windows Vista Where to download directshow sdk?
I've just downloaded directx9 SDK, and directShow isn't there. Did they move it I down loaded the platform sdk and after hassling for a half a day finally have things building in MS Visual Studio .NET 2003. But how does one go about building the DirectShow samples ...Show All
SQL Server no luck w/ execute sql task and assigning variable
Hello, I've asked this question before and I've read the answers before and I still cannot get it to work. My task is simple, I want to use the execute sql task container to grab a value from a database and put it in a variable. I've done all the preliminary stuff such as running profiler to make sure that the package is getting the call to the database, setting up the ResultSet to be "single row" in the general tab, mapped the Result Set correctly, but nothing works. I get the same error every time. This is my sql command: select output_location as output_location from script_master Result Set is set up like this: Result Name: output_location ; Variable Name: User::output_location Here is the error I get: ...Show All
Commerce Server Adding Extendend Order attributes in Pipeline.
We have extended orderform to have a notes collection, in the creditcard pipeline once a payment is made, we log an entry into the note. How-ever when we run the code, IDictionary Note = new DictionaryClass(); ISimpleList Notes; Object NoteObject; Note[dictionaryNoteSubject] = OrderNoteSubject; Note[dictionaryNoteCreatedBy] = ProgID; Note[dictionaryNoteCreatedDate] = DateTime.Now.ToString(); Note[dictionaryNote] = Response; Note[Constants.orderFormIdProperty] = OrderForm[Constants.orderFormIdProperty]; Note[Constants.orderGroupIdProperty] = OrderForm[Constants.orderGroupIdProperty]; // Check to see if we have any noptes defined. If we don't the value at the // key will be of ...Show All
Visual Studio Team System partial turn on of the code analysis
I have a team project named "All Projects". In the source control of this "All project" there is one project named "new project" and the other named "old project". Is it possible in TFS to turn on the code analysis for "new project" and turn off for the "old project" now these 2 projects may or may not be dependent on each other. Yes. In fact there is a project on GotDotNet to do that. Check out http://www.gotdotnet.com/codegallery/codegallery.aspx id=96d7da50-0d61-4230-9af9-49684ae9881e . Buck ...Show All
Windows Forms Control visiblilty of main form component after the close of pop-up win form
Dear All, My problem here is that first I have a combo box. Upon selecting a value of the combo box its visible set to false. Then at the same location the visible value of a text box is set to visible=true. The problem is that if the value which is keyed in the texbox is below a certain range then a pop dialog or winform will appear for confirmation of acceptance of the lower value. Upon making the confirmation via the pop-up win form the control gets back to the main form. Now I want the combo box to be visible=true and textbox visible=false when the control is pass back from the pop up winform to the main winform. Thanks. Dear Frederikm, The reason I am using a new dialog is ...Show All
Visual Basic VB6 get function in VB.net
Instead of using the get function in VB6, what would i use in VB.NET Heres the code i'm using for the "get": For (name) As Integer = 0 To (name).FileSize - 1 Get #1, (name) + 1, (name) If (name)((name)((name))) = 1 Then (name)((name)) = "0" & (name)((name)) Else (name)((name)) = (name)((name)) End If Next (name) I don't see how i can use that code to fit in there... ...Show All
Visual Studio Express Editions Get everything from database to listbox
I want to get all the data from a field in a database eg links, to a listbox called links. How can this be done. It can be done with this code: conn.Open() cmdString = "SELECT * FROM table" cmd.CommandType = CommandType.Text cmd.CommandText = cmdString cmd.Connection = conn Dim reader As SqlDataReader = cmd.ExecuteReader() While reader.Read links.items.add(reader("links")) End While reader.Close() ...Show All
