Nialaa's Q&A profile
Visual Studio 2008 (Pre-release) JOIN questions
Hello, I am using the May CTP of LINQ and I was wondering if anyone had found a good way to perform outer joins using DLINQ Also has anyone found a way to emulate the following join syntax using DLINQ (using multiple join limiters on the same join) Hi Data which I have 1001 2003 F 1001 2001 P 1002 2004 F 1003 2004 F 1004 2004 S 1004 2003 F Which is considering all the cases 1004 ----- 2003 --- 1001 Result must be 1001 2003 2001 P 1002 2004 NULL F 1003 2004 NULL F 1004 2003 2004 S But I am getting with this query 1001 2001 2003 P 1001 2003 2001 ...Show All
Architecture Passing Business Objects through tiers?
I typically build my application using a three tier design with a domain model. Domain Model Presentation (windows or web forms) Business Logic Data Access Logic I see many examples out there that don't use a domain or logical model and just business tier. In some of those examples i have seen the sql generated in the business tier and then passed to a data access tier for execution. I don't like this approach as i don't like seeing sql in the business tier. What is the best way to pass the business entities to the data access tier without a circular reference I typically create a class library project for the business logic and another for the Data Access logic along with my windows/web application. To solve this pro ...Show All
Visual C++ Arrays of structs don't display in debugger
When I have an array of structs, the Autos window, tooltip, and Quickwatch all display only the first element of the array. For example, struct Variable { char name[25]; enum VarTypes type; ... }; Variable var[10]; Now when var is displayed, there is a single-line format which shows the structure members for var[0] only. If in Quickwatch, you type "var,10", everything displays correctly; i e, you get a subtree with subscripts [0]. [1], etc, and each of these can be expanded to show the members of the struct. I already posted this in the "resize autos" thread, which you were reading. Here it is again: Here is what I get, every time: ...Show All
Visual C# How to Print .Html files in C#?
Hi I have some .html files, which I made display on my web browser control. I need to print the appropriate web page which are displaying on the web browser, and those files are stored in a specified location. Can anyone help me to solve how to print .html files through C# I need to download .html files from my own websites to my PC directory. ie, From www.mywebsite\Html to "C:\MyFolder". any help Regards Ahmed Sahib to download files using the webbrowser control, why dont you use the ShowSaveAsDialog() method you could also use say the HttpWebRequest/WebResponse classes to get a the data and save it locally http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=933461&SiteID=1 to pr ...Show All
.NET Development NET 1.1 AND 2.0 UNINSTALL/FIX/INSTALL/UPDATE INOP
I can not do a thing with these programs. Totally hosed! My other 3 computers seem to be fine, but there is a problem when you can not remove a program in safe mode. This has to be a very common problem and where is the fix Update fails also for .net. I have a clean download from work on my mem stick. 1.1 and 2.0 with updates are installed. The problem surfaced when I used auto update for a security fix and it would not install. So I tried to remove them with no luck. I have removed 1.1 from my other computers with no problem at all. very strange. ...Show All
Visual Studio Team System Weird Compare Issue
When I click the "Check-In" button on a TFS SCC project in the source control explorer I get a list if .vspscc and .vssscc file conflicts that occur. When I click on resolve and then click the compare button I get a pop-up window that has the notification icon, 2 buttons but no text at all. Not even on the buttons. What is going on here I installed TFS about 4 days ago. Cheers, Mark Regardless, the fact that it repros in both providers is interesting -- there's only so much shared code between them. Some things that might be helpful: - a screenshot showing the state of the resolve dialog(s) when the pop-up appears - a stack trace from a debugger at the time of the bug - configuring a 3rd-party di ...Show All
Smart Device Development Determining if network is available...
In the article here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/NetworkComponent.asp There is the following code snippet: Public Shared ReadOnly Property Connected() As Boolean Get Dim ret As Boolean Try ' Returns the Device Name Dim HostName As String = Dns.GetHostName() Dim thisHost As IPHostEntry = Dns.GetHostByName(HostName) Dim thisIpAddr As String = thisHost.AddressList(0).ToString ret = thisIpAddr <> _ Net.IPAddress.Parse("127.0.0.1").ToString() Catch ex As Exception Return False End Try Return ret End Get End Property Why do you only have to compare against the IP address in the 0 index. What if ther ...Show All
Windows Forms help ToolStripDropDounButton
hi all. on my toolstrip i have a ToolStripDropDounButton, with one sub menu. when i click on the small arrow, for getting the sub menu, the click event of the ToolStripDropDounButton is fired and the sub menu is shown also. how can i make it drop down it's sub items when clicking on the arrow, and fire the click event only when clicked on the button itself Hi,shimshon I'm afraid that you cannot achieve it unless you develop your own ToolStripDropDownButton with a button and an arrow, and override the onClick event. Regards. Ye ...Show All
SQL Server Installing SQL Server 2005 on Windows VISTA ULTIMATE
Hi, Trying to install SQL Server 2005 on Windows VISTA Ultimate, received following error: - SQL Server Edition Operating System Compatibility (Warning) Messages SQL Server Edition Operating System Compatibility Some components of this edition of SQL Server are not supported on this operating system. For details, see 'Hardware and Software Requirements for Installing SQL Server 2005' in Microsoft SQL Server Books Online. Please help. Right...but for SP2 it should allow me to install SQL Serevr2005 1st. It's giving me the warning and on moving ahead it's not giving me option to installing SQL Components (SQL Server, Analisys Server, Reporting Services etc.)...what I am getting is just to install Nativ ...Show All
Visual C++ Intellisense becoming unable to resolve objects
I'm posting this here and not in the general Visual Studio forum because my experience so far tells me the situation with C++ is different than with, say, C# (I have so far at least one example where VS's tools behave worse in the C++ environment than in that of C#). I have Intellisense getting confused and unable to resolve objects so often that I find myself closing the solution, deleting the *.ncb file, and reopening the solution. It almost makes me wish I had a "rebuild Intellisense" button... Kamen If I find the time - I will. It's not like MS will jump and solve it immediately. In mean time - the issue that I reported has not been answered , period. I also think it's a travesty that users can mark their own po ...Show All
Smart Device Development Questions on using RIL on Smartphones
Hello, I am new to developing on the Windows Mobile platform and have just started writing an app for Smartphones running Windows Mobile 5.0. My first task is to get the cell tower ID that the phone is currently registered to. I searched MSDN and other discussion forums and found that I can use the RIL functions to get this information. My first confusion was wether RIL was even supported on Windows Mobile 5.0 since MSDN includes RIL and Cellcore under 'Windows CE Embedded 6.0'. However, judging by some messages on other forums, RIL does seem to be available on Mobile 5.0. So far, so good. I tried to write a simple app using RIL functions but couldn't build it. I can't find any RIL-related files in my SDK install. After some more searchi ...Show All
Software Development for Windows Vista Windows Installer - "Change" action does not require admin password in "Programs and Features"
Why does Windows Vista not prompt for admin password when selecting "Change" in "Programs and Features" Even a limited user is able to add or remove features from our installed product. The strange thing is that the installer prompts for elevation when installing and uninstalling. This appears to be a bug in Vista only (and a pretty serious one at that). On XP, only an administrator can change the set of installed features. Our installer has ALLUSERS set to 1 and ARPNOMODIFY set to 0. Mike Morrison Yes, the MSI is signed. Elevation is also not required if you run the installer and choose "modify" from the MaintenanceType dialog. I'm not exactly sure what you mean with your que ...Show All
Windows Forms Single click acting as double click in form designer
For some reason, when I'm editing a property of a control in Design View and then single-click back on the form designer, the IDE acts as if I double-clicked, and goes to the code for the Form.Load event-handler, for example. Has anyone else experienced this Is there a setting that I changed somewhere that fixes this, or is it a bug Thanks for your help. -Mike I've been having the exact same problem too. I'm not certain, but I believe it began happening when I upgraded to SP1. It doesn't happen all the time. I haven't been able to come up with a correlation between number of files open, number of projects in the solution, number of forms open, or anything like that. I can't reproduce it right now. Th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scene statistics
It is possible to get scene statistics: total number of triangles, number of visible triangles How to do it On Windows, you can use the PIX tool (part of the DirectX SDK) to obtain all kinds of information about your scene. The overlay statistics mode is particularly useful here. We don't have any automatic way of doing this on Xbox, so you'd have to add your own instrumentation to your drawing code. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Build for game artists using Microsoft Team
Hi there, Lets say I want to use XNA Build for my next project (which I do)... I use Microsoft Project to track my art tasks, that's integrated with Microsoft Team tools so that my artists can use Microsoft Internet Explorer to access my Microsoft Sharepoint web pages that access Microsoft SQL Server where my Project tasks live and the art assets are version controlled into Team. Not a problem for my developers who use Microsoft Visual Studio Team Edition for Software Developers. I can load a standalone version of Microsoft Team Explorer on my artist's workstations so they can see/track their tasks, but I want to use XNA Build so that we can keep all their art assets in projects and solutions. Then we can use Team Build to have conti ...Show All
