Ogre's Q&A profile
Visual Studio Express Editions 2 events at once
I'm creating a simple, old, black and white tennis game for practice. I've created an event handler for 9 keys - 2 for moving 2 paddles up, 2 for moving them down, 2 for left and 2 for right. I also have an Enter key that starts the ball moving. The problem is that when I press Enter, none of my other keys work, until the ball goes off the screen. Does anyone have any suggestions how to fix this If you provide mode detail, someone might be able to provide some guidance. I'll assume this is a WinForms application. What event are you subscribing to to handle the keys, KeyDown, KeyUp, or KeyPress What is the c ...Show All
Windows Live Developer Forums Worlds Best App Contest Winners
It’s time to announce the winning applications for MSNR Messenger’s Worlds Best App Contest , which MSN ran from September through December 31 st , 2005. There were a lot of great entries, hard work and interesting new ideas for building new applications and games within Messenger. Submitted applications were judged based on the official rules and judging criteria which included creativity, launches during the contest, suitability for the medium and best use of other MSN services. The following identified winning applications still subject to verification and acceptance of their winning prizes : Grand Pri ...Show All
Visual C# Why can't I recast a generic list?
I don't know if I am looking at this problem in a completely wrong way but I have the code listed below and would like to treat a generic list sometimes as List<Swatch> and sometimes as List<ColorSwatch>. I have many other types of swatches too - so I don't want to have to duplicate the common code. When I try and build the code I get errors telling me I cannot convert from type List<Swatch> to List<ColorSwatch> or vice-versa - the code in red. I have other routines which call the ColorSwatchFile read/write routines and want to receive the more specific ColorSwatch. Also if I were to pass down Swatch to the write r ...Show All
Software Development for Windows Vista OpenSCManager() access deny
I do like to install a service for a general purpose driver. I try to programming below : hServiceControlManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); hDriverService = CreateService( hServiceControlManager, DRIVER_SERVICE_NAME, DRIVER_SERVICE_DISPLAY_NAME, DRIVER_SERVICE_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL, szDriverFile, NULL, NULL, NULL, NULL, NULL) ; But some thing happened. I trace code and I find ...Show All
.NET Development Can a process contain multiple Application.Run() calls?
Hi, I know this is possible, but is it wise I am using .Net 1.1. There are 3 relavent classes in this approach (4 if you count the class containing the entry point function "static void main"). Here's the essence of the scenario: Class Startup contains [ STAThread] static void Main(String[] a_aszArgs) { [snip] } After a bit of Mutex aquiring and command line validation it creates an instance of the StartupSplash class. Here is all of the StartupSplash class implementation: /// <summary> /// The container for StartupStatusForm which makes sure it has its own thread /// </summary ...Show All
Visual Studio Team System Web test failing RequestFailed: The value of the date string in the header is invalid.
All webtests I run from VS2005 RTM are failing with a response of: RequestFailed: The value of the date string in the header is invalid. The request looks like this: GET /Angel63/sidebar.asp HTTP/1.1 User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Accept : */* Accept-Language : en-US Host : 600m01 Cookie : ASPSESSIONIDSATDSCQA=LMGPKPGDJNEPFDPPJKBKILEP Accept-Encoding : gzip I can successfully run the same test using the beta 2 release of VS2005. The only thing I can see that is different is that the request is slightly different. Request from VS2005 beta 2: GET /Angel63/sidebar.asp HTTP/1.1 User-Agent : Mozilla/4.0 (com ...Show All
Windows Forms New installation issues
Hi, I downloaded the server (Beta 1) for Terrarium. I am checking both the database and web site checkboxes on the installation wizard. The installation starts and I get a progress bar that moves along. However before I get to the end of the installation I get the following error: "Exception occured while initializing the installation: System.IO.FileNotFound ...Show All
Visual Studio Express Editions Is there only a English version of Visual Basic Express Edition?
Hello Everbody My question is, where can I find a German version of Visual Basic Express Edition Does it exist Any language file/version Thanks for helping! Attos Hi Attos, The German version is available at the following URL: https://www.microsoft.com/germany/msdn/vstudio/express/vb/default.mspx Steve Hoag Visual Basic Express ...Show All
Visual C++ simple WinApi programm
Hi, Well, MY PROGRAMM: Winnie.cpp //------------------------------------ // winnie.cpp // (c) Bartosz Milewski, 1995 //------------------------------------ #include "winnie.h" // This is the entry point of every Windows program int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, char * cmdParam, int cmdShow) { char className [] = "Winnie" ; // Define a Window Class and register it under the name "Winnie" WinClass winClass (WindowProcedure, className, hInst); winClass.Register (); // Create and show a window WinMaker win ( "Hello Windows!" , className, hInst); win.Show (cmdShow); MSG msg; int ...Show All
Visual Basic How can I create a date control that validates and confirms that the user is entering a valid date
How can I create a date control that validates and confirms that the user is entering a date in the right format (mm/dd/yyyy). I don t want to create functions that validate the data that he user enters by checking that the first 2 digits are less than 12 (meaning it s a valid month). I guess VB does that automaticaly (I have VB.NET 2003) and am developping VB windows forms (not asp forms) I m glad I m now a memeber of this fabulous forum. Thanks folks R.Tutus rtutus@hotmail.com how can I make it just a "text box control" and not as a "combo control"; without the scroll down arrow just like a text box and when re we supposed to ...Show All
Visual Studio Team System Having issues with Team Build
I'm having some issues with this Team Build. The first one was I didn't have Team Build installed, so I have a computer beside me that I just re-did with Windows XP Pro, and just put team build on it. The main issue I have right now Is I cannot delete yesterday's "team Build" i created. Nor can I edit it. When I created it, I wanted to test to see how it worked so I set it up to build on my computer. However, now I can't change it at all, nor can I delete it. I see the XML, I try to save my changes, it tells me it's write protected, so I overwrite it. My changes do not save. Can anyone tell me how to delete this Buil ...Show All
Visual C++ Visual C++: serial communication and MFC
Where can I find a good example of serial communication in Visual C++ and MFC. http://www.naughter.com/serialport.html ...Show All
Visual C# PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. It's because a Managed ...Show All
SQL Server accuracy vs generalization
Hi! So sorry for posting yet another one of my silly posts about the correct way of doing things! I am using Stored Procedures to do various things in my database (inserting/deleting/updating) and using SQL Server 2000 SP4 The current situation is that I have a stored procedure which checks certain user details and returns either -1 or 1 as a success indicator to the caller. Now, obviously if we executed several queries in this stored procedure, performance will be an issue. However, I have no idea how to balance up the whole "more useful information" vs "general information". What I mean is thi ...Show All
Windows Forms Remoting
I've looked at this article in the visual studio help .NET Framework Developer's Guide: "Remoting Example: Asynchronous Remoting". Here, you are instructed to run "vbc -r:ServiceClass.dll RemoteAsyncVB.vb" to compile the client side. This creates a file "RemoteAsyncVB.exe". But what if you want a "RemoteAsyncVB.dll" Is there a way to do this ...Show All
