dbdog's Q&A profile
Audio and Video Development ACA Explorer
Hello, Don't know if anyone has created one yet but I figured I'll share this small tool i made with everyone. AcaExplorer allows you to view the content of unencrypted Advanced Content Archives and extract files. Usage: Run acaexplorer.exe > Click on [Open Archive] > Select an *.aca file and click [Open] > Select one or more files from the listbox > Click on extract and choose the destination > Click [Choose] and voila! Tip: use [CTRL] to select multiple files The tool is free and can be downloaded from: http://www.levelx.eu Notes: The program doesn't warn if there is already a file with the same name in the destination map and overwrites. Currently there is a max 16MB limit. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Static Members
In my projects, instead of passing the GraphicsDeviceManager and the SpriteBatch by reference to the constructor of every class that will need them, or directly to every method that needs it, I prefer making them both Public Static Members of my main class, thus being available anywhere in the program. I would like to know, is this a bad solution And if so, why is that I understand one of the reasons is portability. If I passed them by reference, then I could re-use those classes in other applications without any change. But consider that I'm using these classes for my own application only, and if I needed to use it somewhere else, the changes to be made are still minimal. On the other hand, by using the Static approach, both classes and ...Show All
Visual Studio Express Editions Add Item Template into VS.NET
when i installed VS.NET2005. when i want to created new Report item. But i can't see it there. When I choose Project->add new Item. there're some item EX: Class,SQL Database... no User Control, Component,Icon File, Install Project .... Please tell me to install this item into my VS2005. and give me the path to download them. Thank very much ...Show All
Windows Forms Confirming row deletions on datagridview
Hi -- I'm trying to figure out a way to ask my users (via a message box) if they want the selected datagridview rows deleted. It's very simple if only one row is selected. But if many rows are selected, I don't know how to stop the message box from displaying just before each row deletion. Any ideas Bill I could really use some help with this. There is no UserDeletingRows (plural) event that the datagridview object raises. So it seems impossible to prevent the message box in my UserDeletingRow event handler from displaying on each row deletion. Help! ...Show All
Windows Forms cannot get bindingsource to keep track of current record when a record is added.
hi, i am trying to keep track of inserted record in my save method. it seems that i the index returned by the manager is different from how it is being displayed. the index of the new record is the last index, but this is not reflected Public Class DataAccess Public Shared Sub SaveSource( ByRef bs As BindingSource, ByRef dt As DataTable, ByRef da As Object ) Try Dim curr = bs.Current bs.EndEdit() da.Update(dt) da.Fill(dt) bs.Position = bs.IndexOf(curr) Catch ex As Exception MsgBox(ex.Message) If ex.Message.Contains( "does not allow nulls" ) Then Else da.Fill(dt) End If End Try End Sub End Class You might be better off us ...Show All
Visual Studio Team System Validation rule> required tag. Problems
Hi all. Our company is soon to adopt VSTS. I am currently exploring the testing section. I am using a Validation Rule to look for a required tag. I have tried multiple tags including <a> (and simply 'a' believing that the <> may have confused the parser) and every time I run the test against the page, the test fails and indicates that the tag does not appear. I have verified that the tags do indeed exist in the response. Also, when I try to use Required Tag against and XML response I get: Object reference not set to the instance of an object Finally, we do work with AJAX. In order to validate the information getting sent to the browser I expect I will need t inspect the DOM. Is that possible Thanks for any help. Eigen ...Show All
SQL Server Report from right to left
Report from right to left Hi. Is there a way to define the report from right to left and I mean all the report and not just the textBox and stuff For example: Right now, When I have a table that spread over the whole page, If I change the visibility of a column from the center to False - The table shrink to the left (and there is a spare room in the right side of the page). I tried changing the lenguage to hebrew but no good. Any ideas Roy, I've had this same problem before, and I haven't seen a solution to keep the table at one fixed width when expanding and hiding columns. Have you thought of just hiding the text boxes in that column instead of the whole column. We also just found out that you can e ...Show All
Gadgets Environment Variables and Image Calls.
Hello, I am trying to Improve a Gadget which forces users to log in to there Administrator accounts to use Backgrounds simply because it was named "Administrator" at the Path. At first I tried using PHP like calls. But didn't work, So I resorted to looking at how the calls are made. I've added this. <!-- //////////////////////////////////////////////////////////////////////////////// //Find Which User is Using the Gadget and SET the Variable - Steven {augrunt} //////////////////////////////////////////////////////////////////////////////// --> <script> userProf = System.Environment.getEnvironmentVariable("USERPROFILE"); userPath = userProf + " \\AppData\\Roaming\\Microsoft\\Windows Photo Galle ...Show All
Software Development for Windows Vista How to correct the "Unidentified Publisher" message
There is an earlier post ( here ) detailing how to get the correct publishing details in the User Account Control window but it described the process of getting the software through the "Works with Windows Vista" Program. My question is: To get the correct publishing information in this window, is it enough to digitally sign the software using a software publishing certificate from versign or does the software have to be submitted to the "Works with Windows Vista" program I've signed an app using a test certificate and it's made no difference to the User Account Control window. Thanks in advance. That is a great help. Thank you. I have specified a pfx file in the "Sign th ...Show All
.NET Development CreateProcessAsUser failed
For some reason i need to spawn a seperate process executed in another users context. The Assembly will be used within normal applications and asp.net webapplications also. I already got the WindowsIdentity of the new user and so i can impersonate this user for the running process. Next i tried to use the CreateProcessAsUser-Method described in KB article 889251 (http://support.microsoft.com/default.aspx scid=kb;EN-US;889251), but this failed with error 1314 (A required privilege is not held by the client.) This happens on WinXP and 2k3 Server, the "Replace a process level token" user right is applied to the impersonated user. If i run my test program as the user i want to impersonate, it runs fine. What did i miss, any idea than ...Show All
Visual Basic Is there any way to get the name of a console color from the number?
For example, Console.BackgroundColor = CType(1, ConsoleColor) will change the color to Blue. Intellisense will display a list of colors after typing this: Console.BackgroundColor = ConsoleColor. What I want to do is display the color name along with the number in a For loop: For x As Integer = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y As Integer = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x For x As Integer = 0 To 15 Dim bColor As ConsoleColor = CType (x, ConsoleColor) Console.BackgroundColor ...Show All
Architecture Looking for database design patterns
Hi all, I am looking for some good references or guidance on database design. Some of the issues I would like to research include: Storing hierarchies. From what I can gather there are 3 main ways to do this. Storing graphs. By this I mean graphs with vertices and edges, not graphics or images. i.e. see http://en.wikipedia.org/wiki/Graph_theory Recording and reporting on changes to items over time. Through, for example, History tables or using Insert-only tables. Custom item types. The ability for customers to define their own types of items. Custom metadata. Ability for customers to add fields to items. Some ways I have seen to do this include: extension table per type, store custom data in an XML ...Show All
Visual Studio Team System Cannot pass a GCHandle across AppDomains
While working on my Automaton framework for build automaton with Team Foundation Server I've come upon this rather cryptic exception. It seems to happen only once in a while, something I'm able to do successfull requests without this exception. What I have is an .ashx which returns some HTML content to my .aspx, and the .ashx is called using Xml Http javascript call (AJAX). The error occurs when I try to read the .WorkItems property on an instance of the Changeset class. Full exception stack: [ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle] System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) +0 System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) +92 CPr ...Show All
SQL Server Expand/Collapse all in a report
Hello. Is there a built in option of adding an Expand/Collapse all Button to my report I have a report with few groups and I want to give the user a simple way to expand all of them for easy view or collapse all of them so he can see only the groups header. I thought about using an expression in the hidden property of the groups and try to control it with parameters but its looks like a lot of work. Is there something "of the self" for it Thank. Roy. Allo Roy I've done something similar: I have a report with a BUNCH of measures, all hidden and you can display them one by one and then it also displays a chart "dynamically" with a "button" corresponding to the specific mea ...Show All
SQL Server Blank password works for user account - all other passwords don't!
Hi Group (and thanks for any help given): I am new to SQL 2005 and have an issue with passwords. I set the password on a user account and tried to access my program (Time Matters.) I received an error message that the application was unable to connect to the system database. When I set the password to blank (no password), the application was able to connect to the SQL db and everything worked just fine. I've tried several different passwords. Any password besides blank does not work. Blank always does. Obviously I don't want to use a blank password. But where in SQL Server is the setting or could a copy of the original password be "stuck" Thanks for your help. Jeff If "Must Chan ...Show All
