IxxI's Q&A profile
Visual C# Newline problem with running Cmd.exe in a process
Hi, I'm trying to run a CHDIR command in a cmd.exe process. The command fails to chnage directory because of the newline characters thrown to the end of the string... i.e. chdir d:\\Folder2\r\n\r\n Is there a way to stop the streamwriter from insert \r\n\r\n This doesn't happen in it's VB equivalent. I've tried messing around with the proc.standardinput.newline property but had no luck Here's my code for this ProcessStartInfo psi = new ProcessStartInfo ( "cmd.exe" ); //Redirect both streams so we can write/read them. psi.RedirectStandardInput = true ; psi.RedirectStandardOutput = true ; psi.UseShellExecute = false ; psi.CreateNoWindow = true ; Process proc = new Process (); ...Show All
Visual Studio Upgrading from VC++ 2005 Express Edition
I am currently using the VC++ 2005 Express Edition, and considering purchasing the full Visual Studio 2005 (either standard or professional editions). Will I be able to load my projects (created using the express edition) into the standard/professional edition directly Are there any issues to look out for Thanks, Kumar Hi Kumar, Yes it all works fine. All projects developed in Express Editions open up in the higher editions without any trouble. I have tried that on my system. Regards, Amol. ...Show All
Visual Studio Tools for Office Performance issue
Hi, Im trying to show a tasklist within a folderhomepage. The tasks are from a public folder. The problem is, that accessing the attributes of a TaskItem is horrible slow. But only in the default AppDomain, where the Control of the folderhomepage exists. The same code within the Addin AppDomain is much more faster. This is the codesample (ok, its a contact item, but its the same with tasks.): foreach (MSOutlook.ContactItem ci in results) { string name = ci.FullName; // this single line takes 180 milliseconds!!!!! User u = new User(name, Tools.GetEmail(ci)); userlist.Add(u); } Accessing the FullName attribute takes 180 ms from within the default AppDomain and less than 1 ms from within the Addin AppDomain. Does anyone have ...Show All
.NET Development GetResponse method from System.Net.WebRequest
Hi I've written this code for retrieving some web pages using the WebRequest and WebResponse methods: private void webDownload() { foreach (WebPage w in webList) { // Initialize the WebRequest. WebRequest myRequest = WebRequest.Create(w.Url); try { //get the response WebResponse myResponse = myRequest.GetResponse(); //the code for the decodeData method is taken from [1] String htmlContent = decodeData(myResponse); myResponse.Close(); //here I'll do some tiny operations with the html.. // .... } catch (WebException e) { if (e.Message.Contains("(4 ...Show All
Microsoft ISV Community Center Forums Auto Indentation for VBA
Hello, I am still new to VBA IDE. I am wondering if there is add-in or tools to make VBA do auto indentation like Eclipse editor for Java. Any help are very appreciated. Thanks in advance. Go to Tools|Options. On the Editor Tab there is a "AutoIndent" checkbox. I'm sure you can handle it from there. (unless you are looking for a tool to re-structure the indents in poorly indented code.) rusty ...Show All
Windows Forms How to get the Hardware Acceleration Status??
Hi, I need to know, how can i get the current hardware acceleration status Is there any DLL in windows, which can provide me the current status of Hardware Acceleration Its at: Display Properties > Settings > Advanced > Troubleshoot If anybody can help me with this, i will really appreciate it. Also, its my first post in this forum. Hope for the good luck :) Regards, Amir I read a the following help files: Win32SDK Knowledge Base, and there i found the following info: http://support.microsoft.com/kb/q127066/ There they are talking about the same thing i wanted, but thats for Windows 95. For XP where do i look for Which DLL or which INF I really need help gu ...Show All
SQL Server Building a report-dashboard in WSS 3.0 integrated mode
I have a page with three Web parts; 1. Filter Web Part that uses a BDC-driven list of clients 2. Part showing RDL's from a doclib 3. Report viewer Web Part I can use the Filter part to supply a parameter value to 3. when I select an RDL manually, I can set the Viewer connections to get the Report Definition from 2. But I can't get both options to work at the same time. The reports in 2. all have the same Parameter so there shouldn't really be a problem. Looking forward to any suggestions or a way to provide feedback on the CTP (RS SharePoint Addin). TIA. Ed Hi, I am working on sharepoint 2007 integration with reporting service 2005. There are few facts which i am trying to understand and need some clarificatio ...Show All
Visual C# To _, or not to _?
The .NET Framework is littered with private variables preceeded with the _ (underscore) character. Is this good practice Or something Microsoft are trying to stamp out Michael, your reply was a rather laborious, waffle-ish and what some my consider "offencive"... However , [despite your unfortunate manner], you make a good point that the naming of private variable/fields/methods is down to personal preference. Well said! ...Show All
Gadgets XMLHTTP help, please!
I have utilized xmlhttp on many occasions to power ajax enabled projects and have never had a problem with it until now. The following javascript code is debugged and runs flawlessly in IE7, but does not work when installed as a gadget. Is there something in here that gadgets do not support but IE7 does function GetXmlHttpObject(handler) { var objXmlHttp=null; var strName="Microsoft.XMLHTTP"; try { objXmlHttp=new ActiveXObject(strName); objXmlHttp.onreadystatechange=handler; return objXmlHttp; } catch(e) { alert("Error. Scripting for ActiveX might be disabled"); return; } } function showDisplay() { var url=" http://www.ourwebsite.com/phpscript.php variable=one"; xmlHttp=GetXmlH ...Show All
Commerce Server removing Shipping altogether from Starter Site
We've created a Starter Site that will be selling service related products. Therefore shipping does not apply. Is there a simple way to remove all shipping related pieces from the site or do I need to manually remove all shipping references You'll need to remove all Shipping references. They're pretty much localized to the checkout path so it shouldn't be too hard. It's entirely possible (I don't know) that you may need to create a dummy shipping method to use in place of a real shipping method. ...Show All
Visual C++ Program runs slower when compiled with Visual Studio 2005 (in Release with optimization)
Hey, I have a performance problem with the new Visual Studio 2005. My code (which is a genetic algorithm) is 3 times slower when compiled under Visual Studio 2005 compared to when I was compiling it under Visual Studio 2003. With Visual Studio 2003, it used to run in 3.0639 seconds, and now it runs in 9.0031 seconds. I run both code in Release. I tried every optimization option, and adding the /D_SECURE_SCL=0 compiler command to the project options with only minor differences. Is there any other way to get back to the speed Visual Studio 2003 It is a bit absurd to upgrade to a new compiler and get lesser performances. Thanks a lot!!! Antoine Atallah I didn't mean that I disliked the new new, I just wanted ...Show All
Visual Studio Tools for Office Using Computer.Clipboard And Excel
I have some columns with data and want to pass some of them into VB.Net application throught Clipboard. I selected first and last columns, but when data was taken from My.Computer.Clipboard.GetText, there was also another columns' data (between first and last columns). But, when I tried to insert the clipboard information backward into Excel - there was only first and last columns' data. So, Net application do not know which columns was copied into clipboard. How should I recognize which columns was selected and inserted and which columns I should pass Hi Sergey If you watch Excel closely, you'll notice that there are "running ants" around the selection when it's on the Clipboard. The Office applications keep a connectio ...Show All
.NET Development Encryption woes
I'm trying to do some basic public/private key encryption and I seem to be doing it wrong. All of the documentation seems to skirt right around actually doing asymmetric encryption. I create two csp blobs, one has the private key data and the other has the public key data. I use the one to encrypt a blob and the other to decrypt the blob...in theory. It always ends up coming back with the decrypted byte array is of zero length. here's the relevant code, any thoughts Private Sub CreateKeys() Dim cp As New CspParameters() cp.KeyContainerName = "name" Dim RSA As New RSACryptoServiceProvider(cp) My .Computer.FileSystem.WriteAllBytes( "c:\temp\publickey-readme" , RSA.ExportCspBlob ...Show All
.NET Development Which Container to use?
I am wondering if any body would have an Idea for which container I should use, and maybe some tips on how to impliment it. I am using reflections to get hash codes from a fully qualified name which includes the application, which form it's on, and which controls are it's parent. I need to tally how many time people are pressing these controls. I have the hash codes for them and I want to store the tally with each hash code as the identifying key. Any idea's would be appreciated. Thanks Matt P.S. - I was thinking about using a hash table but once I put the information into the hash table how do I incriment the value. This might sound simple and I hope it is, but I don't know how to do it. A ...Show All
Visual Studio Feedback on Prototype Style in Sandcastle
I am looking for customer feedback on the "Prototype" style in Sandcastle. It will be great if you provide me with input on redisign of member pages with tabs and our use of language filers in this style. Also should we adopt this "Prototype" style for our official documentation shipped in future versions of Visual studio Waht do you think I will blog about the details on "Prototype" style seperately. Cheers. Anand.. Hi Anand, I think the current presentation.css stylesheet needs some changes. I didn't like the font size (too big), it uses bold in too many places, didn't underline hyperlinks when the mouse hovers over them, and the spacing on many of the elements just didn't look right t ...Show All
