joynerCN's Q&A profile
Visual Studio 2008 (Pre-release) Distance between 3d objects / world coordinates of a model3DGroup
Hi all, Newbie coder I'm afraid, but this should be a simlpe one to answer. I don't have a good grip of 3d in WPF yet, so patience would be appreciated. I have a carousel-like control in WPF. In a viewport 3d, I have a Model3DGroup, m3dMainGroup , which contains another m3dModel3DGroup. Now transformations are applied to both of these Model3DGroups. All I want to do is work out the distance along the PerspectiveCamera's lookdirection to each of the Model3Ds in m3dModel3DGroup. All I need to do in theory is get the Vector3Ds in my Viewport's world-space to the Camera, (a) model, and the Camera's look direction. Then the distance would be just ( LookDirection . ( Camera - Model ))/| LookDirection | Code rather than XA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Object cache vs. GameComponentCollection
Can anyone tell if the GameComponentCollection is designed to simplify game object cache requirements I noticed that the space wars example seems to override this with screen.Render(). If it is supposed to, are there any forseeable performance impications I don't believe so. GameComponentCollection is just a collection of GameComponent classes - it has no special functionality of game object or resource caching. The reason you saw the screen.Render() override is because space wars uses a component to swap in different game "screens" - the main menu, the play space, etc. It doesn't really do any caching in itself - the screen component seems to act as a container for the rendering code, making it easier to swap in and ou ...Show All
Visual C# I want to fill a username and password text boxes and then click to login button
Hi every one; I want to access a web site by fill the username box and the password box also, and then click to login button . can i do that programabitly . please help me URGENT please.please.... My Mail : Rami.Khalyleh@hotmail.com Rami This can be done but not putting values in textbox and clicking the button but progrmatically with URLs and posting the values... Try to explore HttpWebRequest and HttpResponse classes... Best Regards, Rizwan ...Show All
SQL Server I need help with xmla query
Hi, I need to do a xmla query for calling more than one prespective. For example: I have a cube with 4 perspectives, but in the xmla query only need 2 perspectives. Cube: Censo Perspectives: Depto. Pais Principal Privado But i only need Cube: Censo Perspectives: Depto Pais Thanks for the example, now I understand what your are after. :) Unfortunately I don't think you can have more than one CUBE_NAME element in your restriction list. What I believe is happening is that the value is being overwritten and the last one is the one that is used. I think you have 2 options 1) fire off 2 separate Discover requests, one for each perspective 2) do not put any re ...Show All
.NET Development Arrow keys problem in Framework 2.0
Why a CLR programm don't handled a arrow keys (Left,Right,Up,Down) All others keys handled but this four not. New information about this problem: 1.Method IsInputKey for key Right and others arroe keys always return false; 2. If you set MdiContainer for main form is true, arrow keys for this form not working. 3. UpKey handler working,but KeyDown is not; 4. In help says what arrow keys is support always, but really is not. 5. Resume: this is BUG. ...Show All
SQL Server Transformations
Hi all, Can anyone tell me some links which can gimme good insight on the SSIS transfoemations. Thanks, Praveen kumar Dayanithi http://www.whiteknighttechnology.com/cs/blogs/brian_knight/ Brian has some really good stuff on his website. ...Show All
Visual Studio Express Editions Read some text
Hello guys .. I am making a kind of calender/note/remember ting. I want to place a date in the top of the my text i wright in my richtextbox. Thats not the problem, the problem is that it is adding an date every time i save it. My.Computer.FileSystem.WriteAllText(path & "Calender", "To the:" & datepicker.Text & Environment.NewLine & hehe12.Text, False) It will look like To the: XX-XX-XXXX So what i want to do is to make it read the first few charterers so that if it finds fx "to the:" in the first line it will not apply the date - i have tried with the steamreader, but i just cant figure out how to make it only read the first part of the text. No sorry you got ...Show All
Visual Studio 2008 (Pre-release) DataTemplate with custom control problem
I am using WinFX beta 2 on XP sp 2 cz. I am writing ViewerEditor custom control derived from Border(Decorator) which is used in DataTemplate of ListBox/ListView item. The ViewerEditor.Child is set to a data viewer (say TextBlock) data bound to item data. ViewerEditor.Editor is set to a data editor (say TextBox) data bound to the same item data. When specified action ocurres (say mouse click on focused ViewerEditor), ViewerEditor adds ViewerEditor.Editor to its AdornerLayer through custom EditorAdorner. The problem is when I add ViewerEditor to the DataTemplate and run my sample, it throws this exception: Error at element 'TextBlock' in markup file 'Db4o.Binding.WPF.Tests;component/testwindow.xaml' : '3_T' name not valid for identi ...Show All
Windows Forms Adding New Properties to a Datagrid Column / Extending Data Grid
Hi all I need to create a new control extending from datagrid. And want to use this gris and its functionalities in my entire soution. I need to add a new column property to the grid. Ca any one help me to achieve this. There are example in the Windows Forms FAQ and vb-tips on how make custom datagrid columns. This tip shows how to use the custom column styles in the designer. ...Show All
Visual Studio 2008 (Pre-release) Up/Down keys in Gridview sends focus to next element
Working with a Gridview we are seeing behavior where if you are on the bottom row of the GridView and hit the down arrow key, it will send focus to the next control. Same with the top row, it goes to the previous control. Is there any way to avoid this Typically in a grid type control in this situation, it would do nothing. At least, that's what our users are used to. With the default ListView with GridView keyboard navigation should be contained within the list. You can also customize the behavior by setting KeyboardNavigation.DirectionalNavigation on the ListView or items within. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Issue with HowTo: Rotate and Move a Camera?
I'm trying to work on figuring out some simple camera manipulation and have been going through the information on the How To: Rotate and Move a Camera. At the bottom of the help file is what appears to be the complete code needed to run the example. However, this code does not compile when pasted in a new project; the method FrameRender() refers to an undefined method called UpdateCamera(). Is this method something missing from the example Hi Shane, Sorry about the confusion, the UpdateCamera method was unintentionally stripped from the source code and will be in the next release. The UpdateCamera method is almost identical to the UpdateCameraFirstPerson method without an offset from the avatar's position. I've copied the ...Show All
Visual Studio Team System TFS and running Test cases
Hello guys, I am new to TFS. Using TFS I have to run some predefined Test cases. Just wanted to know whethers its possible and if so how can it be done. Thanks, Aditya Cannot cathch it what's you meaning Using TFS I have to run some predefined Testcases Can you explain it detaily ...Show All
Visual C++ Memory mapped files
Does anybody have an example of how to use memory mapped files in VC++ I'm using VS2005. Thanks!! Anyone who gives you an answer to this question is likely to have done so by searching MSDN or the web. Have you tried doing this ...Show All
Visual Studio Sandcastle and IDL Files
http://blogs.msdn.com/sandcastle/archive/2006/08/13/697859.aspx#comments States the following: "We are currently looking at the naming convention and will probably rename MRefBuilder to Mreflector for Sandcastle RTW . We also expect the Sandcastle reflection data format to be targeted not only by MReflector , but also by unmanaged reflection tools (for example, a UReflector tool that parses IDL or header files) and SReflector (for generating schema documentation). In order to make it easier for other to target the reflection data format, we plan to supply an XML schema file that defines the format." Published Sunday, August 13, 2006 7:31 PM by aram My question is what is the status of a UReflector tool th ...Show All
Visual Studio Team System building two solutions with different configurations
I'm trying to build a solution that has projects which reference assemblies built from a different solution using a configuration called "published". I want to have this configuration built first and then build our "debug" and "release" configurations. How can I get it to only build a certain configuration from one solution and then different configurations from a different solution Thanks Aaron I tried that out but due to another problem I ended up using the following solution: <Target Name="BeforeCompile"> <MSBuild Projects="$(SolutionRoot)\DataServices\DataServices.sln" Properties="Configuration=Published;Platform=Any CPU;SkipI ...Show All
