4B7's Q&A profile
Visual Studio 2008 (Pre-release) Loaded event order reversed in RC1
Hi all, I have installed RC1 and there seems to be a problem with the order of Loaded events: the Loaded event for the top container is fired before the Loaded event for children. I have reproduced the problem in this simple XBAP project: http://www.valil.com/TestLoadedEvent.zip If you run the project in debug mode, you'll see in the output: Page loaded Grid loaded already Grid loaded which means the page is loaded before the grid. Yes, there was a recent change to fix another problem that caused this change in behavior. The order of the Loaded event shouldn't have changed; it is essentially broadcast through the element tree, so should fire on a parent before its children. But the IsLoaded property is updated th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What's difference between Express and Professional?
I've installed the Express edition beta 1, but I have interesting to the Professional edition. I thought the Professional edition should have more classes than Express edition, but I've never seen any documentation to compare the class library of each edition. Could you tell me the differences of them, particularly about class library Or I'd be happy if I could find the reference manual of XNA Game Studio Professional on the net. Thanks, Hayashida EWSommer wrote: It looks to me like they intentionally removed useful functionality that was in DirectX so they could make you BUY something to write your own games that are more complex, so I'd start a trust fund if I were you... What do you ...Show All
SQL Server Problem with role-based security
Hi everyone I have searched the forums for a solution, but i cannot find one that i can see apllies thus I post. I am having trouble restricting the access of one of my roles. Here is the structure of my cube: Cube: 'Sales' Dimension : 'Product' Hierarchy: 'Code - Company' Member: '123' I simply need to restrict the user to this member. I have set up the security in Dimesion data on : Cube>>Dimension and Dimension... I only selected [Product].[Code - Company].&[123] but when viewing a report using this user it doesn't seem to take effect,. {All the company codes can still be seen in the company code parameter drop down} When I try to implement this on the cell data tab, I can't see anything in the dropdown when run ...Show All
SQL Server Microsoft Visual Studio is busy
I get this message in a balloon that pops up frequently when I am trying to work in the SSIS designer. For example, I get it when working in a DataFlow task, trying to open editors for the OleDb Source and Destination. Is anyone else getting this What could be the cause, it seems to get sluggish. Thanks. Hi there, same problem here. Since I use SSIS development in Visual Studio in combination with Vista, Visual Studio keeps being busy after executing larger SSIS packages. Looks like a Vista problem. Before I used XP where te problem didn't occure. It partically occures when the SSIS package is handling large data volumes (more then 100000 records). A solution would be welcome. Thanks. ...Show All
Software Development for Windows Vista Trying to derive a custom activity from another
In the project we are wokring on we require a lot of almost identical activities. So instead of repeating all the common logic in every activity we created a "Base" activity and then tried deriving another activity from the BaseActivity. So we have something like… BaseActivity : SequenceActivity [HandleExternalActivity] Activity1 : BaseActivity [More Public Properties] Now I am running into problems after mapping the EventArgs that HandleExternalActivity’s interface requires in the BaseActivity. I get validation errors and/or already defined errors in the derived Activity class. Has anyone else tried doing someting like this I would really appreciate if someone could point me to th ...Show All
SQL Server Programmatically creating and executing data delivery extensions in SSRS
Hi All, I have been stuck with this problem since few days, need help regarding the same. I am enclosing the problem description and possible solutions that I have found. Can anyone please help me out here Thanks and regards, Virat Problem Description: I have a requirement for which I have created a data driven subscription in SQL Server 2005, the whole thing works like this: I have a report on Report Server which executes a stored procedure to get its parameters; then it calls another stored procedure to get data for the report; then it creates the report and copies it to a file share. This is done using data driven subscription and the time set for repeating this process is 5 minutes. You can assume that following are working fine: 1. ...Show All
Visual Studio December CTP Sandcastle
I get the following exception Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.Ddue.Tools.Reflection.OrcasNamer.WriteProperty(Property property, TextWriter writer) at Microsoft.Ddue.Tools.Reflection.OrcasNamer.GetMemberName(Member member) at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteTypeElements(TypeNode type) at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteType(TypeNode type) at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitType(TypeNode type) at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitTypes(TypeNodeList types) at Microsoft.Ddue.Tools.ManagedReflectionWriter.VisitNamespace(Namespace space) at Microsoft.Ddue.Tools.Reflection.ApiVisitor.VisitNam ...Show All
SQL Server Which edition and which licensing to use?
Hi all, I would like to ask which edition and licensing type of SQL server 2005 should I use for the scenerio as described below. Please advice. I have an ASP.Net application, whereby there will only be around 4 to 5 users accessing to the application. On the same database server, there is another VB.Net Windows application accessing to the database as well. Which kind of edition and licensing type should I use I have tried MSDE and SQL 2005 Express edition. However, I always get timeout errors from time to time. Does it have something to do with the editions Please advice. Thank you very much. Hello. I close the connection for every transaction on the database be it select, update, insert or delete ...Show All
Visual Studio Express Editions partial classes feature
May I know how to turn off the partial class feature in Visual Studio 2005 (for express, and proffesional edition). Your avuable feedback is much appreciated. Thanks. IT is becuase MSBee is not support partial class feature in VS 2005. I failed to compile the program into .NET 1.1 version with MSBee. By the way, partial class is great while it seperate the designer code for us, but it do make some disadvantages too. It is hard for me to admend the class constructor and Main mothod in VB 2005. ...Show All
Visual Studio 2008 (Pre-release) How can a .Net program access a WCF Service
How can a .Net program access a WCF Service Can someone provide with with an example From my client I clicked on "Add Web Reference" and entered the HTTP address of the SOAP server. The screen (showing info returned to browser) displayed the following msg: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. ------------------------------------------------------------------ XML document must have a top level element. Error processing resource 'http://localhost:8080/InOut'. The box on the upper right reported: The document at the url http://localhost:8080/InOut was not recognized as a kn ...Show All
Visual C# time calculation
Hi I've got a start time and duration. Both respresented as strings: string start = "00:01:36.3" string duration = "00:57:41.8" How would you calculate the end time (00:59:18.1) What's the easiest way Thanks Hi, you could try the following code: string start = "00:01:36.3" ; string duration = "00:57:41.8" ; DateTime startTime = DateTime .Parse(start); TimeSpan span = TimeSpan .Parse(duration); DateTime end = startTime.Add(span); Just ignore the date part in the variable (set to the current date). And to be sure your times are in the correct format, you could use .TryParse (or TryParseExact for datetime) instead ...Show All
Visual Studio Team System Datadriven + test instance details
I have two problems while doing my loadtest. 1. I have a datasource with 100 distinct user accounts, and I need to use them in load test. However, the system does not allow same user to be logged in twice in different web sessions at the same time. Once they logoff though, they can be reused. I need to simulate 50 users banging at the same time, so with 100 user base, I quickly run out of users in Unique mode. Is ther a way to tell test system to reuse accounts 2. While stress testing, some of the web tests fail (probably due to stress), but I only get the exception report in the load test. Is there a way to "digin" to specific iteration of the loadtest and see the output of that specific webtest (as I would get when I run ...Show All
SQL Server ADO
Hi: Is it true that a .net project of WinCE 5.0 pro can't access Win2000 SQL database thru ADO Any solution Chang Thank you Darren: Can you give me the address to download the version of the SqlClient included with the COmpact Framework My purpose is to use a WinCE mobil computer to run a .net program and real time access my SQL2000. Someone suggest me to use sqlCE to sychronize with SQL2000 or use webservice but neither of these way were workable, I don't know what's wrong. Jeanet ...Show All
Visual C++ strcpy_s causes app shutdown
I am updating some managed code to use the new string handling functions in VC8. I changed calls from strcpy to strcpy_s as shown in the code snippet below. The second call to strcpy_s causes the app to shutdown. No exception is thrown, no error code is returned. The app shuts down with exit code 0xC0000409 as the only clue. This is listed as a STATUS_STACK_BUFFER_OVERRUN in ntstatus.h. Of course it's telling me that it doesn't believe there is enough room in the buffer to accomodate the string. The error goes away if I change to strcat_s, or if I adjust the buffer size argument to take into account the length of the string that was previously copied in. Questions: How does strcpy_s know some of the buffer has been used Why ...Show All
Visual C++ Image Cursor
Hi, I am not sure if i am posting in the right forum, kindly direct me to the correct one if i make a mistake. I am coding in C programming compiled in vs.net 2005. I wanna write a program such that it constantly detect the cursor position by using "GetCursorPos" function. If the cursor is moving upwards, it should display a "compass pointing to north" image. If the cursor is moving left, it should display "compass pointing to west" image and so on. . . I have search through the web and unable to find much examples in C. I managed to find a link http://www.codeproject.com/bitmap/ColorCursorFromBmp.asp which has some information in C++ instead, however, through the demo i realised the image cursor only ...Show All
