Prasanth Menon's Q&A profile
Visual C# Run an .exe from the build events
I want to run an executable from the "build events" (in the properties) of a c# project. I tried to write the command as if I would write it in DOS - I tried with or without quotes like the following: "C:\path\exename.exe -U param1" or C:\path\exename.exe -U param1 When I compile my project I get the following error: Error 80 The command "C:\path\exename.exe -U param1" exited with code 9009. TryOnH ...Show All
Visual Studio How to modify file when loading from template
Hi, I have a question on creating new Project Type and adding it to VS. I have created new Project Template and adding it VS using ProjectSubtype . And actually new project templates is shown on VS and I can choose it to create new project. However, when loading files from template, I want to modify those files. For example, changing name of class, etc. I know how to do this if I create new project type by exte ...Show All
Visual J# An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll
I receive the following error in a vb.net app. An unhandled exception of type 'java.lang.NoSuchMethodError' occurred in vjslib.dll. I am referecing vjslib.dll and two other wrapper dlls. The two other wrapper dlls are provided by a vendor. The code builds without error. However, if I try and access a method/function/property within the dlls during runtime, I get the error above. I can also navigate to t ...Show All
Visual Studio Tools for Office Order of selection events with Bookmark controls
Hello, I have created a simple VSTO Word project with two bookmark conrols: [BOOKMARK1] [BOOKMARK2] They appear in this ordert in the document. I have added handlers for the Selected/Deselected events, and I am getting strange results: When I select BOOKMARK2 and BOOKMARK1 is selected, I get: Deselected: BOOKMARK1 - Selected: BOOKMARK2 Then, if I select BOOKMARK2 while BOOKMARK1 is selected I get Selected: BOOKMARK1 ...Show All
Visual Basic ADO.net DataAccess time SLOW
Unless I am doing something very wrong, it seems that the ADO.net dataaccess time,IE retrieving a record is extremly slow compared to Classic ADO. Now it takes between 1 and 2 seconds to retrieve the data from the Remote database (Access). Because of needing update data when I select a serial number, I presume and currently use direct access to the remote database. I load a combobox with all my serial Numbers, Currently 15,000 . Then when I c ...Show All
SQL Server Remote connection to SQLEXPRESS doesn't work!
Hello, OK. It is not possible for me to get remote connection to a ssqlexpress database (error 40). I tried everything posted in this forum, MSDN site etc., I used named pipes, TCP/IP ports, disabled Zone Alarm etc. it is just not working. I can coonect the Northwind database using SQL Server Management Studio Express CTP without any problem. And I am trying to learn creating databases, tables, stored procedures etc. by using code sampl ...Show All
.NET Development Decompressing
Hi, Anybody knows how i can decompress a .gz file in c# I have couple of .gz files on FTP server, I need to download them, convert them to a CSV file and then delete them from the server. Thanks Assuming you're using .NET 2.0, you can use System.IO.Compression.GZipStream. ...Show All
Visual Studio Express Editions Error when RETRIEVE DISTINCT from MEMO column
Hi all, I'm having a problem when using VB Microsoft Jet OLEDB 4.0 to query from ACCESS database on a column which is defined as "MEMO" type. It worked previously, but recently when i change to another pc and use the same program, it showed me error when i use a "retrieve distinct" on a column defined as "MEMO" type. Is this due to a different ACCESS version Any way i can bypass it Thanks in advance Trouble ...Show All
Visual Basic question about Long data type in VB 2005 Express
Why is (2^63) - 1 not a constant expression not representable in type Long. I think we're saying the same thing. It is a characteristic of the behavior of the datatype. The hi-bit is a sign bit. Not so for the ULong or Uint64 datatype. ...Show All
Visual Basic Extracting email addresses and URLs from...
Hi Continuing my questions regarding webbrowser in vb .net 2005, I am really cracking on, thanks to this forum. So many thanks to all! My next question is this - can you advise me the quickest way to extract email and urls from webbrowser1.documentext I am playing with regular expressions but that seems like overkill, and I notice .net "senses" emails and urls....can I use that anyway, any help as always MUCH appreciated Ja ...Show All
.NET Development How to get local directory of a web service
I swear MSDN gets a little more useless all the time, as I've searched the .NET documentation to no avail on this one. I've created a web service, and I need to get the local path to the webservice directory. For instance, my webservice is located at the usual C:\Inetpub\wwwroot\MyWebService. I just need to get this string dynamically (without hard-coding it) so I can save off some files there at runtime. I tried Assembly.GetExecutingAssembly(). ...Show All
Visual Studio Team System Can anyboby provide a script for custom Web-test plug-in to clean up a database after test recording and also after test has run
Can anyboby provide a script for custom Web-test plug-in to clean up a database after test recording and also after test has run and start with fresh database I have a form in which there is a data grid on it.During recording i add some values in that field so as a result those values get added in the data grid and i got a string saying that record has been saved.When i ran this test those values were already in the data base so the test pass ...Show All
.NET Development Can someone please explain to me the "One DataReader" Rule?
I've been trying to find a solution to a problem and while searching the threads I came across the above statement and would like to know where this comes from and where it is documented. What I am trying to do is read from one table in a database - using a DataReader and after some processing, store the results in another using a combination of a SqlDataAdapter and a DataTable. Process is pretty much: Dim Connection As SqlConnection Dim Table1 ...Show All
Visual Studio How to Add a button in a work-item and scripting for that control (in Team System)
There are possibilities to add a input controls (text boxes, drop-down lists, etc.,) in the Team system work items like (bug, task, etc.). I want to add a button in the window and script it for emailing the content to a recepient. How to achieve this. Thanks. You can customize the work item form to add custom controls. Check ou the documentation here: http://msdn2.microsoft.com/en-us/library/m ...Show All
Visual Studio VSIP/Visual Studio 2005 SDK and open source language services?
In the near future I would like to attempt a language services plug-in using the Visual Studio 2005 SDK (formerly called VSIP I believe); the free version, to be specific. However, since I may or may not have much time in the future to work on it, I was wondering if a non-viral open source license - something like MIT or BSD that does not propogate up the chain - would be OK. I do not care much about the particulars of whatever licenses are ac ...Show All
