Alvin Kuiper's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Quaternions: Get only Z component?
Can anybody think of a way to get just one axis of rotation (in radians) out of a quaternion There is, of course, a way to create a quaternion using only one axis angle (Quaternion.CreateAxisAngle(Vector3, float)) but what about a way to get that float back I need to know how many radians my object is rotated around the Z-axis. I think these will get you started: http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/index.htm ...Show All
Smart Device Development GPRS Connection Setup in Code
Hi, I was wondering if there is a way to configure a connection for GPRS on a windows mobile 5 device in code. I am having a few problems doing it through setting the registry as I can get the connection to appear under the Connections > Manage existing connections dialog but if I try and connect to the connection I am prompted for the username and password however I do not want this prompt to appear. I have been able to do configure the connection with great success for a windows ce 4.2 and pocket pc OS however it seems a little different for the mobile 5 device I am working ok. I do not want to import registry entries, I would like to be able to set the registry values in code, which is working as I get the connection in the required ...Show All
SQL Server Error 3154: The backup set holds a backup of a database other than the existing 'xx' database.
HELP! This is happening with a restore to SS 2005 from a SS2000 backup. This article says to use the 'WITH REPLACE' clause. The SS2005 management studio does not seem to allow this via the GUI. http://msdn2.microsoft.com/en-us/library/aa238217(sql.80).aspx Hi all, I am facing this problem, when i try to restore a file in a database. Scenario Database ABC with 1 Filegroup and 8 Files and 1 Log. Now i want to restore the Database ABC to another Server as ABC. due to space constraint i have thought of file backup and Restore. So i backuped up the first file, when i want to restore, It say the error. I have given overwrite existing media and i tried it with media ...Show All
Visual Basic save an .xls as .html
Hello, I wonder how to save an excel file through VB.NET as a web page (html). If I am using a windows service application and I need to save an .xls file as a web page do I need to use an excel application object Any assistance would be greatly appreciated. Thanx! ...Show All
Windows Live Developer Forums Is Virtual Earth Free?
I Would like to use Virtual Earth in my real estate portal. Is it free or I have po pay Virtual Earth Is Free. BTW, what is the URL of your real estate portal I would like to see it :D. ...Show All
SQL Server AS Cube as DataSet for RS Multi-Value & Range Parameters?
Platform: All SQL '05 Std I'm struggling with two issues involving the use of AS Cube data as parameters in a SSRS Report. Background: I've built a report exclusively using an AS cube as it's data source, including the source for multi-value and range parameters. As a note, the cube is complex and at least one of the dimensions is large (~10,000 attribute values). Lastly, the date field being used is a "date time" datatype (more on this in a moment). The two issues are... (1) Even after initial caching (both in VS and as deployed to Report Mgr), the entry of all parameter values suffers long delays (~40 seconds) during apparent data refreshing of tyhe small dimensions, and > 60 seconds for the large dimension, in ...Show All
Visual Studio Team System SQL Server Version(s) Support
It appears that for CTP6 only the Enterprise and Developer editions of SQL Server 2005 are supported. The Standard edition is not supported. When DB Pro is released, will it support the Standard Edition as well Thanks - Amos. What is so special about the Developer edition that prevents the Express edition from working I also find it strange that the product requires SQL 2005 editions to be installed but deploying to SQL 2005 as a target database is not supported. ...Show All
Visual Studio Removing the References folder from Solution explorer.
How is this done in MPF Thanks TurboTom Dmitry, Touche! Very complete and helpful answer. I quickly found ProcessReferences() in ProjectNode.cs file. I stuck a Return at the start. Thanks, Bob. ...Show All
Visual Basic header files
I want to use various API calls from VB2005. Many of them require certain parameters which have complicated names like MEVT_F_CALLBACK and MHDR_DONE. (These come from winmm.dll) The Microsoft SDK documentation decsribes all these parameters but omits to give their numerical values. I understand that the values of these constants are held in a header file which in this instance is be called winmm.h. My question is - where is winmm.h It is not on my computer (though winmm.dll is). I can find lots of references to winmm.h using a search engine but nobody says where it is! I am obviously missing something here. Is it inside winmm.dll If so, how do I extract it Or am I barking up the wrong tree completely Help!!! ...Show All
.NET Development Dropped/duplicated elements in a Collections::Queue
I would need to provide a large amount of detail to properly describe this problem so before I do that, I'd like to just briefly outline the nature of my problem with the hope that the problem is well known. I should begin with the fact that although I have many years of experience programming native code, I am new to .Net programming and I still do not have good understanding of its basic concepts, for example, how the garbage collected memory management model works. First, I should start by saying that I use Visual C++ 2005. In my project I use mixed code because ultimately the program will interact with a native process via shared memory, using OS synchronization mechanisms. That other process stores data in a filemap and sets an eve ...Show All
SQL Server Upgrade to SQL2005 - Installed Instances
My SQL2000 databases did not upgrade to SQL2005. When I look at the Properties>>Options>>Compatibility Level the only options I have is version 7 and version 8... version 9 - which is SQL2005, is not there. So what did I do During the upgrade process - the installation wizard - I made a couple of choices that I believe might have lead to my current condition. The first thing is that I chose to select a installed instance. The second choice I made was to use a domain user account for the Authentication. The second selection I believe had nothing to do with the condition, but I did notice that my Systems Admin user account for SQL is no longer availble... which is a pro ...Show All
SQL Server CLR "Design" question.
for my client, i have built a "standard" 3-tier winforms app that processes store (shop) information - including item costs and prices. Within the 3 tier app, the item cost and retail price processing is mainly done in the middle tier (with stored procs getting the data). this mainly involves either getting the price on a given date (can be a price for the whole group, a region within the group, a store within the group etc..etc..) - using business logic and a stored proc seeing if the item in on a special promotion (within group / region / store) - to do this needs a "working table" to be built in memory of all the possible combinations (takes about 20 seconds to run on users PC) they would now like ...Show All
Visual Studio 2008 (Pre-release) can't install nor uninstall Beta2
hi everybody since last week i am unable to do anything with WinFX beta2 I began with FebruaryCTP : all was fine I upgraded to Beta2...after uninstalling using standard uninstall and the uninstall tools. for some unknown reason WCF didn't install and since then it s a nighmare !! I tried everything...read all the posts here and here....nothing succeed.. right now : uninstall tool says : can t uninstall some components...check you have admin rights (I try to translate as the message is in French...) I have admin rights so the problem should be elsewhere... if i try to install again, there is a message : PerformanceCounterInstaller.exe has encountered an error and it ends... i don t know what to do....except perhaps formatting my hard drive ...Show All
Smart Device Development Application terminated unexpectedly, and no any message
Hello I'm creating an application on Windows Mobile 5 using c#. This application uses the WebBrowser control to show a specific website. The problem that i am having occurs when the app runs on the device. (Motorola Q). For some strange reason the application shuts down as soon as it gets to the line : this.webBrowser1 = new System.Windows.Forms.WebBrowser(); which is in the InitializeComponent() method. It does this without an exception. When i connect the device and debug from VS.net 2005. The app shut off and i get a cannot connect to this device message. I'd try these two things: 1. You could try hooking the AppDomain.CurrentDomain.UnHandledException event, and see if you get anywhere. 2 ...Show All
Visual Studio Team System Changing Sql Server Account from Local system to AD account
Hello, I'm currently running the Sql Server for my Team Foundation Server as Local system. I need to access some network resources from Sql Server and need to change the account to a Active Directory account. Does anyone know the implications of doing this The reason I have to access network resources is a new backup strategy. Each Sql Server backs up its databases to a local disk and then copies it to a shared network resource. If there is a better way to do this, please let me know :) Cheers, Chris Dear Chris: Do you just want to change the starting account to an AD account It is ok if the changed AD account reach the AD trust requirement of the TFS. For more abou ...Show All
