Speedie's Q&A profile
Software Development for Windows Vista Reading the registry on Vista?
Hi all, I'm trying to read a key from the registry on Windows Vista (Beta 2) from my C# program. It works fine on win XP and I know Windows Vista implements a lot of registry virtualisation and such. Should this prevent me reading from the registry though No write operation is being performed - I'm simply trying to find the location of the windows task scheduler logPath (HKLM\Software\Microsoft\SchedulingAgent\LogPath) All help appreciated! Henri Can anyone else help with this error Or tell me definitively whether the vista virtualisation stuff shouldn't be interfering with reads so I can look for problems elsewhere Cheers, ...Show All
Visual Studio Team System TF31003 connect permission denied
Hopefully this is a straightforward question to answer. I am trying to connect to the Team Foundation Server on my domain from another machine on the domain. I'm using the Team Foundation Server RC VM available on MSDN. I added it to our domain and changed the reporting and service accounts to domain accounts. It seems to be working. I have no event log errors and I'm able to connect to the server locally with VS2005 (it is installed on the VM). However, I cannot connect from other workstations. For example, I am now logged in as a Domain User. I have added the Domain Users group to the Team Foundation Valid Users group. When I try to connect from VS2005, I get: "TF31003: Your user accound does not have permission to connect ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with "How To: Animate a Sprite" Tutorial
In XNA GSE 1.0, I've been looking at a few how-to articles in the documentation. The first few I tried were quite good, but I'm having a problem with the "How To: Animate a Sprite" tutorial. I made a single texture with four frames in it, all the same size (I believe the texture is 255 X 92 pixels, or close to that). I typed in all the code exactly what it's like in the tutorial, but when I run the program, only the first three frames play. Then, they loop back and play again and again, as if only three frames were there. Does anyone know why ProfEclipse, You are right! I tried that and it fixed my problem. I don't know why they said to do that in the documentation... I thou ...Show All
Visual Studio Express Editions Split string function
Hi, I just started VC++E not long ago. Already used to VB split function to split a string. Was wondering how do i split a string like below into an array strLine = "abc,123,def,456"; strArray[0] = "abc"; ... Thanks in advance! It depends on what string class (if any) your using. eg: for std::string #include <string> #include <vector> std::string strLine = "abc, 123, def, 456"; std::vector<std::string> strArray; std::string token; for(std::string::size_type i=0; i<strLine.size(); i++) { if(strLine[ i ]==',') {//split token found //do something with token if(!to ...Show All
SQL Server Management Studio - creating scripts without "use database"
Hi. In Management Studio, Object Explorer, Databases, ex. database pubs I'm choosing "Modify" (or "Script stored procedured as...") on Stored Procedures and I'm getting this: USE [pubs] GO /****** Object: StoredProcedure [dbo].[byroyalty] Script Date: 11/14/2006 12:56:09 ******/ Where can I turn adding "use database" and "script comment" off In QA2000 there was option for this but I cannot find it in SSMS. Kamil ...Show All
Visual Studio Team System Team suite trial software unavailable for download
I am trying since last 2 days to download the team suite180 days trial edition. But I always get a 500 server error after I sign in and click download button http://www.microsoft.com/downloads/details.aspx familyid=5677ddc4-5035-401f-95c3-cc6f46f6d8f7&displaylang=en The file is not found at this URL http://download.microsoft.com/download/6/f/5/6f5f7a01-50bb-422d-8742-c099c8896969/En_vs_2005_vsts_180_Trial.img Can you please enable the download Just tried it now and it worked for me, looks like the download GUID might have changed from the one you have. Try the following link (from the http://msdn.microsoft.com/teamsystem page):- http://go.microsoft.com/fwlink/ LinkId=64135 Cheers, Martin. ...Show All
Visual Basic How to query by 1 Button_event several TextBox's Text
Several TextBoxes (First, LastName, DOB etc)are bound to a Database . 1. How to query any of these TextBoxes with 1 Button The query for one of the TextBoxes: SELECT IDP, First, LastName, DOB, SocialSecurityNumber FROM Table12 WHERE (First = @TextBox1) 2. Furthermore, how would be a query look like if the user just type the first letter of the LastName Dim queryText As String ' Scenario a) If Textbox1.text="" And Texbox2.text="" And Textbox3.text="" And Textbox4.Text="" Then MsgBox("Please input a string for a query.") ' Textb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dynamic CubeMap, How?
Hi, Is there a fast way to update the textures of a cube map Currently I'm rendering out the six directions and calling TextureCube.SetData to copy the render target contents across. This isn't particularly nice but I haven't found any other way to over come this. The only other alternative I can think of is to completely scrap using TextureCubes and use a list of bog standard Texture2Ds and a 'fancy' shader. Cheers, Tim You might read this thread too where Shawn talks about rotating through render targets to not block the GPU. ...Show All
.NET Development How do I publish a web with SQL 2005.
I am using VWD 2005 Express, with SQL 2005 Express. My web hosting company supports ASP 2.0 and SQL Server 2005, but have put SQL on a database server, which is separate from the application server. I successfully published a "Hello world" test application, but the database application failed after displaying the logon page, presumably when it first tried to connect to the database. VWD has created my database within the application folder ( app \App_Data\ASPNETDB.MDF) and created the configuration string in web.config: - < add name = " ConnectionString " connectionString = " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True " provi ...Show All
SQL Server CREATE SUBCUBE in Microsoft Visual Studio for SQL2005
Hi, I am trying to create a SUBCUBE in Microsoft Visual Studio (Analysis Services) but It keeps on giving me an error when trying to build the Subcube. The MDX statement is correct because I have tested it in SQL2005 Management Studio and it works. My question is that “am I doing it in the right place ”: This is under the Cubes Folder > Calculations Tab> New Script Command My understanding is that under the “New Script Command” I can type any MDX statement and it should work Or should this be done in another place When processing the cube the error I am getting back is: Parser: The script contains the statement, which is not allowed What I am trying to do is to c ...Show All
Visual Studio ReportViewer.refreshreport method missing!
Hello I'm using the VS reportviewer on my asp.net application. I've seen many examples using the reportviewer.refreshreport to force a reportviewer refresh after setting up parameters. Well.. In my environment this method is missing. Do you have any idea why I don't have this method available Thanks Wizard Step1 - Reaport Parameters Wizard Step 2 ReportViewer protected void Wizard1_NextButtonClick( object sender, WizardNavigationEventArgs e) { ReportViewer1.LocalReport.Refresh(); ReportViewer1.DataBind(); } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flash Movie in Full Screen Direct3D
In VS2005, i need to embed a SWF flash movie in a fullscreen Direct3D 9.0 based game. I have successfully added my swf(which was painful) and played the movie without problem. But, when I tried to switch the display from SWF flash move to Direct3D device. It failed! The followings illustrate the general flow of my problem: 1. load and display the SWF 2. user press space to start game (SWF get focused and read space bar), set SWF invisible by AxShockWaveFlash1.visible = false 3. start game, render Direct3D 4. game ended, stop rendering Direct3D 5. show the SWF movie again, set SWF visible by AxShockWaveFlash1.visible = true, focus SWF Problem raised from Step 4 to Step 5. This problem do not exist when I am not using the f ...Show All
Visual Studio Team System Web test Cannot be run -Cannot access datasouce
After changing the entries in one of the columns of the datasource table in the spreadsheet, I redefined the table and reattached the datasource to the web test. However when I ran the web test, I encountered the following error message and am stuck. “Could not access the datasource ‘DataSource1’ of test. No value given for one or more required parameters.” Has anyone encountered this issue before I have realised that this is not due to manipulation of data in the spreadsheet, but has occurred after parameterisation of a form parameter that I recorded in LoadRunner and copied across to Visual Studio. I still have to figure out why this is occurring. ...Show All
Visual Studio How to listen keystorkes in VS.Net IDE
Hi, I'm writing a add-in for helping our development team. Something like live templates, templates will be stored in a xml file with keyname. Like forloop, ifcondition and so on... So when the developer types forloop in the codewindow, then a tooltip should appear on the window, saying press some key to fill the template. For doing this i tried using add-in, but in VS 2003 only LineChanged event is available for texteditor events in DTE. So I don't know how to track the keystrokes happening in the current window. Please let me know the solution or alternative way to handle this or any workarounds. Regards, Saravana Kumar B Have you tried the new Code Snippets feature in Visual Studio 2005 Tools->code Snippet Manager It is a per l ...Show All
Gadgets Bug #29 g:background image is not rescaled when the Gadget body size changes
Bug #29 If the g:background image is set to a percentage of the Gadget size, it's not rescaled when the Gadget body size changes Added to the known bugs list , together with a Repro for MS, screenshot and workaround. ...Show All
