Newbie Kam's Q&A profile
.NET Development A transport-level error has occurred when receiving results from the server.(Provider:TCP Provider,error:0-The handle is inv
Hi, I am using SQL Server 2005 as backend in my Web Application, while trying to retrieve data from the database; I am getting the following error: A transport-level error has occurred when receiving results from the server. (Provider: TCP Provider, error: 0 - The handle is invalid .) But I am getting this error randomly. Can some one help me out Waiting for your response Sudhakar Hi Ryan, No its not a linked server. We have hosted a website on our client server ...Show All
Visual Studio Express Editions express?
does anyone know the difference between visual C++ express and visual c++ There is a detailed list of differences here but it still might not mean much to you: http://msdn2.microsoft.com/en-us/library/hs24szh9(VS.80).aspx I'm new to this too but I wasted a LOT of time finding out that Express Edition has less templates included. Note that the Express download pages do not tell you the restrictions or even contain links to pages that do. There's a thread here about my experience (or lack of!): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=942907&SiteID=1 Express Editions are supposed to be more suitable for beginners; if anybody can point out why please do, it might help me to find ...Show All
Visual Studio Team System Sealed disposable C++/CLI class
I made public C++/CLI class sealed, like this: public ref class Class1 sealed { public: Class1() { } ~Class1() { } }; FxCop shows the following messages: CA1047 DoNotDeclareProtectedMembersInSealedTypes. Make 'Dispose' private, public, or internal (Friend in VB, public private in C++). CA1063 mplement IDisposable Correctly. Ensure that Class1.Dispose(Boolean):Void is declared as protected, virtual, and unsealed. I tried to declare ~Class1 private, protected, internal - FxCop shows the same message. Only removing sealed keyword makes FxCop happy. How can I make Disposable sealed class in C++/CLI I guess this is C++/CLI compiler and not FxCop problem. Anyway, is there any workaround except excludi ...Show All
Visual Studio Express Editions Combo to display name from second table instead of ID from first table
Ok, here's another noob question. I'm a convert from Access/VBA and learning how to work in Visual Basic. Problem : Displaying names and not IDs from member table in a combo box that is referred to by its ID in the Program table . Ok, that needs some more explanation. Here's the setup : Tables: Program Member Times Program is related to Member by its foreign key ProgramMemberID (which is MemberID in the Member table). Times is related to Program by its foreign key TimesProgramID (which is ProgramID in the Program table). So far so good. Now I create a form with the above mentioned tables and relations as its DataSet. Each form entry is one program, that also has one member selected from the Member table and mu ...Show All
Visual FoxPro Clip art suitable for VFP 9
Hello -- I am just starting out with 9 (have done just a little in 7 before). I am going systematically, creating classes now. The first problem I came across was where to get (free, preferably) graphics files (.bmp mainly) that would be fit for menu buttons and the like (e.g. the exit symbol, a man running towards/though a door). I do not think the .bmp files in VFP9 are enough. I know, this is a simplistic question, but it is important to me. Thanks in advance for your help. Hans L Google for icons There are a bunch of great ones available for free. Don Higgins www.crewchiefpro.com My race car: www.crewchiefpro.com/racecar.pdf ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection
Hello, I would like to create a collision detection function to test if the bounding sphere of one of my meshes (the player, for instance) is intersects a triangle in another model (the level). How would I go about running a for loop that checks each triangle of the level And from there, what would be the best algorithm to determine if the BoundingSphere is within the triangle Any help is greatly appreciated. I recommend the book "real-time collision detection" by Christer Ericsson. It does a great job of explaining many of the intricacies of real-time collision detection, how to accelerate it through pre-processing, etc. It does use C++, but assuming you can read that, the examples are all easil ...Show All
Visual Studio Team System Contains operator for WorkItem HTML fields and substrings
I have an HTML field in my work item (Steps to reproduce). I want to query for items that contain a certain string in the field. I am finding that the query will find whole words only, but no substrings. For an example, the field contains the word 'testing'. If a create a query that looks for a work item that contains the string 'test' in the Steps to reproduce field I will get an empty result (using the Contains operator). I have to have the exact word in order to get a result. It looks like capitalization does not matter and the word has to be at least two characters long. Am I missing something I found the following know issue. http://msdn.microsoft.com/vstudio/teamsystem/tfsknownissues.aspx 8.2 Query for long-text fields that ...Show All
Visual Studio Express Editions Media Player
Hi all, I got this code for media player and it comes with a playlist but it only plays MP3's only. I would like to add many other media formats to it (like mpeg, wav, & All Files) what changes in the code do i have to make And would it be best to add a Open file dialog instead of a folder browser dialog (Code for media player only plays MP3's) Imports System.IO Public Class Form1 Private filesArray As ArrayList Private Playlist As WMPLib.IWMPPlaylist = Nothing Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sasa As String filesArray = New ArrayList Playlist = AxWindowsMediaPlayer1.newPlaylist( & ...Show All
SQL Server surrogate key
Hi gurus can any one tell me what is the best way to use surrogate key (except uniqueidentifier datatype) how can I use with TSQL i have a hospital information system and i have several tables. one is doctors with pk doctor_id and i have a patients with pk patient_id. when a patient is admitted he/she will have a case in the cases table identified by a unique key on patient_id , doctor_id, and admission date. however the cases table uses the pk case_id on the cases table. i have medicines_for_admitted table which stores the information for the intake of medication of an admitted patient. this table relates to cases table using the FK cases_id. all of the PKs in the table are surrogate keys ...Show All
Smart Device Development 3D Human
Hi, Could someone please help me to develop a 3D rotating human on a PDA running Pocket PC 2003 and CF 2.0 I am trying to find a way to build the application. I am currently using Visual Studio 2005 or Visual Studio.NET (I have both) with VB as the programming language. However, I am also looking for alternative ways to do it. Any help would be appreciated. Fotis nothing is easy to develop on PDAs. I appreciate that you don;t have a WM5 device, but that sounds like the only feasible platform to use. Can you not develop on the emulator This sounds complex! ...Show All
Visual C# Why a class?
A simple question arose while I was reading the syntax of a simple C# program. For instance, we know that this is a simple program : class something { static void Main() { System.Console.WriteLine("Hey sucker"); } } Why does a program start with a class I don't understand why is class before like all of that I thought a class was just like somewhat of a database. To answer you main question, Main() is in a class, because in C# all methods must by in a class, even if, as in the case of class something, the rest of the class is pointless. AS to your other statement, (" I thought a class was just like somewhat of a database."), there is a small amount of truth in there, but ...Show All
Windows Forms How to deal with file system permissions when recursing file system
I am working on a module for an app the recurses the file system. As the program recurses the "C:\" drive I get the follow exception System.UnauthorizedAccessException was caught Message="Access to the path 'C:\System Volume Information' is denied." What is the correct way to deal with this exception and continue to recurse the drive thanks, Luis Bear with me. I'm fairly new to vb. Here is what I tried Try ''Directory recursion loop here Catch ex as UnauthorizedAccessException End Try While debugging I saw the exception throw for the "System Volume Information" directory. However, instead of continuing to loop through the rest of the directories the subroutine stopped processing. An ...Show All
SharePoint Products and Technologies SHAREPOINT INSTALLATION ERROR
Hi, I tried to install sharepoint 3.0 in win 2k3 sp1 with all Req hardware.While installing the setup files are extracted properly.But when i run the configuration wizard,i encounter an error, Failed To Start database service MSSQL$Microsoft##SSEE.Repair this product by selecting it from theAdd/RemovePrograms menu. At this particular step the installation terminates.... I have tried by 1.Uninstalling all related programs and reinstalling 2. repairing the sharepoint package. 3.Even using regedit to remove the installation files of MSSQl ..... Guys plz provide me a solution coz i got fiddled with this installation.....Suggest me what i have to do . i even tried with command line util ...Show All
Visual Studio Team System Getting list of fixed bugs with each build?
After running a build I see that you get a list of work items associated with the changesets that went into the build. But what happens here is that ALL work items will appear, regardless of the 'State'. What I'd like is to see only the bugs that are listed as Resolved, or work items that are listed as Closed. This way, it is easy for the QA team to know what needs to be tested without asking the development team. Is this possible Unfortunately, this isn't possible without rewriting the Task that does the work. The Task that adds the workitem links to the build (GenCheckinNotesUpdateWorkItems) does not filter them on anything. It simply takes ALL the work items associated or resolved with each Changeset and links them to the build. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is Function Overriding The Only Way?
When going throught the XNA tutorials, I noticed that functions for drawing and updating are overriden. Is there an event alternative to that Create an event function rather than override XNA's There are some events on Game related to activation but Update and Draw are overrides. We chose this route due to confusion in the early (internal) versions of the framework when both overrides and events existed. People had trouble figuring out when to use an event or override. In the end, because of the confusion of "two ways" to do things, the slight performance advantage of the virtuals, and the fact that you will usually need to override both anyway, we chose virtuals. Feel free to file a bug ...Show All
