priyanka.dash's Q&A profile
Visual Studio 2008 (Pre-release) Windows Media Photo image format support?
Hi, Does (or will) .NET 3.0 support the new Windows Media Photo image format Thanks! Yes it does. Look for the WmpBitmapDecoder and WmpBitmapEncoder classes in the System.Windows.Media.Imaging namespace. Also, you can use the BitmapFrame or BitmapImage classes to decode Windows Media Photo files. ...Show All
SQL Server Product Basket Problem
Hi, I have to build a Poduct basket mining mode Hi, I have to build a Product basket mining mode such that when a customer selects a product the model should be able to recommend him/her some more products. I have a customer, product transaction table. I have come across many typical examples where the output is as follows Customer Recommended Products Cust1 a, b, c……. Cust2 e, b, f………. But I want the output of the model to be as follows Product RecommendedProducts A B, C, D……. B E, D, A……. C D, A, F…… How should my mining model structure and the prediction query look like ...Show All
SQL Server Pass parameter to IS Package through SQL Agent Scheduler
Hi, I have to schedule jobs through SQL Agent, I know how to do it in command line. But I am wondering if there is a way to do it in Scheduler. Also, I need to know the way to do it through SMO. Thanks, Fahad ...Show All
.NET Development opening LPT port
hi I want to open LPT port and send some data.How can i do that in VB.Net anything on LPT1.. or Parallel Port I have already tried Com or Serial Ports.. How do you open a Parallel Port for printing tnx.. email me back at janverge@mail.com tnx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Limits of DrawPrimitive / VertexBuffer size
Hi, The code I've been working on for the last few hours is a 360 version of some terrain code I had written for the PC. A huge gridmap of squares (each square is 4 triangles, not 2) drawn in a single call. Although I know this doesn't leave me many options for culling, I'll get onto that sometime this week. My question is about the limits imposed on the Draw call and VertexBuffer size. GraphicsDeviceCapabilities exposts a property called MaxPrimitiveCount, which for the 360 appears to be 1,048,575. Yet I've been drawing a grid of 1000x1000 squares (1 million squares, 4 polys each) which is over 4 million in a single call and as far as I can see it appears to be drawing all of them. What (if anything) does this MaxPrimitiveCount repr ...Show All
SQL Server Installation of SQL Server 2005 post-SP1 hotfix 918222 (Build 2153) fails at copyengine.cpp Line: 689
I believe that I mistakenly attempted to apply the Analysis Services component of this update before applying the SQL Server component. The update now fails continuously with the following message: 02/05/2007 17:58:24.990 ================================================================================ 02/05/2007 17:58:25.021 Hotfix package launched 02/05/2007 17:58:27.615 Product discovery successfully completed during the install process for MSSQLSERVER 02/05/2007 17:58:27.630 SP Level check successfully completed during the install process for MSSQLSERVER 02/05/2007 17:58:27.646 Product language check successfully completed during the install process for MSSQLSERVER 02/05/2007 17:58:27.661 Product version check successfully completed ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wireless GamePad in windows exceptions
Working on a SpaceWars mod, with a wireless GamePad connected using the new Wireless GamePad for windows receiver. I notice that: Y button presses are not being picked up & getting errors in Right Thumbstick 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightX' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightY' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' anyone else come across this I'm going thru the GamePadHelper.cs class, and it looks consistent for Y with the other keys that work. Looks like a bug in SpaceWar star ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What does "homogeneous" mean, really?
What does "homogeneous" (homogeneous coordinates, homogeneous clip space) really mean Even Wikipedia has an obtuse answer. The word homogeneous simply means "the same throughout", but what is the "sameness" shared by X,Y,Z coordinates The best definition of "homogeneous coordinates" I've found is "A set of n+1 coordinates used to represent points in n-dimensional projective space. [...] The coordinates are homogeneous because a scaling of each of the coordinates by the same nonzero constant doesn't alter the point to which the coordinates refer." That's an odd use of the word homogeneous. Another definition says, "A four-dimensional method of representing 3D space." But what's h ...Show All
Visual Studio Tools for Office Opening OutLook problem
Dear All, I'm trying to open outlook 2003 via my application in C# in VS2005. I just copied the sample from this link http://support.microsoft.com/default.aspx id=819398 and tried to run the application but I got following exception in this line: //Automate the Outlook mail item. Outlook. MailItemClass mItem = (Outlook. MailItemClass )doc.MailEnvelope.Item; Additional information: Unable to cast COM object of type 'System.__ComObject' to class type 'Microsoft.Office.Interop.Outlook.MailItemClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however ...Show All
Smart Device Development How to change SIP icon
undefined ...Show All
SQL Server How to export the result of a sql 'for xml' query to an xml document
I have a sql query with a 'for xml explicit' clause. I would like to export the results of the query as an .xml file. I specify the query as 'SQL Command' in an OLEDB source adapter, but I don't know see an adapter that I can use for the destination. Any ideas Thanks. Thanks. I will order Donald Farmer's book. I tried using an Exec SQL task and saving the result to a string variable, then using that variable as source to an XML task. I wrote a simple XSLT transform to copy the document and I set SaveOperationResult = True and DestinationType = FileConnection. I get errors on the Exec SQL task even though the query runs fine in Query Editor. ...Show All
Visual C# Unable to debug C# solutions
I'm using Visual Studio 2005 Pro. This problem is repeatable with archived code on backup discs as well as new solutions. When I attempt to run my apps in Debug Configuration with breakpoints, I get the message: the following module was built either with optimizations enabled or without debug information. D:\Programming\Solutions\******... To debug this module, change its project build configuration to Debug Mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option. Here's a screenshot . This is done with a brand new solution. File > New > Project > C# > Windows/Windows Application > Ok > Build > Run. [update] as par this thread , I've tried restoring factor default settings. ...Show All
Visual Studio Express Editions Scrollbars
Apologies in advance if this question is in the wrong spot. I've tried searching forums, msdn. kb's... everything I find doesn't seem to apply and I don't understand why something that should be so simple to do is giving me such a headache. :) I have a WebBrowser control on a form that is used to display information. As data is added, the code does a "ScrollTo" function so that new data is always displayed at the bottom of the control. If someone is trying to view data and they move the scrollbar to "look back" then when new data comes in while they are scrolling, the form jumps to the end of the display and they have to scroll back to where they were. Using the scroll bar to move back, or placing the cursor in th ...Show All
SQL Server How extend excelRendering
HI, I have a problem. In my report I used a custom funcition to convert seconds to string (because I want to show the amount of hours.. if I use format hh:mm:ss when the amount is greater than 24 exaple 25 this format shows 1 as hour)... now, when I export the report with excel I have the necessity to have DateTime and not string. There is the possibility to extend the excel rendering Can this help me Have anyone some idea Thanks I think you would want your custom function to return the type System.DateTime. Then when the Excel export looks at the value of the textbox, it will see the DateTime type and put that into Excel as a date. You will probably need to apply formatting to this in the Format property ...Show All
Visual C# ManagementScope.Connect taking 20 seconds
In the code listed below, I am attempting to do a ManagmentScope.Connect to do a WMI query on a remote machine. While this connect only takes milliseconds on most machines on others it takes up to 20 seconds. One the ones that it takes 20 seconds on I recieve the following error: ERROR: System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) I am OK with the failure, but I cannot have the failure taking 20 seconds to return control back. I attempted to set the ManagementScope.Options.Timeout value to 500 milliseconds but still doesn't return back control for 20 seconds. Any help would be greatly appriciated! Vincent Fournier public string GetW32_Compute ...Show All
