Darryl Thompson's Q&A profile
.NET Development Converting XML to string whilst including the schema.
Hi, How do I convert a DataSet to an XML string INCLUDING the schema information and store it into a string variable in memory I can't use the DataSet GetXml() function (no schema) and instead think I have to use the DataSet WriteXml() function, ensuring that the XmlWriteMode value passed in is set to 'WriteSchema'. However, I want a string variable in memory populated with the value, NOT a file. I am not very good with System.IO. I have n ...Show All
Visual C++ Why doesn't this code work?
Why doesn't this code work Using C++ .NET 2005: // MSS.cpp : main project file. #include "stdafx.h" #include "stdio.h" #include "iostream" using namespace System; int main( array <System::String ^> ^args){ struct tnode { int count; System::String ^ word; } ; tnode smth; smth.word= "Sometext" ; Console::WriteLine( smth.word ); } As I said, you can use gcroot if you must have an unmanaged stru ...Show All
Windows Forms Please help me with this error message
I just started programming and was relieved when I made my first program. A radioplayer based on MS WMP9. But now when I try to run a test with VS.NET 2002 I get this error: An unhandled exception of type 'InvalidActiveXStateException' occurred in axinte ...Show All
.NET Development Using the .Net Framework V1.1.4322 within VB6
I would appreciate any help on using the .Net Framework V1.1.4322 within my VB6 environment. I have added a reference to system.tlb and registered system.dll. My main interest right now is in using the functionality provided by the 'Marshal.' commands such as : path = Marshal.PtrToStringAuto(p_path) An 'Import' statement such as: Imports System is rejected with the "sub or function not defined" error message ...Show All
Windows Forms Display form in multiple screens
Hello, I have a system with two monitors connected, using two screens. I need set in my winforms application in wich screen my form is displayed. How I can do this Thanks Josep M Girona Take a look at the screen info available in the Screen class (from System.Windows.Forms). One example of this that ONLY works if your monitors are in a horizontal line next to each other is: int ...Show All
Windows Forms buttons in a tablelayoutpanel in a inherited form
Hi there I cant work out if this is a bug, or I'm doing something wrong. I have a base form with some buttons in a tablelayoutpanel and when I inherit the form, all the buttons are locked. I've made sure both the buttons and the tablelayoutpanel access modifiers are protected, but the IDE still won't let me edit the properties of any of the inherited buttons. Interestingly, if I put a button on the form directly (not in a tablelayoutp ...Show All
Visual Basic VS-2005-Prof. Debug breakpoint not working
Hi - I just installed Visual Studio 2005 Professional Edition. I was previously using VB Express Edition. I see that the program execution does not halt at the specified breakpoints. Also, when I "Start Debugging {F5}" the application ignores all errors and executes the last good build. I have looked at the project properties debug settings and did not find anything I can change to fix this problem. Could somone help out Thanks i ...Show All
SQL Server Custom Log Provider - Notification Services
Hi... I am trying to do custom log provider that will post events to Notification Services...The idea is that if I could post the "SSIS events" to Notification Services, with a Custom Delivery Channel in NS, I would be able to do NS Subscriptions with real time monitoring of SSIS packages.. I have tried to use the sample custom log provider code in MSDN. The problem is after I added the custom log provider dll to the C:\Program F ...Show All
SQL Server merge agent error
Hi We are using HTTPS merge replication. One of my subscribers is getting this error: Error messages: The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the Publisher for changes not yet sent to the Subscriber. You must reinitialize the subscription (without upload). (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199402) This is a bit surprising - it has been w ...Show All
Visual C++ My College's Viusal C++ Exam June 1, 2006
Dear C++ Experts, I've just examined in Visual Structured C++ today. It was really good exam and so long. I answered most of it and it’s nice one and helpful for many to have a look. I’d be so glad if anyone interested in solving this exam (which I had to snapshot it with my mobile phone camera, as I don’t have scanner and OCR programs couldn’t convert it to text well. So if anyone want it, he have to rewrite the questions and solve t ...Show All
SQL Server Users Cannot Connect to SQL Server 2000 SP4 After Applying Hotfix (build 8.00.2148)
Users are reporting that they cannot connect to SQL Server using ODBC and Windows Authentication after I applied a SQL Server 2000 SP4 hotfix. The client-side error is: Connection failed: SQLState: '01000' SQL Server Error: 10061 [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen(Connect()). Connection failed: SQLState: '08001' SQL Server Error: 17 [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or ...Show All
Visual Basic Edit and Continue on VB6 upgraded project
I cannot get edit and continue to work on my projects upgraded from Vb6, and some upgraded from vb6 to vs2003 and then to vs2005 also I think. Evidence: It says "Cannot currently modify this text in the editor. It is read-only" If I have a test project natively created in vs2005 and that calls into my class lib projects then edit and contionue will work on the new project but not on the upgraded/converted class lib projects. ...Show All
Visual Basic used to be cmdShowForm and cmdHideForm what is it now?
I am using the VB 2005 Beta program and I know the routines for VB6. In VB6 a command button could be put on a form and then code written/added to get from one form to another; the old code was cmdShowForm and to to hide the form: cmdHideForm frmSecondForm.Show et cetera but VB 2005 is different; can you advise me as to what the new code for VB 2005 is I think your problem is that as forms are treated as classe ...Show All
Software Development for Windows Vista Require WF Webcasts Power Point Presentations
Hi guys I urgently need the Power Point Poresentaion (ppt ) files for the following web casts on WF. Please provide links for download. Workflow Authoring Styles – Mixing XAML and Code Thursday, January 26, 2006 10:00 A.M.–11:00 A.M. Pacific Time Presenter: Bob Schmidt Windows Workflow Foundation offers developers several alternative ways of defining their workflows. In this talk, we will explore each of the ...Show All
Visual Studio Express Editions Learning resources videos won't download
I am having trouble downloading the absolute beginner videos from the VS 2005 Express web pages. They were fine two days ago. I've tried the C# ones and the web designer ones and neither works. When I click on the links the download either hangs or loads 29% (always 29%) of the file then hangs. When, alternatively, I right click the link and try to "save target as" exactly the same happens (0 or 29% of the download). I'm specificall ...Show All
