DeadDante's Q&A profile
SQL Server Help with CURSOR
We have a tree structure containing section names. Each node is a section name and each section can have subsections. I have to copy the tree structure but need to maintain the parent-child relationship established within the id / parent_id fields. How do i acheive this For example i have the tree Section 1 |-Section 1.1 Section 2 |-Section 2.1 The "Section" table contains 3 fields: id, parent_id, and caption. ID is the identity of the section record and parent_id contains NULL or the ID of this record's parent to create a child. So "Section 1" (id=1, parent_id=null), "Section 2" (id=2, parent_id=null), "Section 1.1" (id=3, parent_id=1), "Section 2.1" (id=4,parent_id=2). I would like to ...Show All
Visual Studio Express Editions save form
how do you save the infomation entered into a form as a text document Well to write to a textfile or something, you would use a streamwriter (easiest way): Imports System.IO ... ... Dim theWriter as new StreamWriter( Path\yourFile.txt ) theWriter.WriteLine(yourvalue) theWriter.Close() you simply use the Write/WriteLine method in the streamwriter to write your value, so if you had a value in a textbox, to write the value: theWriter.WriteLine(Me.theTextBox.Text) does this help at all ...Show All
Visual C# "Inconsistent Accessibility" when sharing Generic List
Hi, I have some code that gives me the following error: Error 1 Inconsistent accessibility: field type 'System.Collections.Generic.List' is less accessible than field 'PREPA_DAS_2007.frmDashboard.InstrumentList' C:\Documents and Settings\r-rivera\My Documents\PREPA DAS 2007\PREPA DAS 2007\Dashboard.cs 32 34 PREPA DAS 2007 I have two forms. The first one: public class Form1 : Form { public List<MyClass> MyClassList; } which I can instatiate like so: Form1 SomeForm = new Form1(); Defining this List as Public gives me the error. However I want to access this list from another form at runtime, say, with the following line of code: public class Form2 : Form { public void SomeFunction() ...Show All
Visual C# VS hangs when trying to open/create a project
Hi everybody! :-) all of a sudden, out of the blue, VS studio started to hang and become not responding when I'm trying to open or create a new project. It starts to load or create the project but than it just hangs and stops responding (not responding status). devenv.exe process gets stuck on 50% (+-1), and thats it. I tried to uninstall and reinstall, but nothing works! I'm out of ideas! HELP !!! Thanks a lot! Hey, thanks, but it doesn't work, and I didn't install any add-ins, I even did not install any kind of program. I also noticed that it doesn't happen in all projects, just ones with COM components in them. for instance, a project withBandObject from the Code Project website ( h ...Show All
SQL Server How can I compare datetime in a query???
I have a table with the following columns company_Id employee_id logon_time_id logoff_time start_valid_period end_valid_period Employee's working time should only be counted if it is between start_valid_period and end_valid_period So, if I have for employee1 from company1 logon_time_id = 04/07/2006 11:00 loggoff_time = 04/07/2006 12:20 start_valid_period = 04/07/2006 12:10 end_valid_period = 04/07/2006 12:30 I should consider 04/07/2006 12:10 as the initial datetime, 04/07/2006 12:20 as the final datetime, and count only 10min of work to him. In code: if(logon_time_id < start_valid_period) initialDatetime = start_valid_period else initialDatetime = logon_time_id if(logoff_time < end_valid_period) finalDateti ...Show All
Visual Studio 2008 (Pre-release) Can't find MSDLinqGenerator
Hi, I downloaded from subscriber downloads the following: ORCAS Base Image ORCAS Sept 2006 Then I executed them and created the virtual machine. Then I installed: ADO.NET vNext CTP (August 2006) LINQ CTP (May 2006) ADO.NET vNext Entity Data Model Designer Prototype CTP I then started to try out the samples and most would not compile. Then I followed instructions from the "Walkthrough: Using the Dlinq Designer" but there I can't get way any code generated from the dlinq file. The IDE says the associated tool is MSDLinqGenerator, but I cannot find such tool by searching the file system of my virtual PC. Any help GREATLY appreciated! Juan Dent Hi and thanks for a prompt respon ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX
Hi people, Hi run some application with comes with DirectX SDK and both Managed and Unmanaged application's FPS stay the same. But when I run Managed application in fullscreen, it decrease a lot. It doens't happen with unmanaged Directx. For example, my application in C++, running in fullscreen mode, stay in 270 FPS. When I run the same application in Managed DirectX fullscreen mode, it stay in 80 FPS. Someone knows why this problem occour Thanks a lot. Ricardo Hi, Thanks for your reply. Is there a way to avoid this Thanks! Jose Ricardo ...Show All
Visual Studio Team System how to install report designer?
hi, i followed this steps to start the report designer: http://msdn2.microsoft.com/en-us/library/ms160337.aspx but i did not find the Project Type , Business Intelligence Projects . it is not available in my list. so i think i have to install report designer first! how can i manage this task i have installed visual studio team edition for software developers. This is a little outside of my domain but according to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=21600&SiteID=1 you may need to install the "Workstation Components" from the SQL Server 2005 disk on your machine. The SQL Server Reporting Services forum ( http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&Site ...Show All
Visual Studio Express Editions Cannot Uninstall VWD Express
I downloaded and installed VWD Express about 5 weeks ago...used it and decided to spring for the full-blown Visual Studio package. I decided to uninstall VWD Express, but it won't let me. It returns the following message: :"Setup is unable to determine a valid ordering for the installation. See the error log for further details." The error log says: [02/04/06,00:24:34] Dependency Manager: [2] CDependencyManager::ValidateDependencyStates() : Parental dependency is not satisfied for component Visual Web Developer. Parent dependencies can't be in removing mode. [02/04/06,00:24:34] Dependency Manager: [2] CDependencyManager::ValidateDependencyStates() : Parental dependency is not satisfied for component Visual Web Develop ...Show All
Visual Studio Team System Team Foundation server sending the same alert content multiple times
Hello, We have users that have subscribed to the standand "Work items changed by others" alert For some reasons, the TFS server sends the exact same e-mail over and over again. The user will receive it each hour all throught the day (exactly one hour, clockwork). The content are exactely the same. If we make further changes to the work item, the initial notification continues to be sent. I have seen the same behaviour on the check-in alert (the one that shows the change set information) I have only seen this behaviour on this one internal team project we have (we have installed may TFS at other customer sites and I have never seen this behaviour, nor can I see any other complaints about this). I have not ...Show All
Visual Studio 2008 (Pre-release) What is faster: Image or GeometryDrawing?
Hi, I want to create some icons for my TreeViweItems. Now I'm interesting in what's faster or has a higher performance: Using an icon as a bitmap-file placing it an Image-Control or using an Rectangle with a "GeomeryDrawing-Fill" What needs more memory / cpu/gpu power and why greetings, cheesenhomer Hi Drew, thanks for the hint with the Performator. I haven't known about this tool and will check it out. cheesenhomer ...Show All
Visual Studio Team System Unspecified Error (csolutionconnection.cpp) - Adding project to Team Foundation Source Control
Background: Migrating existing VS 2003 solution file referencing a bunch of VS 2003 C++ 6.0 projects to VS 2005 and uploading the resulting VS 2005 solution and projects in Team Foundation Source Control (TFSC). Observation: The solution and projects converted to VS 2005 without any issue. While adding the solution to Team Foundation Source Control, only some of the projects and the solution file made it through to the TFSC as I got the following error: "Unexpected error encountered. It is recommended that you restart the application as soon as possible. Error: Unspecified Error File: vsee\pkgs\vssprovider\csolutionconnection.cpp Line: 10592" I was able to upload all but one project missed out as a r ...Show All
Smart Device Development Errors in Standard Header files while compiling the OpenH323 pwlib v1_11_0 in Visual Studio 2005 development environment
Hi all, I am trying to compile the open source h323 stacks in Visual Studio 2005 environment. But i am gettting the following errors in the standard header files. Can someone please help me in overcoming this problem 1>------ Build started: Project: pwlibce, Configuration: Release STANDARDSDK_500 (x86) ------ 1>Compiling... 1>assert.cxx 1>E:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\include\x86\winver.h(157) : error C2146: syntax error : missing ';' before identifier 'DWORD' 1>E:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\include\x86\winver.h(157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>E:\Program Files\Windows CE Tools\wc ...Show All
Visual Studio Team System Problem Unit Testing ASP.NET Application
I'm trying to unit test my ASP.NET application. I have two problems: I need my application's HttpModules and HttpHandlers to have total control over the requests as my ASP.NET application is actually an Atom server. Effectively I have IIS forward all requests to ASP.NET; when I try to run my generated unit tests that have [HostType("ASP.NET")] attributes I get an error when accessing the VSEnterpriseHelper.axd file (information invalid ). I have code that does internal functions in the ASP.NET app that I need to test without actually invoking URLs at all. So I just removed the [HostType("ASP.NET")] and [UrlToTest("...")] attributes and ran the tests. Now the problem is I need a way to access my web.config from within the unit tes ...Show All
SQL Server cluster install 2nd node unavailable
Hi all, Try to install sql 2005 x64 on a Win2003r2 x64 two node cluster. All looks fine as far I get to the "cluster node configuration" dialog. My second node is always displayed as "unavailable node" reason "unknown". - I checked the logfiles but could not find any error. - Installation user & cluster user are both local admins. - Tried with sql 2005 x32 version -> same result. What do I miss out here Any help is highly appreciated. TIA acki Can you check thru this http://msdn2.microsoft.com/en-us/library/ms179530.aspx link and confirm whether you have following in same fashion. ...Show All
