davidy13's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. space war input problem
space war don't respond on my keyboard actions No. Well nothing official. In windows you could try adding the MDX 1.1 Directt Input assemblies - but I wouldn't be surprised if that fails Or you could write your own managed DirectInput wrapper Or you could write your own Raw windows message wrapper and pick up the gamepad messages that way. But unless you earn $2000 an hour I imagine its probably cheaper in the long run to go and buy a couple of xbox controllers :-) ...Show All
.NET Development ReadLine() acting weird
OK I've been really humbled. I've spent at least 8 hours trying to solve this problem and I've gotten nowhere! I am getting really weird behavior and am not sure how to proceed. Here's the problem and the steps I've taken to remedy the "bug". This works perfectly well stand alone with line 18 commented out. Problem: The Console.ReadLine(); within the homework project (I'll refer to this as HW) returns the cursor to the beginning of the line it is reading after input and Enter. Here's the test module. 1 public static void ReserveMedia() 2 { 3 string k = ""; 4 string _reserverFor; 5 int _ordinal; 6 while (k != "-1") 7 { 8 Console.Write("Please select a number: & ...Show All
Windows Forms Progress through questions in math test
I am using windows forms and developing in managed C++. I am developing a simple math-test application. So what we have after the user pushes the start button, and the test is generated is: § An array with calculations § One time limit that is the same for all calculations Say we start with the first calculation at the beginning of the array (index 0). Suppose the user does nothing at all under the steps. This will happen in the following order: 1. The calculation is displayed and the time starts ticking 2. The time limit expires 3. It is indicated that the user have failed the task and the program stops and nothing happens. Now let’s look at step 3; at this point the user has misse ...Show All
.NET Development Problem in displaying HTTPS traffic using Sockets
Hi, I have a proxy in VB.NET using Sockets. I listen to HTTP/S traffic and then forward it to the webservers, recieves the response and return back to the client. I am displaying the HTTP/S request/responses to the user before forwarding it to server/cleint. I can read the HTTP requests/responses but cant read the HTTPS requests/responses. What is the easy way to enable the program using sockets to read the HTTPS traffic. when HTTPS requests comes, it shows me only "CONNECT ..." and i cant see anything in response stream. Thanks Wont SSLStream in .NET Framework 2.0 help in this case As the proxy is running on the same computer(Client) where the browser is. ...Show All
Smart Device Development Shell_NotifyIcon icon invisible when building with VS 2005 for PPC 2003 target
I'm using Shell_NotifyIcon to put a icon in the task bar status area at the bottom of the screen. The code works correctly when I build and deploy to a WM5 device using VS2005. You see the icon in the bottom of the screen and if it is clicked my applicaiton gets notified. When I build and deploy the same code and project to a PPC 2003 device the icon is invisible. I have verified that it has been place on the task bar, if you click where it should be my application gets notified. I verified that Shell_NotifyIcon is returning true, implying success. I verified that the icon handle is not null in the NOTIFYICONDATA structure. The icon I am trying to use includes 16 X 16 16 color and 32 X 32 16 color images. I tried adding 256 color ...Show All
Windows Forms Size when using Maximized state
When I startup my form with a default property value for WindowState = Maximized, it starts in it's initial size, then enlarges. However, some of the controls don't auto size along with it. And when I get the current size in the form contstructor after InitializeComponent(), it shows the starting size, so I can't really tell what to try and enlarge the rest of the controls to. Any advice Thanks, John ...Show All
Visual C++ UninitializeAppDomain() causes error in mixed mode
I have an application that was started more than 10 years ago with VC++ 1.0 and upgraded with every version of VC++. I have just changed it from unmanaged code to mixed code with /clr option. Unfortunately it generates an annoying error whenever the application is closed as following: " Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'c:\My Documents\VSNET\ERG32\Debug\Erg32.exe'. Additional Information: The runtime has encountered a fatal error. The address of the error was at 0x7c81eb33, on thread 0x1758. The error code is 0x800703e9. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-intero ...Show All
Windows Forms Regarding Wrapper clasess
hi, In my application i am using some unmanaged code to do CUT, COPY and PASTE operations. Example of those codes are public const int EM_CUT = 0x300; public const int EM_COPY = 0x301; public const int EM_PASTE = 0x302; and send these using SendMessage(). I have heard about Wrapper classes and found out that these are used to call umnanaged code from managed code. What does this mean Could some one explain If i have to create one i would love to implement one in my application. No it's not something you have to do. A wrapper class would simply encapsulate the ugly details of calling the native code, and expose an interface more friendly to managed code clients. ...Show All
.NET Development Correct Declaration for FindExecutable or an analogous function in the BCL
Hi, I'm trying to emulate functionality similar to the Win32 FindExecutable function in VB.Net. There's a code example that works in VB6 ( http://vbnet.mvps.org/code/system/findexecutable.htm ) and there is a declaration in pinvoke.net. I first tried to use the VB.Net declaration from PInvoke.net ( http://www.pinvoke.net/default.aspx/shell32/FindExecutable.html ) Private Declare Auto Function FindExecutable Lib "shell32.dll" ( ByVal lpFile As String , ByVal lpDirectory As String , Byval sResult As String ) As Int32 I passed a the Tostring of a stringbuilder with size of 260 to sResult. However, I am not receiving anything back. I'm guessing that this is due to the fact that it is a Byval parameter. ...Show All
Visual C++ LNK2019 unresolved external symbol error
Hey everyone. Im creating a program that inputs polygon data and outputs polygon projections. When compiling some code I get the following build output. ------ Build started: Project: projection, Configuration: Debug Win32 ------ Compiling... homework6.cpp Linking... projection.obj : error LNK2019: unresolved external symbol "class vector<double> __cdecl operator*(class vector<double> &,class vector<double> &)" ( D@YA AV $vector@N@@AAV0@0@Z) referenced in function "void __cdecl parallel(void)" ( parallel@@YAXXZ) projection.obj : error LNK2019: unresolved external symbol "class vector<double> __cdecl operator*(class vector<double> &,double)" ( D@YA AV ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Veteran looking for professional-level 360 dev solution
Hi -- I'm a veteran, independent developer w/ 25+ yrs experience on mostly non-MS platforms. I'm looking for a professional-level solution (non-XNA) for developing for the XBOX 360. I already have VS2005 (non-express) and am proficient in C#, .NET, et al, but there's nothing in the docs I can find about 360 dev (complete access to the XBOX Live libs, burning DVDs for testing, etc). I've looked all over the MS site and can't find any docs on 360 development that aren't XNA related, which is very frustrating. Is MS hiding this info on purpose, or have I just not stumbled onto the right URL Can someone who is a professional XBOX developer please tell me what's required, or who I need to talk to (I suspect there's a licensing agreement involv ...Show All
Audio and Video Development Persistent Storage - 64 or 128?
I believed that 128 was the minimum amount of storage per the spec. However I just came across a document by Sonic (dated August 06) that claims 64 is the minimum. Which is correct ...Show All
Visual Studio Express Editions Beta Sevice Packs
Do I have to uninstall all the versions I want to get SP1 Beta, or can I just run the installation and it updates my Express Edition(s) well its up to you again its in beta. So backup your files, create a restore point just in case (if you are using Windows XP/Vista) and install it and see how it goes. But if you are not effected by the bugs listed in the SP fix then don't install it yet until it's RTM'd/fully released VS SP's and SQL Server SP's have no relevance to each other really, they are different products ...Show All
SQL Server How to pass multi-value parameters to DDS (data driven subscription)?
Using RS2005, how should multivalue parameters be stored in a database field so that a data driven subscription can properly read and use them I have so far had no luck using syntax of: 1) parm1, parm2 2) parm1,parm2 Do single qutoes need to explicitly wrap the values Can you please provide an example and a SQL INSERT statement using parm1 and parm2 to demonstrate what to store in the database field Thanks!! Thank you for the reply - but how *exactly* does one map each column name to the same paramter name When I try this in a DDS, I do not see any way to map multiple columns to a single parameter Using Report Manager to setup the DDS, it appears to only allow one column per param ...Show All
SQL Server BIDS keeps crashing
All of a sudden one of my projects/packages seems to have encountered a strange problem. First I tried to remove a data viewer which caused BIDS to crash and tell me that VS has encountered a problem and needs to close. This is repeatable every time I try to remove the data viewer or the link or the transforms or the entire data flow. How do I get around this besides starting from scratch and how do I figure out why this is happening and is there some fix thanks John Hi John, Have you tried to install the ff: SP1 for SQL Server 2005 SP1 for Visual Studio 2005 I know it's a bit inconvenient since these SPs are huge but, they might help. ...Show All
