Helge Norvang's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Direction vector from a matrix or quaternion
Hi all, A have a matrix and I need to specify a direction vector from it... How can I do Thanks Aurelien Because I'm importing a scene from 3DSMax with the plugin Collada. The origin direction vector in 3DS Max is (0, 0, -1) with a Z up axis and I would like an origin direction vector at (0, 0, 1) with a Y up axis... When I read a position or a translation, it is easy to replace a axis coord by an other... but when I read quaternion values (x, y, z, w), how can I make the transposition to my coords system with my origin coord Thanks, Aurelien ...Show All
Visual Studio 2008 (Pre-release) Cannot run August CTP Samples
I installed the August CTP, after the LINQ Preview. Everything installs correctly. I opened the solution in VS2005 and built it, everything compiled. I mapped a virtual directory to the installation folder of the webapp sample (on my machine - 'C:\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Samples\CSharp\WebAppSample') The first time I try to access the sample it takes a long time, then errors out to this : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Descr ...Show All
SQL Server Subcube in cube calculations
In AS 2005, can a Create Subcube statement be used to create a subcube that can be used within a Calculated Member in the Calculations tab in the cube editor. The Subcube needs to exist only within the scope of the Calculated Member. (Create member) What are the typical usage scenarios for 'Create Subcube'. Regards Replying to your questions 1. So, do you really hardcode the conditions on the date dimension inside MDX Script This would make it very inflexible. Or am I missing something One of the conditions is a default date value(hard coded), other is based on a user selection of the main Time dimension. 2. I am puzzled why you see differences in performance between two appr ...Show All
Visual Basic Integrating .Net into a VB6 client
Hello I have a question about whats the best way to integrate a .Net application into an "old" VB6 application. The current problem is that we need to rewrite "parts" of the application and need to incorperate those "parts" into an old legacy System... This system is written in VB6 and the goal would be to make this possible with the smallest amount of changes to the VB6 code. I was thinking about creating a plugin or something like that which would have its own form or controls and only require a very "minimalistic interface" (like show()) Are there any patterns which I should take a closer look at or has anyone a suggestion on what would work best The "part" of the system will ...Show All
Visual Studio Express Editions Failing to write List
Hi, I am trying to write data to a text file using the FormClosed event as I just want everything that is in the list sent to a file, no matter how the data has been manipulated while held in memory string s = myList.Items.ToString(); if(s != null) { WriteData(s); } static void WriteData(string s) { using (TextWriter w = File.AppendText(@"MyData.txt") { w.WriteLine(s); } } I have wrapped the first part in a try block, but the exception doesn't seem to catch it. The text file is full of these lines System.Windows.Forms.ListBox+ObjectCollection and it should be full of my data line 1 my data line 2 etc., tia, excellent Markku thank you &n ...Show All
Windows Forms Custom Action does not run
I am setting up my first deployment project on VB.NET 2005, and I'm running into a problem with custom actions. I have a test custom action that puts up a msgbox. I added that to the Commit phase, built the solution, then ran the install. The custom action did not work. Somewhere I read that is a known bug, and you have to also add the same action to the Install phase, but that it is not active. So I tried that, still it does not run. Thinking maybe you cannot show anything to the user with custom actions, I took out the msgbox, and added a file append. Still nothing. The custom action project runs fine if I run it on it's own (outside of install). I have the custom action project in the current solution. A ...Show All
Internet Explorer Development how to get a visitor to download a file
Hi there does anyone know how to enable users to download a file I was thinking a hyperlink would this work Hi, You can simply do that ! When your hyperlink point to a file that client browser can not open it, the Download Dialog box will come up! Some extensions like EXE,RAR,ZIP,... <a href="aaaaa.exe">Download</a> something like this will prompt your user for downloading a file. Babak Izadi LotraSoft Ltd. ...Show All
Visual C++ set<String> in Visual C++ .NET
How do you use a set of Strings If I say set<String> *st; String *s = S"FOO"; st->insert(*s); I get an "illegal use of managed type" message. thanks Not really. The question is straightforward, I think. Is there such a thing as a set of String (NOT string) the kind that you use as String *foo = S"FOO"; and if there is such a thing, how do you declare & use it -- I get compiler errors no matter what I try. Julio ...Show All
SQL Server How do I know if I have Enterprise or Standard on my machine?
I go to help>About and it just says SQL Server 2005 Microsoft SQL Server Management Studio Version 9.00.1399.00 An easy way is to go to the registry and look for this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup\Edition Note: You'll have this key for each component installed, so you'll find them here as well: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\NS\Setup\Edition HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\DTS\Setup\Edition HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Setup\Edition Thanks, Sam Lester (MSFT) ...Show All
Visual Studio VSS2005 crashes several times a day
Hi, Visual Sourcesafe 2005 is crashing repeatedly for me at these places: Faulting application ssexp.exe, version 8.0.50727.42, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x000122ba. Faulting application ssexp.exe, version 8.0.50727.42, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x000111de. Faulting application ssexp.exe, version 8.0.50727.42, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x0003426d. Faulting application ssexp.exe, version 8.0.50727.42, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00043345. All of these seem to happen if I scroll/click the mouse immediately after performing DIFFs. I think all of the crashes are caused by the same bug so I'm ho ...Show All
Visual Basic sequence of execution of assembly[in code]
can anyone of you please explain how is execution sequence like [new->initialise-> ] like that.. untill the user gets the control... Hi Zybernau well if you want to know the process starting creating new thread for the assembly this is it: 1- ThreadHelper.ThreadStart() 2- ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 3- ThreadHelper.ThreadStart_Context(Object state) 4- Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 5- System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 6- System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) And this function will call Main() Sub in your My.M ...Show All
SQL Server SQL 2005 Error: The "variant" data type is not supported
Hello, I have to use a script which examines whether an SQL Server 2005 database is correct and can be used to transfer data to. Under "Validating Database Collation..." I get the following error message: com.microsoft.sqlserver.jdbc.SQLServerException: The "variant" data type is not supported. I used Latin1_General_CI_AI and switched to SQL_Latin1_General_CP1_CS_AS (because this is what I have to use, according to the documentation), but in both cases the script produces the same error. It does not seem to be a big problem, as the script apparently does not fail because of this error, but I would like to improve the situation. Also, my knowledge of databases is limited and therefore I do not understand what the varia ...Show All
Windows Search Technologies OneNote 2007 Beta
I have Office 2007 B2TR installed. I recently installed OneNote 2007 B2TR and every time I open OneNote 2007 it crashes. I have tried this on multiple computers and I get the same result. Would you please let me know what I can try to do to make it work or where I should look for more informaton Thank you. This may be a bit weird, but, I am a first year law student and I my computer recently crashed. In recovering my hard drive, my MIS dept was unable to recover any of my applications, to include the OneNote Beta version that I have been using since August to take class notes. I am hoping that anyone who has the beta version would be willing to take my file and convert it it .wrd or .pdf fo ...Show All
SQL Server & character in Select statment
Hi Folks If I wrote this in QA what does it mean Declare @X INT Set @X = 2 Select (@X & 8) What & do in this select statment Thank you Shallu is Right, but i would like to add somthing to it The & performs the BITWISE AND operation like in this case Binary of 2 is 0010 Binary of 8 is 1000 now both of these performa AND operation bit by bit 0010 1000 (AND) --------- 0000 (Result) --------- you can even performa any of the logical operation like & => AND | => OR ^ => EOR ~ => Negation Regards, Gurpreet S. Gill ...Show All
Visual Studio Tools for Office Setup project doesn't appear to fully setup add-in
I have developed an Excel Add-in using VSTO, but the auto-generated Setup project doesn't appear to have done the trick. If I run the project on my dev machine with VS via the F5 key, Excel starts with my Ribbon customization in place. If I compile the Setup project, copy the setup.exe and msi to a different machine and run the setup there, it doesn't appear to have fully installed. My Add-in shows up on the "Inactive Application Add-ins" list, but not on the "Active Application Add-ins" list as I would expect. What steps do I need to take manually asside from running the installer before the Add-in will take affect on this second machine Thanks in advance for any help. --Nick ...Show All
