Sergio Ordine's Q&A profile
Visual C# N-ary Trees
I’ve got a hierarchical set of data that seems to fit an N-ary tree structure, I can’t seem to find any good C# resources on the best way to parse/store/manipulate this data. The source data (SQL table) consists of a node id, node name and node parent which is null (root node) or references another node id. Any ideas General data structure for tree should look like this: class TreeNode { TreeNode parent; List<TreeNode> children; Data data; // any data in thee node ... // manupulation functions which can include childs collection // exposed to client } class Tree { TreeNode root; ... // tree manipulation functions like add, remove, find enumerate etc. } Since N-ary tre ...Show All
SQL Server Maxis 3G connection
I cannot connect to SQL Server 2000(Remote Server) through Maxis 3G connection. I'm using Windows Application to connect to SQL Server 2000. dim strsqlcon as string = "Server=000.000.000.000;databse=dbname;usr=sa;pws=1234" dim sqlcon as sqlconnection = new sqlconnection(strsqlcon) sqlcon.open() "It's Error : Sql not exist or access denied." But I can connect to SQL Server 2000(Remote Server) through Local Area Connection. Have any solution Thank you. I can ping the server through 3G Connection. Result : "Reply from xxx.xxx.xxx.xxx: bytes=32 time=459ms++ TTL=115" ...Show All
Windows Forms Get Response From Web Browser
hi everybody, i have a web browser in my form, and im hitting a url with some data after which i will be getting a response from the URL, im using document complete event to trap the response, well everything goes fine till the event fires, but im not able to receive the response and store it in a variable, i tried it in 2005 with this wBrowser.DocumentText.ToString()...., works fine but i need the equivalent for this in 2003 Helps Please By default, there's no a WebBrowser control on the toolbox in VS 2003, but you can import a COM component called "Microsoft Web Browser",it does have a DocumentComplete event for you to handle, private void axWebBrowser1_DocumentComplet ...Show All
Visual C++ Porting from 2005 Express Edition Beta 2 to Professional Edition
I am using Visual C++ 2005 Express Edition Beta 2. What should I do to port my code to Visual C++ 2005 Professional Edition Just open your project with VC2005 and the project wizard should do the conversion for you. If you face specific issues, please post. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System MS Project and TFS questions
Here are some more issues that my client has encountered while using MS Project with TFS. Are there any work arounds 1. TFS seems unable to deal with special characters such as brackets ' [' e.g. Smith, John [ABC Company]. When synchronizing Project after making changes on TFS, it doesn seem to be ok with special characters like commas and parentheses ',' and '(' e.g. Smith, John (JohnSmith) 2. When changes are made to Remaining Work and completed work, how does MS Project interpret those updates It seems that the finish dates are dependent on the values entered in TFS. There is no easy way to 'approve' the changes before the update is done ( like with PWA). Thanks, Kathir. We have been able to get the download from Micr ...Show All
.NET Development Bug In StackTrace (System.Diagnostics)?
I wrote a class with overloaded operations '==' and '!=' and also methods 'Equals' and 'GetHashCode'(or GetTypeCode'). I wrote a tracer class for myself to trace and debug my programs by using 'StackTrace' and 'StackFrame'. It seems that 'StackTrace' can not access the trace history of CLR when passing by a static overloaded operator (like '==' for me). Because there have happened an exception; something that was like : "There is not enough trace information..." or like that. I am not wrong, are I Please hack through. Vaery Thanks ...Show All
Windows Forms Removing broken uninstaller/installer
How can I remove an uninstaller that is broken. I cant repair it, it gives me fatal error and a script cannot be run. I exluded the script but cant uninstall, repair or install it. How can I clean all of it out and install again If nothing else helps find msizap.exe utility from MSI SDK. It allows deleting project information from Windows Installer database. Though all files, registry settings etc... will remain you should be able to run installer again. ...Show All
SQL Server Identifying a table update / insert / delete
How to find out that a table has changed. For example if a table has 50K rows, and if any update, insert, or delete was made it should be captured without using any trigger. Is it possible to get such information from any of the system table or DMVs What you are looking for is a way to read out the transaction log. Some third party software can do this, such like "Log Explor' of Lumigent. ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Hi to all! At me a problem with installation Microsoft Office Document Image Writer under Windows 64-edition SP1 with Office 2003 Pro full instalation. On a step 3 at me in the list is not present Document image printer writer port. Somebody faced a similar problem ...Show All
SQL Server Change Partition Scheme of an Existing Table?
Hello Everyon, Is it possible to change the Partition Scheme currently being used by an existing table to a newly created one Thanks, Joseph ...Show All
Visual Studio 2008 (Pre-release) BasicHttpBinding, TransportWithMessageCredential & Windows Authentication
I am trying to setup a service and client using the BasicHttpBinding and Windows Integrated Authentication on IIS. I understand the importance of CIAA, but I am not considering confidentiality or integrity for this scenario. I simply would like to authenticate and authorize clients on the service as follows: Host the service on IIS 6.0 using basicHttpBinding without HTTPS Require that all clients are authenticated using Windows (NTLM or Kerberos) Authorize calls on the service using PrincipalPermissionAttribute. To this end, I have applied the following configuration to the calculator SDK sample: Service: < system.serviceModel > < services > < service behaviorConfiguration = " CalculatorServic ...Show All
Visual C++ What is this warrning for?
JoyStick.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.DirectInput\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.DirectInput.dll', No symbols loaded.Managed Debugging Assistant 'LoaderLock' has detected a problem in 'c:\Documents and Settings\Admin\My Documents\Visual Studio 2005\Projects\JoyStick\debug\JoyStick.exe'. Additional Information: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. look at this fix: FIX: Error message when you use ...Show All
Visual Studio 2008 (Pre-release) Relative bindings for nested UserControls
Hi all, Apologies if this is a stupid question, but I've trawled the forums and net for an answer, and just can't find what I'm looking for. I've created a XAML UserControl in another library that has binding defined for its element, however the DataContext for that control is specified in parent XAML form that is hosting the control. I'm using a XMLDataProvider as a test harness and I'm specifying the DataContext in the hosting XAML page (lets call this Form1) and then I'm creating an instance of the UserControl in Form1, then wanting to shift the DataContext to a contained element in the binding XPath. XML Data: < Items > < Item > < Number > 10001A </ Number > < BillTo > < Contac ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error question
I am new to this as of today. I am posting my concern because I nomally work on mac's. I have design software on windows xp and all of the sudden Dreamweaver wont work. I get this " Microsoft Visual C++ Runtime Library error ". I don't understand why! I have seen this error message all over the internet but I can't find a fix for dreamweaver. If you could help me I would really apprieciate it, thanks, Julie aka design girl I'm having the exact same problem with my newly installed Dreamweaver. I opened the program and used it once without any problem, but the second time it gave me the "Visual CC++ Runtime error" message and refused to open. I've reinstalled it over and ov ...Show All
.NET Development Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
Hello, Is possible to "change" the sub created by a button, for another sub I mean... Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click Public Sub ConnectSocket() ... Changing the first, for the second, what is the handle And how can I do it Because I need to make an action that now is being executed by pushing a button in a form, and I want it working calling a sub that does the action.. Now, i've changed the definition, and i get the error Cannot block a call on this socket while an earlier asynchronous call is in progress. but before in the: Clientsocket.Send(bytes) it shows me an error: A first chance exception ...Show All
