evci's Q&A profile
Silverlight (formerly WPF/E) updating SplineDoubleKeyFrame properties from javascript
behaviour is pretty errant, sometimes I can get it working other times don't. I can't find the logic why it breaks on me. basically I have in screen 100 elements, all created dynamically, looping over them updating their storyboards props and trying to move them around. in javascript it goes something like: for(var n=0;n<100;n++) { var target = wpf.findName(objectID); var storyboard = target.findName(storyboardID); var currentValue = target.findName(objectElementID[objectElementProperty]); var startKeyframe = storyboard.findName(startKeyFrameID); var endKeyframe = storyboard.findName(endKeyFrameID) startKeyframe.value = (currentValue).toString(); endKeyframe.value = (value).toString(); // thi ...Show All
.NET Development Need help understanding dynamic DLL loading
Hi all, need some help with dynamic DLL loading. I am trying to create an application that will instantiate a class (from a DLL) at runtime. The type, exposed properties, and exposed methods of the instantiated class are known (inherited from a custom designed class). Using Assembly.LoadFrom([Path]) coupled with Activator.CreateInstance(type, param()) I was able to almost instantiate the class (for some reason I get an parameter error, will explain more). Unfortunatley the LoadFrom() will place a LOCK on the DLL and I am unable to replace the DLL with a newer version even after the application has been closed in the Debugger. The idea is that these dynamically loaded DLLs will be loaded and unloaded wehenever needed (similar to object in ...Show All
Windows Forms System.Windows.Forms.ToolStripOverflowButton query
OverflowButton is associated with ToolStripDropdownItem, can this dropdown item have one more overflowbutton, is it possible There can be only one overflow button in a tool strip, the ToolStrip control implements it. ToolStripDrownDownItem.OverflowButton is an implementation detail to link the buttons in the overflow button dropdown list back to the overflow button. Don't mess with it... ...Show All
Visual Studio 2008 (Pre-release) CommunicationException was unhandled
When doing multiple client load test using wcf Service with tcp , i get the following error. The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10:10:49.6250096'. The same code is working fine for single user version. The service has http and tcp end point. Http end point is working fine with multiple client. Hi, I have a similar problem. When I use a HTTP client there are no problems. But when I use a TCP client the following exception is thrown on the server: System.ServiceModel.CommunicationException The socket connection was aborted. This could b ...Show All
SQL Server Turn the list ?
How do I return a list of sold CD's, showing the last once (least sold) first Below sql, ordered by DESC, returns a CD-list from 1, 2, 3 ... 49, 50, 51. (but I would like the turn it like this) Least sold cd 51 Martin 50 Elvis 49 Krall SELECT top 10 SUM(Cd.Price) AS Sales, Artist.Name FROM Cd INNER JOIN purchase ON Cd.Cd_id = purchase.Cd_id INNER JOIN Cd_artist ON Cd.Cd_id = Cd_artist.Cd_id INNER JOIN Artist ON Cd_artist.Artist_id = Artist.Artist_id GROUP BY Artist.Name ORDER BY SUM(Cd.price) DESC (Due to "=RowNumber(Nothing)" numbers are return instead of salesfigures.) If you are using sql 2005 then you can use the ROW_NUMBER() sql function in your query to get the results and numbers in thee ri ...Show All
Microsoft ISV Community Center Forums Using Autofilter in VBA with a range of criteria
I have working code to autofilter the list I'm interested in for a single criterion in several fields. However, I can't find anything anywhere that shows how to write the object model fields so that I can use a date range. ie. I thought that I would be able to use RangeObject .AutoFilter(Field:=1, Criteria1 > Date1, Operator:=xlAnd, Criteria2 < Date2) I'm not sure that it's possible, but maybe someone knows a workaround. Well, I believe that I finally found an answer by trying to concatenate strings to make the thing work. It might not be the slickest way, but I thought I would post it since it works and someone else could have a similar question. startweek = InputBox("Enter the desired Week Number ...Show All
.NET Development what's the pointer mean in MethodInfo.MethodHandle.GetFunctionPointer()
it's a native pointer, what's this pointer mean jitted code address nonjitted code address confused about this :( thx Gael :) i will go on check this pointer. there's a very interesting thing about it: some time i set breakpoint (int 3) at the pointer, it brack ok, such as System.Windows.Fomrs.MessageBox.Show(). sometimes it fail, never breack, such as MethodBody.GetILAsByteArray. and for generic method, seems different parameters cause different address. microsoft's stuff always so mysterious and interesting :) ...Show All
Visual Studio Team System TypeCastingProblems.cs
I'm sure you guys don't think about issues that are so obvious nobody would every write code that way. I've found out recently that there is a lot of bad code out there that could be easily caught in FxCop. In any case please consider adding the following rules to FxCop. I've written them myself and found too many violations to count. Anyway here we go. 1) Don't call ToString() on a String. I've found that some developers put .ToString() on the end of almost everything. This only catches part of the problem but is a good start. 2) Use Type.FullName instead of Type.ToString(). This is still the developer problem of always putting ToString() on the end of everything. I've also found that this finds a bunch of problems where the code is ...Show All
Visual C# Time of day arithmetic
Hi. I am working with a time string that I want to be able to add a value to. If I enter a time of day as hhmm (example 2000), I would like to add a time value as hhmm (0535 + 2000 would return 0135) and return this as a string. Can someone help me with an easy way to do this please Thanks. My current routine doesn't work, but here is what I have done in sourcecode. The only part that seems to fail is the adding of hours and minutes to the time. Is there a shorter or better way to do this public static string MinSearch( string My Time, string MinConTime ) { int MinMinutes; int MinHours; string timestring= "" ; DateTime StartTime = Convert .ToDateTime(MyTime.Substring(0,2)+ ":&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Calculate Free Memory? (Xbox360)
As for the Xbox360. Is there a way to calculate how much memory your game currently requires and how much free memory is available Provided they are implemented on XBox 360, you should be able to use: // Gets the amount of physical memory mapped to the process context. public static long System.Environment.WorkingSet and I wrote the following method for you to determine how much total memory is available on xbox 360: // returns 512 Mb public static long GetTotalXBox360MemoryInBytesForMePrettyPleaseKThxBai() { return Math.Pow(2, 29); } ...Show All
Visual Studio Nested Designer Surfaces
Is it possible to nest one design surface within another I want to design a language that enables hierarchical modeling where one design surface has high-level shapes that represent other models which have their own language and design surfaces. Ideally, I'd like the user to be able to double-click on a high-level shape and open the nested design surface, etc. How would I approach this using the DSL tools Point taken. How, then should one model at the meta level I'm thinking of the case where we have a universe of small, scalable modeling languages, each representing a discrete domain and very well suited to a given subject, possibly developed independently. Later, we require a high-level DSL to model meta-domains consisting of ...Show All
SQL Server SQL Server General Network error.
Hi, I am using .Net framework v 1.1 and SQL server 2000. I got the following output on firing "SELECT @@version" in my sql server. ---- Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) I am getting the General Network error when i try to select, update or insert data from / into sql server. This error is randomly generated and some times just disappears. But i am sure that there must be some problem bcoz, now or then the same error is thrown. I am firing these queries from a windows service. Since it would be automatically working in background i want that a sure shot solution be imple ...Show All
Visual Basic Experimental Learning
I am making a front-end program for the lame mp3 encoder simply for learning experience. I can get it to handle all the options and output the files perfectly. There are a few questions I still have though. 1. Is there a way to hide the command window that pops up when encoding a file and instead show my own progress window 2. How would I detect the progress of the encoding 3. When I have a list of files to encode the only way I can think of is to encode them all at once. Is there a way to encode them one at a time 4. Is there a way to find the bitrate of a file When I add files to the list i want to show the bitrate of that file. That is what I have for now. Thank you to anyone that can help. As an aside, I have thought about contacting a ...Show All
SQL Server Slowly Changing Dimension [58] Error
i am using SCD to insert or update .my source and destination table are Oracle and i am using Orcale OLEDB provider . i am getting the following error while executing the package.what could be the solution [Slowly Changing Dimension [58]] Error: An OLE DB error has occurred. Error code: 0x80040E5D. An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80040E5D Description: "Parameter name is unrecognized.". Thanks Jegan Hi Jegant, I have the same problem. You could solve your problem Anyone know how to solve. Thanks. Rdjaramillo. ...Show All
Architecture Architecture for full text search on sql 2005
How can I scale full text search on multipe machines How should I design the architecture of the system thanks for the answers. Yes, for any scaleout solution you will have to buy more licenses.>> we might turn into some free staff as the licences cost more than the hardware needed. ...Show All
