IIM's Q&A profile
SQL Server AS 2000 DSO loses connection
We use DSO with ASP.NET 1.1 via COM layer through interop. However, sometimes after awhile the connection can no longer be established. The error occurs somewhere in the following code, most likely the first line: dsoServer.Connect ServerName Set m_dsoServer = dsoServer If m_dsoServer.MDStores.Find(mvarDBName) Then Set m_dsoDatabase = m_dsoServer.MDStores(mvarDBName) Else ' Dont do nothing for now End If The error reads: Error: Cannot connect to the repository. Restarting IIS fixes this problem until it recurs. Any idea Thanks, Boris Zakharin I am not sure what you mean by "changing a filter". Creating cubes from web application is a loaded operation. You may w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help on writing text on the screen?
I'm well on my way to finishing my first mini game called planet defender. What I need now is a way to display the score the player has on the screen. How do I draw text onto the screen Here's a quick image of my game so far :): http://www.rocketsoft.gm-school.uni.cc/uploads/Screenshot.JPG The ZMan wrote: It means you have not declared batch (of type SpriteBatch) in the right place (or not at all). Hmm, Iam new to C#, so I will ask..: havent I declared batch with this line: public void drawText( SpriteBatch batch, Vector2 position, string text, float scale) If not, how do I then declare batch and where is the right place (I have tryed to Google it now, how to decla ...Show All
SQL Server Mining Model predicts same set of products for all cases
Hi I have developed a product basket mining model as follows DSV SELECT C.CustomerId ,C. CustomerIdName ,P. ProductId ,P. ProductIdName FROM Customer INNER JOIN CustomerProduct ON C . OpportunityId = P . OpportunityId Mining Structure CREATE MINING MODEL ProductBasket ( CustomerId TEXT KEY, CustomerIdName PREDICT, ProductId PREDICT, ProductRecommend TABLE PREDICT ( ProductId TEXT KEY ProductIdName PREDICTONLY ) ) USING Microsoft_Association_Rules Prediction Query Since I want the output in the following format ...Show All
Windows Forms validate a serial number from a DLL
I am trying to get my project to validate a serial number using a DLL or EXE file I have written instead of the included algorithm, but I have no clue how to get the Customer Information dialog to read from a DLL or EXE file or if it is even possible. I have searched through other threads and haven't found anything extremely useful. I am using Visual Basic .NET and Visual Studio .NET 2003. Can anyone help me with this ...Show All
Gadgets drop shadow?
Hi, I am creating a gadget that will have a height that can very, (it will contain a list, and the length of the list dictates the height of the gadget) and I would like to know how i can achieve a drop shadow for the gadget. I can add a dropshadow to the png file that is used for the background of the body, this would work if it was a fixed size. Since I need the height to grow, this won't work. So I have tried setting the background image to a transparent png file and added a table to the html that has a top png, middle png and bottom png as backgrounds in the table cells, these pngs have transparent dropshadows. When it renders, what should be transparent on the pngs in the table, it shows up pink. Any help/info/advice would be ...Show All
Visual Studio 2008 (Pre-release) Quick Binding question....
This will hopefully be a very easy question... In the below example, the TextBox always displays the correct, bound, value from the dataprovider. But "MyControl" always displays the FallbackValue ("test") even though the binding expression is identical. I'm a bit confused as to why this should be <StackPanel DataContext="{Binding Source={StaticResource BTTC}}"> <TextBox Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> <local:MyControl x:Name="_myControl" Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> </StackPanel> public class MyControl : TextBox //FrameworkElement//, INotifyProperty ...Show All
SQL Server Is it possible to get Multiple DataTables in a DataSet like VB.NET?
Hello My stored procedure returns 4 recordsets. I require these recordsets as 4 different datatables in a dataset in Sql Server Reporting Services 2005, to use them on my rdl report. I don't want to make the 4 diffrent datasets. Is it possible in SqlServer Reporting Services 2005 Please help me. Its urgent. Well, I think nobody here is interested to answer this one. Do anyone suggest me any good forum for Reporting services queries. Looking. ...Show All
Silverlight (formerly WPF/E) Getting extent of TextBlock element
I will be dynamically creating content with many textblocks. How can I get the extent of the text in a TextBlock The Width property returns 0 unless I give it an explicit value. Michael S. Scherotter Mindjet Labs Manager Mindjet Corporation This is something that currently isn't supported in this CTP. We are in the process of adding two new runtime properties called actualWidth and actualHeight which will provide the extents for simple text measuring. This will be enabled in future CTPs/releases. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Software Development for Windows Vista XPS Comparing
Is there a way to compare two versions of an XPS document to highlight the changes made similar to windiff Hi Jasens, this depends on how different the documents can be, and how do you want to look at the differences. Basicly it are all xml documents inside, if you only expect relative minor differences (like a change in text, font change, etc..) you could do a diff at that level (presumably even with your windiff application). If you really want a graphical view of the differences (to see image and color changes and so on), I think the best way is to convert the files to a pixel format and do a diff on that. I do not know of a tool for the moment that does the latter automatically for xps. Regards, nixps ...Show All
SQL Server Database restore speed
This problem isn't specific to SQL Server, but because of the size of the files I deal with with SQL Server, it is the place I notice it more often, and hopefully one of you has, too. If I am restoring a database (or simply copying a huge file) that takes more than a couple of minutes, I find, by watching the network bandwidth, that after a couple of minutes, the data rate cuts on half and stays that way for the rest of the restore (or copy). If I have a Gb/s connection, maybe I start at 240Mb/s and then drop off to 120MB/s. If I have a 100Mb/s connection, maybe I start at 70Mb/s and drop to 30-40MB/s. It is fairly consistant in how long before the drop and in the magnatude of the drop (approximately 50%). The network staff have no c ...Show All
Windows Forms Web Browser Forms Aspect Ratio
MSDN Forms and Programers I was wondering if anybody could assist me with using the Windows Forms WebBrowser. I currently have an almost miniature web browser imbedded with an application I created. Since the web browser is smaller than normal it would be nice to have each web site still fit inside it without the scrollbars being added. Does anybody know any tricks of the trade in dealing with this problem. I would appreciate any ideas. Thanks for the help Travis I'm pretty sure the Internet Explorer can't scale web pages. Since WebBrowser is just IE embedded in a window, it would not be able to do so either. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BasicEffect Class Acting Odd?
When I use my own HLSL shader to handle VertexPositionNormalTextured data. My textured quad appears perfect on the screen with no irregularities. But when I try to use the BasicEffect class to handle texturing etc. The texture looks as though it has went through some sort of filter or something. Here is an example image of what is going on. If you zoom in you can see the blurring on the edges and for some reason the white block in the left corner is being partially brought over to the top right My first guess is there is some property in BasicEffect I am missing, but I skimmed through it looking for anything that may do this and found nothing. Bit of a threadjack here, but your name was ringing a bell in the back of my head. After ...Show All
.NET Development Memory management for unsafe code
Hi, It is known that Garbage collector does the memory management for managed code. i have a code that reads 1 billion rows of an event file (.evt). I m parsing each record of the evt file one by one using UNSAFE code. Due to a large no. of rows, my application used to crash, so i used GC .Collect(); & called it after some specific no. of rows have been read. My problem was resolved My question is who does the memory management for unsafe code Is it the garbage collector which i m calling. I m saying this because my memory mgmt problem was resolved after i added the GC.Collect statement. Be sure to distinguish unmanaged code from unsafe code. Unmanaged code is automatically unsafe. B ...Show All
Visual Studio Team System Can Code Coverage ignore private methods?
Assuming the "Black Box" approach of testing is there any way to set up Code Coverage in TFS to ignore private methods etc Any help would be much appreciated! Thanks Peter! I'll give both methods a go in my tests today. Thanks again! Edit: I've tried both attributes and while the Code Coverage ignores the marked methods it still counts the lines as untested (which is true but not what I'm after). Looks like I'm just going to have to settled for less than 100%. Thanks again though! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Path to becoming a professional game programmer
I'm sure a lot of aspiring game programmers out there are looking for a road map on how to become a pro. (I know I am!). Based on all the great products coming out, and the ones that already exist, it's probably very confusing for someone new to this. I put together a quick "road map" based on my (limited) knowledge to help those rookies get to the finish line. Please feel free to add to, change or comment...especially if you're already in the busniess! Update(11/22/06) - moved some items around and added new categories based on suggestions Beginner - Torque X Create some simple games with TorqueX Game Builder ...can't comment much more on this since I've never used it Begi ...Show All
