Steve Roggow's Q&A profile
Visual Studio Team System Power Toys failed to install
Hi! Installation of power toys on my machine failed . The last view lines of the verbose error log are (if needed the whole error log is available): .... MSI (s) (34:C0) [08:09:57:677]: Executing op: ComponentUnregister(ComponentId={2DD323FA-3D9C-437B-BEAB-C516C569B2DB},ProductKey={C802488F-CB5F-48BE-BBD2-0C0F9E290E63},BinaryType=0,) MSI (s) (34:C0) [08:09:57:677]: Executing op: ComponentUnregister(ComponentId={98E68F3A-42CE-4CBB-ADF5-6C936BB7A9AA},ProductKey={C802488F-CB5F-48BE-BBD2-0C0F9E290E63},BinaryType=0,) MSI (s) (34:C0) [08:09:57:677]: Executing op: ComponentUnregister(ComponentId={91438838-2D70-44D4-ABB9-9F4F3D236C52},ProductKey={C802488F-CB5F-48BE-BBD2-0C0F9E290E63},BinaryType=0,) MSI (s) (34:C0) [08:09:57:677]: Executing o ...Show All
Visual Studio Team System Static Data Management
Hello, This is probably a stupid question, but I'm starting to play around with Data Generation scripts for unit tests in my database project, and I have a query about what I would call static or system data. For example, the data generation scripts take care of user data, but what about tables of types or the equavalent of enums for instance, a UserType table which contained data such as: UserTypeId | Description ---------------------------------- 1 | Standard User 2 | System administrator 3 | Editor Or similar The IDs would have to stay constant thoughout the system, so either I create a deployment script that creates the data or use the data generation tools. If I use a deployment script, will (1) the data ...Show All
SQL Server SQLDriverConnect Error
I have an application I am working on and I am trying to connect to a database on SQL Server 2005 using the SQL Native Client. The database is called ' noquotes~`!@#$%^&*()_+|\}{:; />.<,_key' . The call to SQLDriverConnect fails with the error. [Microsoft][SQL Native Client][SQL Server]Cannot open database requested in login 'noquotes~`!@#$%^&*()_+|\}{:' . Login fails." I notice in the error message that the database name is truncated at the semicolon in the name of the database. I try try using {}, [ ] , single quotes to enclose the database name in the connect string, but I still get the error. Is there away around this error, or is there a list of unsupported characters that cannot be used in the database n ...Show All
Visual C# Need help converting VB to C#
Hi Can someone help me by converting this VB to C#. Thanks a bunch. James Keele Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MsgBox(Modulo10(TextBox1.Text)) End Sub Private Function Modulo10(ByVal strNummer As String) As Integer 'strNummer may only contain numbers between 0 und 9! Dim intTable(10) As Integer Dim intTransfer As Integer Dim intIndex As Integer intTable(0) = 0 : intTable(1) = 9 intTable(2) = 4 : intTable(3) = 6 intTable(4) = 8 : intTable(5) = 2 intTable(6) = 7 : intTable(7) = 1 intTable(8) = 3 : intTable(9) = 5 For intIndex = 1 To Len(strNummer) intTransfer = intTable((intTransf ...Show All
Software Development for Windows Vista MessageBox wrapping text differently than XP
Is there a stated reason why MessageBox's will wrap text differently than in XP For example a MessageBox in XP may be wide but the same MessageBox (text and caption) will be narrow and wrap the text earlier. Is this configurable or a fundamental change to MessageBox behavior in Vista Thanks, Jim Copying the vista fonts to a xp system and make them the dialogbox font doesn't reproduce vista formatting on xp. It seems, that the width calculation has changed. Very sad, because our product's messageboxes look very ugly on vista. ...Show All
Visual Basic Case Usage
I am pretty much a noob programmer, but I'm getting the hold of visual basic pretty much. But in one of my programming attempts something is messed up, because as far as I know my code is good... Take this code: The issue now is that without converting this to a number, it is comparing the string value you enter rather than the numeric value. One way to avoid a lot of these issues is to: 1) Give the user a combobox of acceptable values or 2) Use VAL(Textbox1.Text) and VAL(Textbox2.Text) ...Show All
.NET Development How to get target location of a file from its shortcut .....?
Hi, I placed a shortcut of a paricular file on my desktop.(DONE PROGRAMMATICALLY). Now i want to get the target location of that file by using the shortcut.How can i get it Are there any specific methods Here's one way http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp ...Show All
Visual Studio Tools for Office Is it possible to create a plugin that fetches a contact list from an external source, when you create an email ?
When you are creating a new email in outlook 2003, there is a dropdown list "select names from" (or something like that, I do not know since I do not have the english language version). I would like to attach a new option to this dropdown and when that new option of mine is selected, it will trigger a method of mine that will fetch the contacts from an external source (through a web services invocation) and display those contacts in the dialog to let the user select from that list of contacts. So, is this possible in Outlook 2003 If it is not, is it possible in Outlook 2007 If it is possible, where can I find a code example illustrating how to: (1) add an option to the dropdown list (2) attach a concrete class/method (which wi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Boot Camp + XNA
Anybody tried to run XNA on Bootcamped Mac I tried my schism game out on a bunch of computers it works just fine. However, when I tried it on a Bootcamped Windows XP Mac...The screen rotated 90 degrees...Everything worked right, controlls and such but I could only see half of my screen. A bug with the graphics device, or maybe drivers on the Mac Anybody got any ideas I was able to duplicate your problem and thought i'd follow up. When running a fullscreen XNA app, the screen does for some reason turn 90 degrees. If you hold down the ctrl-alt keys and hit 'up, up' it will rotate the screen the correct direction. The Macbooks for some reason have the functionality to rotate the screen by holding ctrl-alt and using the arrow keys. It se ...Show All
.NET Development How to get the max length of text field in a DataSet?
I have a DataSet bound to an Access database. Is it possible to get the maximum length of a text field of a table in the DataSet Many fields in the database tables have maximum length values set in the design view in Access. When I examine the loaded DataSet in the VS 2005 debugger, I can't find any maximum length information anywhere in the DataSet or the "DataTable.Columns" objects. I wrote the schema of the DataTable to a file (using WriteXmlSchema) and I see that the XML schema does not contain maximum length information for any fields. I want the maximum length to validate user input on a form. Currently, if a user enters too much text for a field and trys to update the database, an exception is thrown stating: "T ...Show All
Windows Forms Combo Box Problem
Hi, All my problem is quite simple but I am just stucked. First I would like to ask what is the best way to populate combob box in windows application. Some articles says datareader and some say using dataadapter then put into dataset n finaly in datatable. I am quite confuse over here. Now I am trying to use a datareader to fill a combox and getting an error of IList not support member. Can some body show me how to fill the combo using datareader. Another extra question is that beside the data that I get from the database I want my first line the combo to show a value like "Please Make A Selection" how can I insert this line as the first in the combo which is not part of the database. I wish to thank if any body could help ...Show All
Visual C# Run without building out of date porject
I have specifically chosen the option of "Prompt to build On Run, when projects are out of date". This used to work. Sometime ago, suddenlly IDE started to always run without prompting to build the out of date project. Does anyone have any clue Thanks. I've created an issue regarding this on Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=242954 . Readers, if you feel this issue is important to you, make sure you voice is heard and vote for this issue. If you suffer from or notice this problem too, please validate the issue. ...Show All
Visual C# MemoryStream instead of StreamWriter Problem
I have a method which make a file with StreamWriter and then save it to database. I want to make a new method base on this method but using MemoryStream instead of StreamWriter. 1- When I give the byte[] in constructor and then store it in database, everything is OK but When I try to use Write Method of memoryStream nothing happend!!! it means that just an empty file will store to the database!) this means that it works OK with the folowing line: MemoryStream memStream = new MemoryStream (byteArray); but if I use the folowing lines instead, it doesn't work. MemoryStream memStream = new MemoryStream (); memStream.Write (secondString,0,secondString .Length ); 2-I have used Write and WriteLine methods in ...Show All
SQL Server Connection Issues To Report Services
Hello all, I just installed the SQL 2k5 standard suite of services on a w2k3 enterprise edition server. All went well except for the connection to the reporting server. I get the error below. "No connection could be made because the target machine actively refused it" I can't seem to find any information on this error and have no clue where to even start. I've done 10+ installations of this software on various machines and have not encountered this error on any of them. I have uninstalled, then reinstalled the reporting services and still no solution. All connection attempts are being made on the actual server, not from a desktop. sp1 for sql 2k5 is also installed, if that helps. Windows Firewall is off. What w ...Show All
Software Development for Windows Vista Building with Vista Platform SDK and Visual Studio 2005
What is the intended "strategy" the Vista Platform SDK has for how projects designed under Visual Studio 2005 should be built in conjunction with the Platform SDK If it was supposed to be obvious from the documentation, I guess I'm still missing it. For a makefile-based project or sample, things still seem obvious and/or unchanged. Between SetEnv.cmd and Win32.mak a bunch of appropriate decisions regarding pre-processor definitions like WINVER and APPVER, default libraries, and the include and lib paths appropriate for the build mode that was selected, etc., are established. The VCIntegrate.exe "integration" seems to be nothing more than setting the include, lib and path directories via .config files updated unde ...Show All
