Pedro Felix's Q&A profile
SQL Server How to group values in a pie chart? Very urgent! Please somebody say something!
Assume I have a pie chart whose Value: is Internet Sales Amount and Category group: is Product Subcategroy . Suppose I have 5 segments(slices) with the value 200,150,80,50,and 40. Now, here is the question; I want to aggregate those values that are less than 100 (in this case the last three values: 80+50+40 = 170) and put the sum(170) in one segment, so that in the new pie chart we will have only 3 segments with the value 200,250, and 170. Any idea is appreciated. This can be done through MDX as shown in your related thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=638700&SiteID=1&mode=1 -- Robert ...Show All
.NET Development How to measure http request time in multithreads
Hi. I'm using C# and .Net 2.0 And visual studio 2005. I want to create a "load test" tool for my web server. the tool should open a few threads, and each thread will post http request, and download the response. My problem is that I want to messure the time it takes for each thread. As I see it I have to lock the thread before i take the time, and release the lock after i recieve my response and stop taking time. The problem is that If I'll do that, I will not have a few requests simultaneously on my server. The code I used is: lock ( new Object ()) { reqTime = System. DateTime .Now; response = ( HttpWebResponse )request.GetResponse(); sr = new StreamReader (response.GetResponseStream(), System.Text ...Show All
Visual Studio 2008 (Pre-release) WCF: How to Add Service Reference?
From the tutorial video, http://www.msdnevents.com/resources/2006-summer-resources.aspx , demonstrates using the "Add Service Reference" to generate the client code for the service. It should have been a better approach than cryptically coding from the commandline for the proxy class. However, some cases this option is not available in the project and if so the reference svcutil is pointed to [ ...Microsoft Visual Studio 8\Common7\IDE\svcutil.exe of v2.0] upon creation and as observed, the proxy class (especially for tcp and namedpipe) doesn't matched or has error. Q: Is there anything to add [configs|settings|etc..] to make the Add service reference available in the project If not, Is there any available updates in support and ...Show All
Visual Studio Team System How to answer some user questions
Hi, Not being sure where to post this question, I decided to post it here and maybe if it's not appropriate I will move it to another thread. So here goes. I'm the administrator for the Team Foundation Server at my company. I installed it as a single server (Xeon 2.8 GHz, Nocona, 1 GB ram ecc, 2 sata disks in raid 1 config) and it works fine. However, there are times when the users (i.e. the developers) complain that they can't check-in items. There are no traces of the event in the event logs and there don't seem to be any other signs of a malfunction. After they try again, once or twice it usually works. My question really is: what do I tell them when they ask me "why can't I check in this file " (doesn't happen with chec ...Show All
Visual C++ Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?
Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host Private Declare Function GetPaperAbsorbency Lib "C:\Program Files\Microsoft Visual Studio\MyProjects\geob\Debug\geob.dll" (ByVal Ftn&, FilePath$) As Integer Private Declare Function Cov2Key Lib "C:\Program Files\Microsoft Visual Studio\MyProjects\geob\Debug\geob.dll" (ByVal Coverage&, ByVal MultFunct&, ByVal Ftn&, ByVal EF&, FilePath$) As Long Above are two declarations of dll functions that I added to the dll I was working on. The VB program cannot find the entry point for Cov2Key. Is there something wrong with my declarations I can provide more source code if needed ...Show All
Smart Device Development Simultaneous GPRS & GSM on Class A device (part 2)
Hi all! Apparently, an admin locked my previous thread on the subject . I'm not a native English speaker, & I don't live in America either. I'm still wondering something that wasn't answered in the previous thread, & that is not off subject of the theme of this forum. As I said before, I haven't bought any device yet, & the software I'm planning to code is still in the state of project. Let's suppose I have a Class A peripheral, & that my phone provider supports simultaneous GPRS & GSM too, I guess my software to be working both the Windows Mobile 5 (or more) Operating System & the .NET Compact Framework v2 SP1 have to support simultaneous GPRS & GSM too. If either of them don't support it, it will never work, ...Show All
.NET Development Node order when validating against a DataSet generated schema
I have a schema which was generated by a dataset which was filled by a data adapter, so it's all xs:element -> xs:complextype -> xs:sequence. I try to validate an XML document against the schema, and it fails because nodes are out of order. Everything about the document is correct except for the node order. Is there any way I can either magically reorder the nodes according to the schema or ignore node order when validating Alternately is there a way I could modify the schema to allow unordered nodes I tried changing xs:sequence to xs:all, adding maxOccurs=1 to the appropriate nodes, but it failed when it got to my maxOccurs="unbounded". I create a new xs:sequence section below the xs:all section and added the unbounded nod ...Show All
SQL Server SSIS loses layout of precedence constraints when saving.
This is more a medium level annoyance than a problem. When I save a package, close it and later re-open it, the precendence constraints end up all over the place making my neatly layed out diagram a shambles. Call me anally retentive if you like (you wont be the first ), but I find this extremely annoying. Does anybody else have this problem Does anyone have a solution Sure my SSIS installation got corrupted. It's just too bad Microsoft does not have any articles on how to resolve this problem. I also I installed Visual Studion.NET 2005 but it didn't help. I installed Visual Studio.NET 2005 SP1 Beta. No luck. What else I can try Perhaps uninstall everything and install it again. Does anyone know if order is importatnt I mean ...Show All
Windows Forms Nothing is showing up in my datagridview
I'm using the ODBC driver to connect my visual studio application to my Firebird database. I have a dataset set up correctly, my tables along with the fields show up fine. I can preview data fine. I dragged a table onto my form from the data sources, and it showed the field names with no data. It added the dataset, a bindingsource and a table adapter to my application. However, when I run the program, nothing is showing up in the datagridview. I have spent a lot of time trying to debug this, but I haven't gotten anywhere. Where do I being I would hazard a guess that the connection is not being opoened and the datasource is not being set or the DataBind method is not being called The one problem wit ...Show All
Smart Device Development how to turn off the ppc
how to turn off the ppc with c# .net cf 2.0 Thank you . Please find the descriptions in the MSDN docs: Internal: http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vclrfInternalPG.asp extern: http://msdn2.microsoft.com/en-us/library/e59b22c5.aspx The DllImport attribute tells the CLR which native dll to load. More Infos can be found here: http://msdn2.microsoft.com/en-us/library/26thfadc.aspx ...Show All
SQL Server Error trying to create cube partition
I've converted 4 AS2000 databases to AS2005. In just one of these databases, I am not able to add any partitions to any of the cubes. As soon as I click the "New Partition" link, get the following error: The wizard will close because of the following error: An item with the same key has already been added (mscorlib). I get this error if I try to create a parition from either Visual Studio 2005 or SQL Server Management Studio. AS2005 version is 9.00.2047.00. I can add paritions to cubes in other databases on the same server. I've been all over looking for help on this, with no luck at all. If anyone can help me, I'd sure appreciate it. Most likely something went wrong ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3d tools using mfc+Directx
hi all, Basically am a entry level game programmer now i had started my path on tool development, presently i am developing a software like motion editor for that i need to write code for the basic setup so i want to know is there any article of tutorial for creating the basic setup using MFC + directx. ie multiple viewport (you know what a editor needs) please help... KissPsycho ok senthil, tell me where can i get the resource for managed directx, any site for tutorials ,articles or books etc. ...Show All
SQL Server Need to sort group based on data from a different data source.
Hello all, I have a matrix report in which the columns are selected and should be sorted based on criteria from a data source other than the one being used to generate the report. Let me explain that in a little more detail. A query into the first data source gives me a list of operations and a sequence number associated with each one. The operation list is used to select information from a second data source which is used to generate a matrix report where the operation is used as the column group. I do this by creating a multivalue report parameter with values from the first query, which I then use to constuct the second query in the second data source. Works pretty slick! Now I want to make sure that the matrix columns are sorte ...Show All
Audio and Video Development Windows Media Encoder 9
I hope someone can help me. Im broadcasting using Windows Media Encoder 9. Im doing a screen capture off of another computer. But today, its only using black and white screen. Its allways been color. Anyone know how to switch this back Thanks for your time guys. ok, somehow i got that problem fixed but now i have another one. When im switching sources, while encoding, sometimes the sound bugs out, and goes to a complete screeching sound. If i switch to another source, then back to the live source im using, sometimes the screeching sound goes away. Any idea what is causing this ...Show All
Gadgets Vector Graphics in Gadget
I am making a gadget that will be resizeable from the settings menu (when undocked), and I was wondering if the sidebar had any type of native support for vector graphics so I wouldn't have to make and distribute separate background images to maintain a high quality when it is scaled up. I'm assuming not since it is rendered by IE, but it doesn't hurt to ask. Thanks. You don't need to go quite that drastic. If you then look at Polaroid , you'll see I'm layering VML images on top of a transparent drop shadow. So long as you don't want your whole Gadget to be transparent, you can use something similar. You'll need a 100% transparent PNG file (blank.png) and a 100% black PNG file (border.png), ...Show All
