Knudde's Q&A profile
Visual Studio Call a console application from an add-in
Hello! I have a windows console application class that I added to my add-in solution. I reference the class in the Exec method of the add-in. The console class and all it's methods are executed, but the console window doesn't show up. Is there a special way of making the call to the console app Please assist! Thank you! The external tools feature of the IDE can't use the selected items in the Source Control Explorer since that window isn't really provided by Visual Studio but by the Team Explorer package. You would need an add-in to launch the external exe and make somehow the add-in to get the selected item in the Source Control Explorer, which I don't know if it offers a programati ...Show All
SQL Server Matrix Report and Drill through key values
I have created a matrix report that has a drill through report. I send parameters to the drill report from the results displayed and the parameters from the main report that are seleced. My problem is that I can not seem to get the values from a colapsed matrix row. For example. I have a colapsed section for "regular" and "temp" employee headcounts. If I select the "temp" count and pass the value of "Fields!RegTemp.Value" to the drill through report it receives "T" just fine. My problem is when that section is colapse I need to send both "R" and "T" but "Fields!RegTemp.Value" only sends over the first value "R". If I run isarray on it it's coming back ...Show All
Smart Device Development specifying path names on mobile devices
hey there.... I am using visual studio to create a program that reads and writes from an xml file "books.xml". Everything deploys ok to my ppc but I'm having trouble specifying the path name of the xml file. does anybody happen to know... - How can I specify an absolute path on windows mobile 5 ( "c:/books.xml" doesn't allow me to find the file). - Where should I put an xml file when using a relative path referring to("books.xml"); and placing the file in the deployed application directory on my ppc returns an error that it can't find the file either. any help is would be greatly appreciated.... ch ...Show All
.NET Development How to Save data from XML File to table
Hello everyone.. I'm trying to convert table to XML file.. My code like this.. n it's success!!! Dim ds As New DataSet Dim cn As New SqlConnection("Initial Catalog=PDA;Data Source=Maizatulakmal;Integrated Security=True;") Dim da As New SqlDataAdapter("select * from users", cn) da.Fill(ds, "users") ds.WriteXml("users.xml") Now I want to read the XML file back and save it to table.. Dim ds As New DataSet Dim filePath As String filePath = "users.xml" ds.ReadXml(filePath) What I'm suppose to do after this code to save the data from XML to my existing table Thanksss!! a lot Maybe , you would look ...Show All
Visual C# Do Loops in C#
Im new to C#, just busy moving from Visual Basic. I find the language nice, and have been coming on well so far, however at the minute i wish to use a loop; I was wondering, does C# not support the 'until' specifier when 'do looping' If possible I would greatly appreciate anyones help, maybe you could explain a little to me about loops in this language Common mistakes maybe ... Also when using a 'while' I have and error explaining something within the function cannot be void, however I am not at my own PC right now and do not have the exact error message to hand. Thanks for any help. JWH John Wesley Harding wrote: This reply is a great help, however one last question would be...Does a ' ...Show All
.NET Development GetChanges - Update - Merge result in redudant row
I would like some assistance in the following situation. A table has 0 rows Row is added to table (table.rows.add) Table has 1 row GetChanges is called Update is called Merge is called Table has 2 rows (!) I suppose that this has to do with the primary key of table being autoincrement (both in database and in typed table). What's the procedure to do this right papadi wrote: I think I found the solution! http://msdn2.microsoft.com/en-us/library/ks9f57t0.aspx Search for "Merging" in this article. I haven't tried it yet but it describes this exact situation! Now the problem is that after performing the update, it does not return the correct number of affected records! ...Show All
SQL Server Need to Subtract the result of two stored procedures
I am trying to take the results from two stored procedure and subtract them to get credit from two columns. The stored procedures look like create PROCEDURE mw AS select * FROM pla p where p.st in ('ds', 'sd') and (iPlayerID = '5345') compute sum(p.amount) RETURN both procedure have the same syntax. I am not able to use AS in to insert the values into a variable. Is there a wizard to use Ink: My suggestion would be to transform your stored procedure into a function so that the results can be joined with each other. Another thing: Try to avoid using SELECT * statements inside of stored procedures that target permanent tables. Such SELECT * statements leave landm ...Show All
Visual Studio 2008 (Pre-release) Where is the LinQ to SQL template?
hi, guys I have installed LinQ, dotNet 3.0, ADO.NET vNext ,but I can't find the template called LinQ to SQL template. Where can I find it Benelf Assuming you've installed the May LINQ CTP over Visual Studio 2005, four project templates should appear under the category 'LINQ Preview' when you go New Project. All of these let you write LINQ to SQL programs (for the LINQ to SQL designer, add a "DLinqObjects" project item). If you have no LINQ project templates, go to \Program Files\LINQ Preview\Bin and run "Install C# IDE Support.vbs". If you still have no templates, uninstall the LINQ preview and reinstall it as follows (this was discussed in a previous thread, and was ...Show All
SQL Server Changing Date
Hello all, I have a question. I am fairly new to all of this, so bear with me if it is something simple (as I kinda hope it is). In SSRS, I have a report that runs against a SQL '05 DB. The DB tables are created with a SSIS package gathering information from an AS/400 DB2 database. The package and report run fine. One of the columns in the table is for a date (date of birth). The SSIS package gathers the column information and inserts it into SQL Server as a Decimal datatype (Decimal 6,0). The dates (decimals ) are now in the format 40207, as they were on the 400, where that specific date would be April 2, 2007. 120707 would be December 7, 2007 and so on. I would like to format the date to be mm/dd/yy or even m/dd/yy for the "si ...Show All
Software Development for Windows Vista Newby questions
Hi, digging around with Vista we came (after a lot of success with WPF things) to the point where we think about the WEB. We run a lot of web apps (ASPX). Most of them use Forms Authentication and profiles. Our idea is now to have those site support InfoCard. Before running into a totaly wrong way we try to ask here if our idea is totally stupid or not. The idea: When a user tries to enter a protected area we normaly bring up the .NET 2.0 Login control. This is pretty automatic - the user enters username / PWD and is redirected to the page after login. At the same page we offer a link to register - also using the "normal ASPX features" (Username, Email, PWD, Secret Question.....). On most sites we do an email verif ...Show All
Visual Basic R
I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA Thanks for the tip! I tried the following and the code itself works, but still produces the chars. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reader As IO.StreamReader = _ New ...Show All
Visual Studio the filename selected is not recognized as legal.
Hi, I am not able to open project throught visual sourcesafe internet mode. what I did is click file->open->project/solution, then click SourceSafe(internet). it complains "the filename selected is not recognized as legal. Please select another file or rename the selected file.". the file name is very simply and I can open that in other machines. And one thing I am pretty sure is that I was able to open that file before using same way. I actually tried the method in this post , but it doesn't work. So can any one help me to figure out the reason Thanks this error message looks like this Can you give me the file name so that I could see if anything is invalid with it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I got the true video memory information
I use two fuctions to get video memory information.One is the getcaps in Directdraw. The other is getavailabletexturemem in directx9. But the two fuctions just return the video memory changes when I play a movie by realplayer. When I just show a picture in Mspaint, the video memory information doesn't change at all. To confirm my video memory information, I use the caps viewer which ship with directx9. But no different result was found out. So is there any other function to get video memory information Why the video memory doesn't change at all when show a picture thanks. Thanks Bahnassi. But I think the picture data should be put into the video memory when I want to show a picture on screen. The blit function should tra ...Show All
Software Development for Windows Vista Setting adapter status in Network Connections window
Hi, This is probably not the right forum since I'm coding in XP but it can also apply to Vista as well. I want to know if there is a Windows API to set text in the Network Connections window. For example, in the Network Connections window, there is a list of adapters with the Status set to "Connected, Firewalled". When I turn off the Windows Firewall, this "Firewalled" text goes away as expected. However, I would like the text to remain if I have another firewall running. So my question is, how can I get a handle on this window or even this adapter to set its status to "Firewalled" What API does the Windows Firewall call to set this value on Windows Explorer It would be great if this could be answered ...Show All
Visual Studio Team System "Need to know" model in MSF Essentials book
I'm sorry, this is not really a MSF related question. I'm reading Michael Turner's MSF Essentials. In Chapter 3, page 22, it says: "....Worse yet, some still perceive information and knowledge sa power and share as little as possible. This "need to know" model of restrictive communications is very counterproductive....." Anyone can tell me what is "need to know" model and why call it "need to know" Thanks!! Here is the best place on earth for MSF http://msdn.microsoft.com/vstudio/teamsystem/msf/ ...Show All
