Obsolete's Q&A profile
Software Development for Windows Vista What' the difference between EventDrivenActivity and HandleExternalEventActivity
In my mind, they all block workflow until an specified event is raised EventDriven is a sequence *container* for a specific pattern of activities - specifically that the first activity in that sequence must implement IEventActivity. HandleExternalEventActivity happens to be one of the built-in activities that implements IEventActivity - and therefore will wait until it receives its event (under the covers this is a message received on a particular named queue). The other OOB IEventActivity activities are Delay and WebServiceInput. ...Show All
Visual C# List/ArrayList to Type[] array reference
Hi, First off I'm a c++ convert and am liking C# so far. I am currently using a List<Matrix> and am hoping there's an approach that will let me convert it to a Matrix[] without doing a deep copy. The only shallow function I can find in List or ArrayList (either will work for me) is GetRange but that still returns a List/ArrayList. Is there a way to get at the memory inside the object As you can see below, every iteration, I have to copy a batch into a static array. I'm just hoping for a better way to do this. Seems pretty basic to me to get the array reference inside a Collection object yet I can't seem to figure it out. Matrix[] marr = new Matrix[nInstances]; m_matrixList.CopyTo(nOffset, marr, 0, nInstances); effect.Param ...Show All
Game Technologies: DirectX, XNA, XACT, etc. incrementing a value over time?
do you know how I can create a function that runs every second or know of one that runs every second so that I can use it as a means of incrementing a value over time, is their a way to do this, also code would be a big bonus. Create an "elapsed time" member variable in one of your classes - your Game class, for example.In your overridden Game.Update() method, update the member elapsed time using the GameTime that was passed in. When the member elapsed time has passed 1 (for one second), you know that one second has passed. Subtract the 1 second from the variable and then do whatever it is you wanted to do. Your Update() method, in your Game-derived class: protected override void Update(GameTime gameTime) { this.elapsedTime ...Show All
Windows Forms How to refresh the windows form? VB.net or Vs 2005
Hi I am having a windows form with datagrid view. I am opening a subform from the row of the datagrid view in a main form by clicking it. So the subform opening the relevant data. Also I am using the subform to add new record . So, to view the new record in the main form (datagridview) I have to close and open the application. My question. How do I update datagrid view in the main form when I add the new record in the subform. (any code will be appreciatable to use in the form closing event of the Subform) Advance thanks here is a demo code for you .although it is about two forms,but it is the same method with MDI. It is ture like what JRQ said,you should change the database when you done. http://www.codeproject.co ...Show All
Visual Studio DSL Tools and Text Templates.
Hello, is it possible to construct an item that combines a .DSL designer (say with a designer specific extension), and the result of a text template (maybe even more) I want to match the hierarchical file construction of the default Form/Control designer. Something like: MyModel.cs - MyModel.cs - MyModel.ssd MyModel.cs - MyModel.ssd or: MyModel.ssd - MyModel.cs Ofcourse the idea is that by single clicking the default designer pops up. But the user should be able to see the (automagically updated and thus read-only) generated source of the diagram. To summarize i guess i have two questions: Is it possible to merge Designers and the result of text templates under one single projectitem Is it possible to automatic update the ...Show All
.NET Development Windows Service .NET Runtime 2.0 Error Reporting and Event ID:5000
I have a windows serivce developed in VS2005 running on Win2003 which read xml files from a local directory and saves them in SQL2000 tables. This service has been running for the last month with no errors. This week it generates the error below and stops. (the service is a manual one and is running as Local System Account). It is running on other servers with the same configurations. Source: .NET Runtime 2.0 Error Reporting Event ID: 5000 Category: None Computer: SSGP-SOP01 User: N/A Description: EventType clr20r3, P1 itdp.net2utils.ntservice.exe, P2 1.0.0.0, P3 45250dc5, P4 isc.edi.bll, P5 1.0.0.0, P6 45250db4, P7 3d, P8 3a, P9 system.exception, P10 NIL. Has anyone come accross this problem A. nothin ...Show All
.NET Development Clipboard object throwing exception on Web Server 2003
I'm about at my wits end on this one - so any help would be much appreciated I've developed a web ASP.Net application under .Net version 1.1, tested it, and ran it on my WindowsXP Pro. laptop IIS 5.1 web server. It runs fine. The ASP.Net code behind pages call calls methods from a custom developed assembly (built to partition out functionality). This assembly writes to and reads from the clipboard object. Unfortunately interacting with the clipboard is a necessary evil at this conjuncture in the development cycle. Now when I moved the application to a Windows 2003 Web Server (via a .msi pulled together by a VS Deployment project) and execute the application I get the following exception mes ...Show All
Visual C# Another word about Enumerations
Hello All. I wonder if I could get you folks to check my thinking on this, because I'm wondering if there isn't some aspect of enums that I'm overlooking. Now, as I understand it, an enum consists of an ordered set of named integer constants with the ability to reference the name of the constant as a string. So, the salient points are these: named: good for code readability constant: good for switch statements integer: good for control statements and indices; bad for type consistency string: good for basic output; n/a for localized output Okay, the app I'm designing has several collections and matrices representing various states and lookups, so I really need named integers for indexing in order to keep the cod ...Show All
Smart Device Development Custom Application.Run()
hello, The Compact Framework requires the developers to start the application message loop on a given form. Therefore there is no Application.Run() method that can be called without a form instance as a parameter. For our applicationstructure this is very annoying, and I know that the OpenNETCF variant allows this. The problem is that we cannot use this library in our projects. Does anybody know what is needed to implement this method by hand Thanks in advance. Application.Run () does what a classic Windows message loop would do. The core of the implementation may look like this: while (NativeMethods.GetMessage ()) { NativeMethods.TranslateMessage (); NativeMethods.DispatchMessage () } With some tests you should be able to get ...Show All
Visual C# Connect to database on another computer
Hello. I am making an application that is reading and editing database. I make a copy of the database while developing and woked on it. It was easy to connect and work with it. But I now need to connect to teh real database that is on another computer on our network. Connect wizard , as far as I can se only helps me to connct to lacal database file, not on the network. Could anyone help me here Hello. Sorry, My bad. I am using Viasual C# to code the application and using SQL express on as the server. My client is WInXP pro and Win2003 on server. So it is not possible for me to connect to that database using sql express are you 100% sure. We are planing to use MS SQL server 2 ...Show All
Visual Studio Updating Major and Minor versions from TFSBuild.proj file
I would like to be able to set the AssemblyMajorVersion and AssemblyMinorVersion from my TFSBuild.proj file and am using the AssemblyInfo Task to update the BuildNumber and revision. Is this possible to do I've looked around at the posts such as http://blogs.msdn.com/gautamg/archive/2006/01/04/509146.aspx and got AssemblyInfoTask working fine. I can edit the \AssemblyInfoTask\Microsoft.VersionNumber.targets file to override the Major/Minor versions there and also each individual AssemblyInfo.vb in the projects I'm building, however I would like to be able to pass through the Major/Minor version from the TFSBuild.proj file. If I do what Gautamg suggests in the above post it doesn't work. Any ideas - Ossian ...Show All
Internet Explorer Development Ie 7
Just ip graded IE7 Beta 2 to IE7 RC1 KNOW I'm unable to access any FTP location. i keep reciving Stie or URL not available, or cannon access this site bacause the content advisor can not find a rating for the site this is strange as content advisor is nit enabled, IE6 allowed me to access ftp and so did IE7 beta1 and beta2. What's up with IE7 RC1 Anybody!!! I'm embarassed that I don't know how to get to the "Windows Registry." I don't even know what it is. I am such a novice that I am intimidated with you guys. Thanks for any help you can give. eutychus ...Show All
Visual Basic error 2577 when installing a windows service
my customer is having a problem when installing my windows service... "The Installer has enccountered an unexpected error installing the package. This may indicate a problem with this package. The error code is 2755." The installer works locally, and I cannot reproduce the problem, so it's not the installer files. There is very little about this anywhere, I've seen http://forums.asp.net/thread/172434.aspx and http://www.winportal.com/chat_sin.asp ObjectID=12599 Any ideas anyone my customer copied the install file to the root of his hard drive, and it worked OK. However I tried installing from a remote drive and did not see that error. I'd still be interested to know why an instal ...Show All
Smart Device Development Windows CE5.0 or Windows Mobile 5.0?
Dear All: I am developing a smart device application, but I have a choice of operation system either on Windows CE5.0 or Windows Mobile 5.0. I am not sure about the difference for these two operating system from a development point of view. I heard Windows CE have a richer set of functionalities than Windows Mobile. However, if I develop my application on .NET compact framework 2.0, what the difference these two operating systems will make for my development. Please help. Thanks Below should clarify few things for you: Windows CE is the embedded real-time operating system used inside small devices e.g. controllers, GPS devices etc. Window ...Show All
Software Development for Windows Vista Web graph of sound file
HI All, I am working on software based on self assessment learning tools. In this the user will heard a .wav file and record it in own wise. Now I have to compare these two file. How I can do it How can I make the web graph of these two file. I'd also like to do this. Malik, did you have any luck If not, I'll let you know when I know. ( Ever the optimist ! ) ...Show All
