RchiTekt's Q&A profile
Visual C# Generics Question
Hi there, Suppose I have the following class: public class CacheItem<T> { public T Data { get { ... } } public bool IsExpired { get { ... } } //other properties } How would I go about iterating over a collection of cache items where T could be different for each cache item In other words, how do I get this to work: foreach (CacheItem< > cacheItem in Cache.Items) { if (cacheItem.IsExpired) { ... } } As far as I can tell, this is impossible. The best I could do would be to define a non-generic ICacheItem interface and code against that. Then I could provide the generic CacheItem<T> clas ...Show All
.NET Development Compatibility Framework 2.0 and 1.1
I developed and deployed an application under Framework 1.1. It also runs under Framework 2.0 but its installation on a client station requires Framework 1.1 whereas only Framework 2.0 is installed. Isn't the upward compatibility assured Do I have to ask the users to installs an old version of Framework whereas they more recent installed Thanks. Hi Alain, Do you get the error when you try to install the app, or when you try to run it Maybe your application checks for .NET framework version installed somewhere...Try adding this segment to your .config file and see if it changes anything. It just forces yo ...Show All
Visual Basic How to store Data ?
Hi everybody, I'd like to ask you because I just can't decide with technology to use. I have a small application without a DBMS. But I need to store and provide some Data (Text). And of course I need to add, delete and edit all the Text. A Database would be great but I need something else. What else could I use XML Problem is I don't know much about the .Net XML Classes. And I also don't have much time to learn. TXT or CSV Is there still something else or what would you do it sounds like your best bet is to use a database...basically your other options are to use a flat file as you mentioned (xml,txt ...Show All
Visual Basic Black screen
In Visual Studio 2005 the black screen appears frequently. When build/compile (F5) a project in Vb 2005 the black screen appears anytime. Why happening Thanks, In portuguese: No Visual Studio 2005 um tela preta aparece frequentemente. Quando compilo (F5) um projeto em Vb 2005 a tela preta aparece varias vezes. Por que acontece isto ObrigadO. Are you running a console application Do you have any custom build steps that launches a console application Best regards, Johan Stenberg ...Show All
Software Development for Windows Vista Connecting to VMR
Hello, I have written a custom filter for manipulating video data. I can connect the input pin of my filter to de DV decoder but the output pin will not connect to the VMR (the Connect methode is never called !!!). I have done the same for audio and there it works fine. I suppose that there are some Interfaces that my output pin must provide to connect ! Any idea(s) Thanks for your help Reiner Interfaces is a reasonable guess. It's easy enough to check. Put a breakpoint in your NonDelegatingQueryInterface and see if anyone is asking for anything interesting. My first guess however would h ...Show All
Visual C++ Starting Visual C++
This is embarrassing, but I can't seem to start the program. I downloaded it without any problems, but I cannot start it. Can't even find it. Please help. Don't laugh to hard! Start --> All Programs --> Microsoft Visual Studio 2005 --> Microsoft Visual Studio 2005. I am sure you can work your way with a bit of difference if it is the Express edition. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Debugger Hangs Delay Notification
The problem happens while debugging when I try look at the details of "this". It happens every time. In the "Locals" pane I try to expand the entry "this" by clicking on the "+". I get an internal error after which Visual Studio won't do anything else and pops up a dialog named "Delay Notification" when ever I try to interact with it. I must use task manager to exit it. I was having the same problem when I first installed Visual Studio Beta 2. I found there were some assemblies left behind from Beta 1 and I manually removed them. It didn't fix the problem, so I uninstalled Beta 2 and then ran the clean up tool to make sure there weren't ...Show All
Visual Studio Express Editions Where's the Quickwatch window
Hi, In VS2003 I can get a quickwatch window when I select a valid exression and hit SHIFT+F9. This did not work in VS2005 Beta 2 and also does not seem to come up in the current VS2005 edition How di I get this to come up. Thanks tribal The Quick Watch dialog box is only avalailable on Visual Studio 2005 Professional and above. Of course, as you point out above, the hover debug watches provide a very useful substitute. Thanks, Scott Currie DDCPX Program Manager Microsoft ...Show All
SQL Server == The SQL Server service failed to start ==
I'm newbe with SQL Server , I'm looking for help with sql server express edition 2005. At the end of installation ocurrs an error: The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually. Error Number : 29503 . (Summary file) Rest of components has status : Successfully installed I've go installed .Net Framework 2.0, I'm using XP with SP2 , no anty-virus software during instalatin is activated, the XP firewall is off during instalation.All system check requirements are passed successufully (runni ...Show All
Visual Basic Run an external .exe program from VB 2005
How could I run an external .exe program from VB 2005 I searched the help and everything, and found nothing in visual basic. I am new at VB. I have been working with it for about 4 months. Please help me! CHeck out the process class and the startinfo class... Dim p As New Process p . Start ( ThePathOfTheEXE ) That is the simplest way but using the startinfo class you can specify a wide range of properties to control your process, it's I/O, variables, and arguements! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Early Out
Hi. I tried at the "regular" DirectX forums but since there was no answers or even faint ideas I am gonna post my question here. I have a fairly simple shader which loops over a numer of calculations. With ps_3_0 can we exit an loop and the fragment program early on if a certain condition is obtained for( ... ){ if( b > constant ) return Output; } } return Output; The compiler tells me that it doesnt support asymetric returns. For reference I will post a little more of the shader which causes the compiler to complain: for ( int i=0; (i<iStepsViewRay); i++){   ...Show All
Windows Forms Custom DatagridviewColumn/Cell
Hi, I have tried to build my own DatagridviewColumn/Cell based on the DateTimePicker- and the FilePath-Examples. But it doesn't work. I've found the FilePath-Example only in cs, is there a vb-Version too Please help. Here are the code: Imports System Imports System.Drawing Imports System.Windows.Forms Imports System.Windows.Forms.VisualStyles Public Class CountryColumn Inherits DataGridViewColumn Public Sub New () MyBase .new( New CountryCell()) End Sub Public Overrides Property CellTemplate() As DataGridViewCell Get Return MyBase .CellTemplate End Get ...Show All
Windows Forms Datagrid row update
Can someone suggest me efficent way of updating the row in the datagrid Thanks ...Show All
Visual C++ My Visual Studio does not load stdafx.h & stdafx.cpp in my project file
Whenever I create project file it won't work because stdafx.h and stdafx.cpp files are not preloaded into the project file, how do I fix this problem You can set the use of precompiled headers in your project properties. You can make it automatic, not happen at all, or happen only on files which have the #incude set ( so only some files use precompiled headers ). ...Show All
Smart Device Development Unable to deploy to emulator
Hi, I created an empty vb.net device application (v2.0). Add a label and a textbox. Pressed F5. After a while the emulator starts and I don't see the application in the emulator. After a while I get a message that that 'application could not be deployed'. Am I missing some steps Thanks, Ivan You can effectively change the ip of the emulator directly on pocket pc images. Visual Studio will detect the new ip when you try to connect again. As for the loopback adapter solution, there is a similar KB article for 2000 available at: http://support.microsoft.com/kb/q236869/ ...Show All
