pmcdermott's Q&A profile
Visual Studio 2008 (Pre-release) Multiple Service (class) Hosts - How to configure?
I would really appreciate if someone can educate/enlight me on following issues: 1. We have a business component with more than 20 different interfaces and corresponding classes which implements these interfaces. We would like to expose all of these classes in an NT service with tcp/ip for LAN clients and may be as an http endpoint in the future for intranet clients. How do I configure my service to expose these interfaces Do I have to create 20 ...Show All
SQL Server Creating a View with detailed informations
Hello, I have a code for creating view in T-SQL. I want to ask you guys, i want to make this result set should grouped by DepoAdi column and StokKodu (this is an alias sure you can get it from code). Did i make it on group by line My second problem is i want to add 2 columns to this query. This 2 column will calculate some values with SUM function and - operator. At CRM.Depolar.DepoBilgileri table i have a column named Miktar (this one store ...Show All
Visual C++ __onexitbegin invalid during static initialization
I've got another tricky static initialization problem. I'm porting a large MFC app from Visual Studio 2002 to VS 2005 RC1. The app is crashing at runtime when we attempt to statically construct an STL container object. The crash happens when the runtime asserts on __CrtIsValidHeapPointer. Stepping through the assembly, I see that the object is constructed OK (constructor just sets an implementation pointer to NULL), and the runtime ...Show All
Microsoft ISV Community Center Forums so lost and buried in help printouts
Hi- I don't know if this is the right place to post this very beginner macros question for Word for XP but I desperately need to get this done so here it goes... I created a form in Word 2003 and I created a command button that I call my help button. I also created a very basic macro which I need to run when you click on the help button to explan a specific part of the form. HOWEVER, I get the macro to run when I hit run thru the tools/mac ...Show All
Windows Forms Wrapping MS P2P sdk
Hey all, I'm writing a wrapper for XP's peer2peer sdk so that it can run under managed code, and I can use it as a library in some apps I'm working on. I'm not a huge C guru (which is what the SDK is written in) but&nb ...Show All
Visual Basic Random Generate Quiz
I had buil a e-learning website. At the Quiz part, i want have a random generate quiz . May i know that what can i do Quiz store at XML or using database How can i generate the quiz randomly Can anyone gave me some source code of these Thanks. Assign each question an Integer ID and then use a function to generate a random number The following thread details a random number generator... http://forums.microsoft.com/MSDN/ShowP ...Show All
Windows Forms Multi-Lingual Forms
I am developing an application that needs to support 2 languages (English and something else). All labels on a form need to display the proper text based off the logged in user's language code. The way I am thinking of doing this is as follows: ...Show All
Windows Forms identifying with API
Hello, Im trying to identify textboxes with API on a form, but there are multiple textboxes and they each have the same caption and class name, how can I send a message to a specific textbox I moved this to the Windows Forms forum as it is specific to Windows Forms and not C#. Michael Taylor - 2/15/06 ...Show All
Windows Forms How to prevent form closing when datagridview errors exist?
Hi -- I've got a form with a datagridview on it. The datagridview allows users to add new rows. When the user adds a new row but doesn't commit it (by moving to a different row) and then clicks the "X" button on the form, I only want the form to close if there's no errors on the newly-entered row. If there are any errors, I don't want the form to close. How do I accomplish this I know I can trap errors in the RowValidating and DataErr ...Show All
SQL Server Making outbound HTTP requests from SQLCLR
Hi, I have written a C# console application that adds a message to a SB queue and a C# stored procedure that reads the message from the queue. I have had so many problems that I'm beginning to doubt the usefulness of this, but that is probably just my frustration speaking. I am stuck on putting an XML message into the queue and reading the XML in the stored procedure. The console app has a simple object called Message. This class has ...Show All
Visual Basic Delay or Pause
Hi, I have Kiosk application which starts the browser inside the Kiosk. But due to wireless, I have to pause the start of the application so that wireless should first kicks in and then the applications starts.. My VB program conatains a browser control. Here is sample code Me .webBrowser.Focus() Me.webBroser.Navigage("LoadingPage.htm") System.Threading.Thread.Sleep(20000) Me .webBrowser.Navigate(URL) Where URL is on the s ...Show All
.NET Development dataset + xml
I have a XML file and a XSD to validate the xmlinformation. I am reading the xmlfile to a xmldatadocument and use the Dataset to change som data my problem is after i have change the data in the xmldataducument i will validate against xsdfile. I have try to write the dataset to a xmlfile and then validate it against the xsd but I lose the root information that tell what xsd to validate from(schemaLocation namespace) i have try to set the rootatt ...Show All
SQL Server DSO in SQL2005
Anybody can share the way to administer AS2005 using DSO AMO (Analysis Management Objects) is the object model for administering AS2005 and it's highly recommended to be used instead of DSO 8.5 shipped in AS2005 (DSO 8.5 is DSO 8.0 with SP4 fixes and additions to support AS2005 connectivity). DSO 8.5 is for administering databases who are: 1. migrated from AS2000 to AS2005 and 2. are not edited/maintained with ...Show All
.NET Development Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @Stre ...Show All
Visual Studio Express Editions Slow screen redraw
I am in inexperienced programmer who has an application that displays many (50-60) controls on a form. The application is a production planning system, that requires many controls displayed on screen (1 for each job qued on individual machines) Whenever the form is re-draw, it is painfully slow, I have set the doublebuffer ControlStyles etc, but are unable to fix the issue. This issue is running on a P4 2.8GHZ / 500MB PC. Can anyone ...Show All
