qwv's Q&A profile
Software Development for Windows Vista IFsiDirectoryItem::AddTree() returning 0xC0AAB120
I don't see that constant assigned in imapi2error.h Actually, I don't see the ones from the document in there either, they must be in some other header... IMAPI_E_INVALID_PARAM IMAPI_E_NOT_IN_FILE_SYSTEM IMAPI_E_READONLY I suspect that this has something to do with the large size of the directory - it is 3.73GB. I checked to make sure the hard drive is not full :-) I have run this code regularly to burn CDs with no problems, but now I am burning DVDs with more files and I just ran into this. (I am always passing false as the 2nd includeBaseDirectory parameter.) Any ideas Hi Henry, I was actually making a call to that, following the sample code: LONG freeBlocks; hr = da ...Show All
Visual C# Please show me how to use doc.execCommand (full)!!!!!!
Hi all ! I am trying to write HTML Editor program for my company, I use mshtml.HTMLDocumentClassObject to fire doc.execCommand method.This is my code: private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { mshtml.HTMLDocumentClass doc; doc = (mshtml.HTMLDocumentClass)this.axWebBrowser1.Document; //doc Object object empty = null; switch (e.Button.ImageIndex) { case 0: //bold doc.execCommand("Bold",false,empty); break; case 1: //italic doc.execCommand("Italic", false, empty); break; case 2: //underline doc.execCommand("Underline", false, empty); break; case 3: ...Show All
Visual C# Difference between 'string' and 'String'
Hi I would like to know the difference between 'string' and 'String' in CSharp 2.0. I had thought that 'string' mapped onto the Framework Type 'System.String' but I got a code compile error that I cannot explain. I am using Visual Studio 2005 (but I have also installed SP1 Beta). Consider the following two lines of code. private static String _uid1 = new String(Guid.NewGuid().ToString()); private static String _uid2 = new string(Guid.NewGuid().ToString()); The code for uid1 generates an error but not for uid2. The code for uid11 states the error is because 'System.String' does not have a constructor that takes a parameter of type 'String'. So what is happening so that uid2 does not generate an error Is there some implicit conversion ...Show All
.NET Development Parameterized SQL query for a GridView or DetailsView in Visual Studio 2005 Web Developer
I'm using Visual Studio 2005 Web Developer with a SQL DB. I'm building a basic ASP.NET 2.0 website that allows entering, editing and viewing records stored in a SQL DB table. The website will be used in a local network and hence Windows authentication is being used. WHAT I DID: I dragged a GridView control from the toolbox menu and configured the Data Source so that the GridView displays ALL records from the SQL table. WHAT I'M TRYING TO DO: My goal is it to display the data records in the GridView depending on the respective user's Windows login credentials, so that only specific records are being displayed. I assume I have to use a parameterized query with the parameter being the Windows Login credentials. However, I don't kn ...Show All
.NET Development Socket timeout not expired when the client socket shutdowns
Hi, I have a socket communication in .NET 2.0, with a server socket that accepts many client sockets, creating a thread foreach client. I want to close the communications that don't send data within n minutes from the last communication; so I set timeout option in the client socket with this code: Socket socket = sListener.Accept(); socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, n * 60 * 1000 ); This timeout expires as expected when the client doesn't close his socket. But if the client closes his socket before the timeout expires, the timeout doesn' t expire and so the server can't close the communication. Are there other ways to do this I've tried with setting a KeepAlive, in hopes to get an excepti ...Show All
Visual Basic mouseover?
when my mouse scrolls over a line of text in a dropdown list, i want to update a seperate list box with the same string of text that my mouse is hovering over in the dropdown list. what event can i use thanks. i apologize for not being more specific. i guessed at the control event 'mouseover' which misled you. i am using a combobox. the combobox is being populated from a .txt file when the form loads. it has 20 items in the list and as i move the mouse up or down the list, highlighting the text in blue, i want that string of text that is highlighted in blue to be dynamically displayed in a seperate text box. thanks. ...Show All
Software Development for Windows Vista Event raising in workflow ?
Hi Can my workflow have some events that I will handle in my application [for example windows forms code] I have application that should run in infinite while loop and stop for one hour after each succesful execution. So I would make while with with true condition and on the and of sequence I'd put Delay activity. But how do I know what's going on in my workflow if it never ends It will finally be used in Windows Service so it should be running every our do what it has to do and than go idle... But for now I'd like it to communicate with me by some messages. So if certain conditions happen I'd like to have an event raised. Can I do such thing in workflow If yes, tell me how :) Jarod No, the wor ...Show All
Windows Forms folderBrowserDialog Problems in C#.NET
my Windows Form contains one folderBrowserDialog which is only showing folderBrowserDialog form with Button like Ok, Cancel ,and New Folder and TreeView of local computer is not Showing if(folderBrowserDialog1.ShowDialog() == DialogResult.OK) { txtDestPath.Text =folderBrowserDialog1.SelectedPath.ToString().Trim(); } i got remdies . actually i was using 3rd party controls in this project which is customise treeview control in same project that 's by not showing folderBrowserDialog. i wrote customise olderBrowserDialog with use of third party control and now it 's working fine ...Show All
Microsoft ISV Community Center Forums Macro to Delete Rows
Hi, I am writing a macro that I want to do the following with: 1-Sort spreadsheet by column J. 2-Search for the first instance of the term "unbilled." 3-From that point and down, delete all rows below. 4-Delete specfic columns. I'm having trouble with steps 2 and 3 - the search works, but for the deleting of the rows, it's picking a specific row range. I want it to delete all rows from the first instance of the search term, down to the bottom of the spreadsheet. Each spreadsheet will have a different row range for this, so it can't be a specific range. Any help I can receive would be greatly appreciated. Here is the code: Sub () ' ' Macro ' Macro recorded 1/4/2007 by ___________' ' Keyboard Shortcut: ...Show All
Visual Studio Local Report has Report Server Error???
I have created a local RDLC report and on my development machine (WinXP) all is well. But once I move the application and report file to another machine (Win2000Server) the report throws an error : Microsoft.Reporting.WinForms.LocalProcessingException An error occured during local report processing --> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a congifuration error. See the report server log files for more information. The problem is that I am not, and do not intend to use a Report Server. The RDLC files have already been created, and the data is passed to them like... reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("My_DataSet",dt)); r ...Show All
Visual C# Threading a method that has parameters...
Hello, I would like to know if there is any option to call a function with parameters in a seperate thread I currently have a work around using public varibles inside my function. That way I am able to create a thread and run the function in seperate thread. Pls give me some suggestions or example code. Thanks, Sathish From ParameterizedThreadStart documentation: // To start a thread using a shared thread procedure, use // the class name and method name when you create the // ParameterizedThreadStart delegate. // Thread newThread = new Thread( new ParameterizedThreadStart(Work.DoWork)); // Use the overload of the Start method that has a // parameter of t ...Show All
SQL Server Number of ROWS of "Output of Aggregate Transformation" sometimes doesn't match the output from T-SQL query
While using Aggregate Transformation to group one column,the rows of output sometimes larger than the rows returned by a T-SQL statement via SSMS. For example,the output of the Aggregate Transformation may be 960216 ,but the 'Select Count(Orderid) From ... Group By ***' T-SQL Statement returns 96018*. I'm sure the Group By of the Aggregate Transformation is right! But ,when I set the "keyscale" property of the transformation,the results match! In my opinion,the "keyscale" property will jsut affects the performance of the transformaiton,but not the result of the transformation. Thanks for your advice. According to the SQL Books Online documentation, the keyscale pr ...Show All
Visual Studio Team System Merge Limitations Caused by Branching Hierarchy
I'm in the process of planning a migration from VSS to TFS and have come across a stumbling block when trying to merge from a Branches/Trunk-v1-BugFix subfolder to the Trunk folder. (The issue stems from the fact that the Branches/Trunk-v1-BugFix folder was originally branched from Releases/Trunk-v1). My repository layout is as follows: - Project1 - Branches - Releases - Trunk Let's say I reach version 1 in Trunk development. At this point I branch the latest Trunk version to Releases: - Project1 - Branches - Releases - Trunk-v1 - Trunk Ongoing development occurs in Trunk. Meanwhile, to fix a bug in version 1, I branch the release version 1 of Trunk (in the Releases folder), to the Branches folder where it can b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateTexture MipMaps
Hi, If I change the MipLevels below to 1, everything works just fine; However, I also want to create my own mipmaps for the texture and somehow attach them to the texture. I guess my question is, how do you attach mipmaps to the texture I tried adjusting the miplevels to 3. If I use a 4x4 I should have a total of 3 miplevels: i.e. 2x2, 1x1. An Array of 5x5 should be enough. Do I have to play with the SlicePitch I thought that was only for 3D textures. The error I get is: First-chance exception at 0x77c46fe2 in mipmap.exe: 0xC0000005: Access violation reading location 0xcccccccc. Unhandled exception at 0x77c46fe2 in mipmap.exe: 0xC0000005: Access violation reading location 0xcccccccc. A snippets of code is provided below. Thanks ...Show All
Visual Studio Team System In VSTS, how to modify the version of the reference in webproject by asp.net2.0 designed
1- From the Start menu, choose All Programs a Microsoft Visual Studio 2005 a Microsoft Visual Studio 2005 2- From within Visual Studio, choose File a Open a WebProject … . Then Open a webproject in VSTS. 3- Right click on the project, and choose P roperty Page, display the property windows 4-Choose Reference, I find that some versions of references are auto-update. 5-If the versions of reference is auto-update, In my project,the reference dll will has a refresh file. In my vsts, the refresh file is checking but my reference dll is not checkin 6-The other workmember will not find the reference dll ifrom our vsts Why How can I do Who can help me How can I modify the version of th ...Show All
