Yilmaz Ay's Q&A profile
Visual C# C# & COM Interoperability
I'm beginer in COM, but write some projects in C#. I have a Windows Service, COM object written on C# and 2 or more VBScripts to communicate with COM object. Situation: En example: VBScript 1 make some operation with COM-object but if I start new VBScript 2 - it create it's own example of COM class and make operations with it. Question: How can I use both VBScripts with the same instance of COM-class The data from COM class (specifie ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItem ...Show All
Visual Studio Team System Distributed System template generates VB code
Hi Using VS 2005 Team Suite (release candidate version), I am able to create a new project using the Distributed System template. I can access the designer and manipulate the shapes etc.. My problem is when I use Implement All Applications to generate stub code for the solution, the code generated is always VB, even though my dev environment is configured for C#. Any ideas on how to get the designer to generate C# code Thanks, Carlo ...Show All
Windows Forms Sticky question
What's the best technique used to see all the events and the order in which they execute during the life of a winform carrying labels, textboxes, checkboxes, and dropdownlists, etc Thanks. Hi, Are you suggesting that Validating and Validated events never fire ...Show All
SQL Server Is there a way to bound a search within specific TOC items?
Is there a way to bound a search that I'm missing Can't figure out why major types don't appear in the search tab's drop down for content types (e.g "Full Text Search", "Tools and Utilities Reference", SQL Server Programming Reference"). Seems anything appearing in the TOC should be a candidate for bounding a search. Also, anyway to perform subsequent search that is bounded to a prior search result. No, you're ...Show All
Visual Studio Tools for Office How to create new workseet from VSTO Excel template?
Hi All, I created an VSTO Excel template with a single worksheet. I wanted this to be a worksheet template, so I've published it in OFFICE11\XLSTART folder. Now, I can create multiple workseets from this template but only the first one appears to execute code in worksheet class's events handlers like Sheet1_Startup... My code looks like this: public partial class Sheet1 { private void Sheet1_Startup( object ...Show All
Smart Device Development How to Soft Reset a Device programatically
Dear all, Is there any command in VB to Soft Reset the device Please give an advice. Thank you! Michael Koster wrote: Hi You need do add an Imports statement at the very beginning of the file. Add the following line at the very beginning of your .vb file: Imports System.Runtime.InteropServices Thanks! Michael Great! It works like a miracle. Thanks again Michael. ...Show All
Visual Studio Create a diagram by using custom code
Hi all, I am trying to create a diagram by using some custom code but facing some problems. Not sure if I am on the right way. I am first trying to create a "store" (Microsoft.VisualStudio.Modeling.Store). after that I am trying to create a new diagram ans suply it the new (empty) store by using code that looks like this: ServiceDescriptionDiagram diagram = ServiceDescriptionDiagram.CreateServi ...Show All
Windows Forms Comparing strings
String comparison Is there any way so that all the below conditions give me true results. String val = “Hello” Now comparing val it with the following code. 1“Hello “ //Note white space at the end o ...Show All
.NET Development Help with updating a specific record in database
I am trying to pass the changes made by a user back to an sql database on clicking a button. The update should be applied to the specific record that the user is currently viewing. My problem is that the updates are getting applied to the first record in the database. The code is below: Public Class frmPart 'Declare global variables and objects... Dim objConnection As New SqlConnection( "Server=YUK1PCG124;Database=PSW;Integ ...Show All
SQL Server Using SSIS 2005 to strip out bad rows in Excel and then insert detailed rows into OLE DB Data Source
Environment: Running this code on my PC via VS 2005 .Net version 2.0.50727 on the server (shown in IIS) Code is in ASP.NET 2.0 and is a VB.NET Console application SSIS 2005 Problem & Info: I am bringing in an Excel file. I need to first strip out any non-detail rows such as the breaks you see with totals and what not. I should in the end have only detail rows ...Show All
Visual C++ Fairly simple school project, multiple errors
I'm working on a toy problem for school. It involves a binary heap, a few classes that inherit from a base class and some various helper classes. I'm getting about 60 errors but none are descriptive enough for me to figure out what is wrong. It compiled fine before I added some of the more recent classes I wrote, but now it's screwed. I don't want to post all the code because it's so much, but here are the errors. I ...Show All
SQL Server how can i create replication
hi, i am new to sqlserver i want to know how can i create replication Double click on the job in the monitor and that should give you more information. There should definitely be more information regarding the failure. If this is the first time that the job is run, please see what the job is running as, what credentials is it using to connect to the Publisher, Distributor and Subscriber ...Show All
Visual C++ Question about CString::find()
I am currently using CString::find() to find keywords in a .ini file so as to extract the line of info after the keyword with getline(). However i am facing a weird problem. This is the format of my .ini file: alpha C:\\workfiles\\alphaLoop beta C:\\workfiles\\betaLoop delta C:\\workfiles\\deltaLoop This is the code in question: ifstream iFile; CString mArr; char temp[100]; int curPos; iFile.open(abc.in ...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
