JoshKorn's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.Xna.Framework.Input.Keyboard
Hiya Everyone, Any advice on the following would be greatly appreciated. I’ve developed a very basic static KeyboardHandler class, for the sole purpose of generating OnKeyDown events whenever some keys are being pressed. The class has a member function called Update, which is called each time the Game.Update() member function is called i.e. it is called each time the game components are being updated. The KeyboardHandler.Update() queries the KeyboardState to determine which keys have been pressed, and raises an event for each of the keys returned by the GetPressedKeys() method I’ve noticed though that the following occurs: 1) The Keyboard.GetState().GetPressedKeys() is returning mouse ...Show All
Visual C++ HELP:working with OID_802_11_RSSI
i am working with windows xp, ndis5.1, visual c++. i want to ask about the object identifier OID_802_11_RSSI. i read its documentation in msdn. i test it in one of my applications. i know that it returns the signal strength . but how could i know to which ap this measured rssi belongs if i have a dedicated ap that i want to measure its rssi ,can i do this using this oid how i noted that the this OID readings differs from the rssi readings of OID_802_11_BSSID_LIST. Why also when i test this OID in a compaq laptob with Intel(R) PRO/Wireless 3945ABG card it does not return rssi values .Why need help. thank you in advance. A better place for such issues is the newsgroups at http://msdn.m ...Show All
Visual C# Variable scope ina foreach loop
Hi, I get a compiler error when I declare a variable of the same name as the one declared in a foreach loop as the code snippet below shows: foreach ( FileInfo file in sourceDir.GetFiles()) { ...} FileInfo file = testDir.GetFiles()[0]; The error is: "A local variable named 'file' cannot be declared in this scope because it would give a different meaning to 'file', which is already used in a 'child' scope to denote something else" I dont see why this is a problem if the two fiel variables are in different scopes or am I wrong in that assumption If not, then why do I alse get a compiler error if I try to reuse the variable by changing the second line to: file = testDir.GetFiles()[0]; Thanks ...Show All
Visual Basic Visual basic 2005 Express
Is there such a thing as a "Table Adapter Insert method" I am trying to use it as follows: Private Sub btnInsert_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInsert.Click Try PaymentsTableAdapter.insert( CShort (txtMemberId.Text), CDate (txtDate.Text), CDec (txtAmount.Text)) Me .PaymentsTableAdapter.Fill( Me .DsPayments.Payments) Catch ex As Exception MessageBox.Show(ex.Message, "Data Input Error" ) End Try End Sub And it does not work. What am I doing wrong The user can insert a new row of data in a datagridview (assuming you have bound the datasource to it) then you simply do a dataAdapter ...Show All
Visual Studio Express Editions how to set a thread to run at specific core
1. is it possible to set a thread to run at specific core. 2. to find number of core using vb.net Peter Ritchie wrote: So, you'd rather cut the speed of the OS in half and have one core sit there idle Sure, it's great to say I want a process to use more processor, but by doing what you've suggested you'll make EVERYTHING slower. The OS will schedule a thread for a particular CPU/core, if it finds another that's better at a certain point of time it will switch it. If you tell the OS that only one processor/cpu can be used for a particular thread/process (OS/service/driver/etc.) then it can't automatically switch it for you and therefore everything runs slower. I don't think that how the OS ( ...Show All
Visual Studio 2008 (Pre-release) 3D animation Performance
Into a Canvas filled with (about 20) static 3DGeometry rectangle-shaped, each one texturized by images or MediaVideo, I'm moving a PerspectiveCamera with 2-seconds animations. I notice a quite poor performance on this; every animation shows not more then 20 different frames on a Hp xw6200 with NVIDIA Quadro NVS 285 128 MB. Animation is applied both to position and lookdirection properties of camera. I appreciated no significant progress using only images texture. Anyone has any kind of tips to apply to this It should be a better choice animate single shape instead of moving the whole canvas (moving camera) from performance point of view Some video seen on channel9.msdn.microsoft show very fluid and fast 3D animations, so where is my ...Show All
Silverlight (formerly WPF/E) Z-Index
From what I've seen there's not currently support for Z-Index on UIElements. Am I missing something though Is there a way to set the Z-Index of an element I don't control the order for this particular project I'm working on. The objects I'm writing out are sorted based upon two different proprties and written out in a 3D looking environment. So, I suppose it would be possible to change the order I create the XAML in based upon a radius calculation but at this point it's not worth the effort I don't think. Having a Z-Index would greatly simplify things so I'm hoping that's in the plans for V1. ...Show All
Windows Forms Controls move differently when scroll bars appear
I have some controls I am creating at runtime within a panel....when i click my buttons the controls is created in this format equally spaced between them control1 control2 control3 when the scroll bars become visible and I scroll down the the most recent control that was created.....and try to create another one....the controls is spaced waaaaaaayyy further than its set to do......... I know this because if I just add controls without moving the scroll bar at all they line up nicely and no extra spacing is added but if i move the scroll bar the controls spacing goes crazy........Is there a property that keeps my controls the same with or without the scrolling of the scroll bars..... MyControl.Top = ( this ._MyList.Cou ...Show All
SQL Server XQuery functions support by SQL Server 2005 SP 1
Currently SQL Server 2005 SP1 supports only a subset of the XQuery functions. I would like to know if there are any plans to support more functions in the near future (such as upper-case, lower-case etc.). Thanks. ...Show All
Visual Studio 2008 (Pre-release) Creating a Derived Type in the Designer
I am attempting to re-create my previous VideoGames database using the designer. I want to see if I can do everything I need without tweaking the underlying XML once. So far its working with NavigationProperties. However, either its been too long since I've used this stuff, or the designer is limited. I am trying to create a derived type called WiiGames that derives from VideoGames, that uses a condition where the VideoGame.Type.ID is 1 (Wii). Anyone have a walkthrough on how to do this in the designer and/or how to start using the designer and finish using XML Ok, so what you're saying is that you cannot use a foreign key column as a discriminator column for the purposes of determining inheritance hierarchies of entity types. If tha ...Show All
Visual Studio Call was rejected by callee
I'm running into a different problem as well here. I'm getting this error message when I attempt to trigger a custom menu item added by a VSIP Package using the DTE automation. I have a regular winforms application that launches an instance of Visual Studio and gets the DTE object that it exposes through OLE Automation. I have a VSIP Package registered that is essentially a slightly modified ToolWindow that adds a menu to the View menu. I've noticed that the VSIP Package doesnt load up until the menu item is clicked, so as a quick work around, I want to trigger that window just to force the VSIP Package to load up. I'm doing that with DTE.ExecuteCommand("View.MyToolWindowVB"). When this is called, an exception is thrown indicati ...Show All
Architecture Query on Entity Design
There are times when one might have to load 2 entities out of which only few fields might be required from the second entity in that particular screen. For example I could have a customer entity and an order entity. In an order capture screen I would require the order entity and few fields of the customer entity say name, address.. So the question is for a few fields of customer entity does it make sense to load the entire entity.. This would make even more cause of concern if the corresponding entity has many child entity collections in it. For example one customer would have multiple address, contact numbers and so on. I presonally feel that no matter who little or more one uses the entity, the entire entity needs to be loaded because ...Show All
Visual Studio 2008 (Pre-release) Creating web application in 3.0
Can we create a full-fledged working web application in 3.0 using WPF with user interface like VS 2005. Please suggest Hello fcdsgdg, It is possible to create a full-fledged working web application in .NET 3.0 using WPF. These are called XBaps (info here: http://msdn2.microsoft.com/en-us/library/aa970060.aspx ) However, you should be aware that your users must have the .NET 3.0 framework installed to use these XBaps. In addition, at the moment, XBaps will only work on Windows environments that support the .NET 3.0 framework, so you need to consider the needs of your userbase. I hope this answers your questions, and if it does, please mark this response as "Mark as Answer". Thank you ...Show All
Visual C++ problems with DirectX program
My DirectX program doesn't work. It gives me no errors, but if I run it, it gives me errors. What's wrong with it I do not write my mywin.h and basic.h here, because they are not important and work correctly. Procedures from those header files are Logi, MkWin and ReggWin and TPump, so do not be confused of them, just ignore them. My code is here: main.cpp: #define WIN32_LEAN_AND_MEAN #include <D3d9.h> #include "mywin.h" #include "basic.h" #pragma comment ( lib , "User32.lib" ) #pragma comment ( lib , "d3d9.lib" ) WNDPROC wndProc; HINSTANCE hInstance; HWND _hwnd; HRESULT hr; IDirect3D9 *g_D3D=NULL; ...Show All
Windows Forms displaying images using gridview
Hi, You need to set the gridview column to a DataGridViewImageColumn and set (or bind) it's Image property. Charles ...Show All
