Pockey's Q&A profile
Windows Forms Checkboxes in VirtualMode of Listview
Hi all, I would like to use the CheckBoxes in a Listview that is being filled via VirtualMode. A Checkbox is displayed for each item that is checked intially. The rest of the items has no checkbox and the checkbox of the already checked items is readonly. If I fill the listview manually by using "add" the checkboxes are displayed as I want them. I found no entry in MSDN that would point out that a Listview in VirtualMode does not support checkboxes. Has anyone any ideas regarding this Thanks in advance. So, the built-in checkboxes of a listview are definitely not available while using virtual mode I have to paint the checkboxes myself and have to programm all handlers for the checkboxes on my ow ...Show All
Visual Basic Printers.count - runtime
I have a project that's using the printing power pack. I'm getting a runtime when calling the printers.count method when no printers have been installed. Has anyone encountered this problem John Here is the code: Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim printer As New Printer If Printers.Count > 0 Then MsgBox(Printers.Count) End If End Sub End Class ...Show All
.NET Development streaming wave data
Hi I need to play streaming wave data. I need to create the wave data dynamically and pass it to a buffer in real time. The buffer will never be empty. I have found a few c++ examples but i am hopeing to save a lot of time if i could find some examples in vb.net. I have vb.net 2005. I asume that i'll be using direct sound. I already can do it by creating wave files on the fly and playing them. But the latency and the inconsistancy that arises from reloading new wave data in the form of a streamed wave file makes it not usable. Where do i look Thanx Jerry Cicierega You can use DirectX's Direct sound to do what you are trying to achieve with simplicity and no complexity. There is a ...Show All
Commerce Server Failed to marshall data into the commerce dictionary
I have extended the OrderAddress class (created MyOrderAddress class, changed OrderObjectMappings.xml and OrderPipelineMappings.xml as detailed here: http://blogs.msdn.com/vkumar/archive/2006/06/28/649896.aspx However, when I start up my site and get to the point where I run the basket pipeline I get the following exception: Failed to marshall data into the commerce dictionary. For more information refer to trace logs. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.CommerceServer.Runtime.Orders.OrderFormMarshallingException: Failed to marshall data i ...Show All
SQL Server How do I update a table in batches ?
I have an application that processes a large number of input files in a CSV format and then posts the data to a table on SQL Server Express. The data table can end up very large and I have no requirements to store all the data locally. I have included the table in my DataSet using visual studio express so I have access to the schema, but will not run Fill() on it. Ideally I would like to process a CSV file at a time. I can add records to my local (empty) data table and when I am happy, I can call tableAdapter.Update() or dataSet.DataTable.AcceptChanges() to generate lots of SQL 'INSERT' commands to update the physical database at the server end. I would then like to empty my local data table (so it doesn't get too big) and repeat the same ...Show All
Visual C++ Profile Guided Optimization and Inline Assembly Code
Does anyone know what needs to be done for PGO instrumentation to work with inline assembly code I have some inline assembly code that works fine with normal debug and release builds, but gives an access violation when compiled for PGO instrumentation. This code makes extensive use of FPU instructions. Are the inline assembly rules different with PGO instrumentation Thanks for any suggestions. I just figured it out. I'm mixing Intel C++ and VC++ in the same DLL and I made a mistake that only appeared when the PGO instrumentation build was selected. This is because something that was inlined in the debug/release builds did not get inlined in the PGO inst build. This one is my fault ...Show All
Visual Studio Tools for Office VS 2003 enterprise developer and vs 2005 professional
Hi can anyone tell me what is the limitation of vs 2005 pro compare with vs 2003 enterprise edition. Can vs 2005 pro do the office development, as i know it cannot but i have try it on its ok for me to extract the data into the excel document. please advice Hello, This is a great site for comparing VS products. http://msdn.microsoft.com/vstudio/products/compare/default.aspx . Does this help ...Show All
.NET Development Client not returning server cookie
Hi friends, During my server's communication with client, I add a cookie to the HTTP response. I also set the "Expires" property of cookie using cookie.Expires = DateTime .Now.AddDays(1); This used to work earlier but today I have seen that my client has stopped sending the cookie back to me in the same (TCP and HTTP) session. I saw that in the HTTP response from my server, the Max-Age info about the cookie was missing. Does that mean that the way I set the Expires property of cookie did not work I can't seem to figure whats the problem. Can anybody point out what could the possible problem be How can I ensure that I get the cookie back from client Thanks n Regards, Kunal Have you tried to exami ...Show All
Windows Forms Invalidate() Partial Paint
C# 2003 I'm calling Invalidate() <no parameters> and my control is not redrawing completely. If I drag another application on top and then off, it does redraw so I know the code is otherwise correct. The documenation is not very clear about Invalidate() in this regard. Should this be working and if so, any ideas on why it might not be working Are there any tests I can do to isolate the problem In my case, I have a BackgroundImage that is not redrawn. There may be other portions that are not redrawn, but this could be just a problem with the background. thx I tried calling Invalidate() and then Update() and the problem is still there, but it does behave differently which gives me a clue. ...Show All
Visual Studio crystal reports deployment problem
hi is it possible to use crystal reports for my complied file without installing it with embedded Crystal reports module for example just copy some dll files and run the application on any computer I want to run the application without installing it. thank you in advance Hi the target computer needs to have the reg modules for crystal reports installed, otherwise your report won't work Hope this helps, please close the thread if it does. ...Show All
Visual Studio Express Editions CopyFileEx function gives me access denied
Hi. Im getting Error code 5 (access denied) while trying to copy some files using copyfileex. How I use the function: CopyFileEx("C:\\folder\\file.exe","C:\\Destination",CopyProgressRoutine,NULL,FALSE,COPY_FILE_RESTARTABLE); The file exists and the destination folder does too. For such APIs, please ise the newsgroups at http://msdn.microsoft.com/newsgroups/topic.aspx url=/MSDN-FILES/028/201/015/topic.xml OTP Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server OWC-XML Structure migration issues SQL2005
Hi, I recently migrated a customer's BI solution from SQL2000 to SQL2005. He used to access the Analysis Services cubes via pivottable from OWC 9 or 10. Concerning Cubes, Measures and dimensions he now has the exactly same structure on SSAS as before on SQL2000. Now I have about thousands of reports in OWC 9/10 XML format which i have to migrate to OWC11 to work with SQL2005. I started replacing the version number, Dataprovider and the new Servername. Now connection can be established but I only see the reports measures. None of the reports dimensions (+ structure + filtering) can be seen in the pivottable report. Is there any documentation on what has changed in the xml format or any smart way to easy migrate owc9/10 xml-repor ...Show All
SQL Server How to create cumulative S-curve?
Hi I need to make two reports: one containing the Raleigh chart, the other containing a cumulative curve. In the raleigh report I do this: Per project I can see the amount of mandays on a timebase(weeks). For the s-curve (cumulative curve) this needs to happen (and I dont know how): I need to see the sum of the amount of mandays on a timebase(weeks). An example: In raleigh curve: week1 has 20md(mandays), week2 has 30md, week3 has 15md, week4 has 5md In s-curve the same values should give: week1 has 20md, week2 has 50md(30+20), week3 has 65md(50+15), week4 has 70md (65 + 5) I tried a sum of a sum but thats not allowed in RS Anyone who knows how to generate an s-curve (cumulative curve) ...Show All
Software Development for Windows Vista Filtering activities before insertion; ActivityValidator question
Hi! I have 2 questions actually: I am hosting the designer in my app with a custom root activity as the root designer. This root activity can have child activities where exactly 1 child can be of the type StartActivity (also a custom activity) and several childs can be EndActivity. I overrid InsertActivities of the designer to check wheter there is already a StartActivity. If there is, I give a list of activities to the base.InsertActivities where I filtered out the new StartActivity which is about to be inserted. This works well for Drag&Drop operations from the Toolbox, I get my message as expected and the 2nd StartActivity is not inserted. However if I copy (using Copy&Paste) a 2nd StartActivity, my message pops u ...Show All
SQL Server Creating referential integrity constraints
Two ways to do this... Creating the constraints when creating the data model OR using SQL to use the 'reference' constraint. Does 2005 provide any other automated method of creating the Primary Key - to Foreign key constraints without writing the SQL to do this Thx Thank you for your answer, I didn't know that the GUI would do the things that you described. That was what I was referring to. I guess for me, the automated method would be that when you create a primary key, the create the foreign key in the 'create table' GUI, the foreign key constraint would be automatically created if the column names are the same. Does this make sense Maybe coffee is the answer. As you mentioned above, there a ...Show All
