lingga's Q&A profile
.NET Development Warning when building Web Service..Help!
I am creating a web service and I am linking to some libraries that are not written in managed code. I can build the service just fine, but I get lots of warnings like the following. msvcrt.lib(secchk.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators atlsd.lib(Externs.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators atlsd.lib(atltrace.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators atlsd.lib(atlbase.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators DkWeb.lib(SalesOrderCollection.obj) : warning LNK4210: .CRT se ...Show All
Visual Basic "Subscript Out of Range (Error 9)" Error
Hello, I'm getting information from a text file using this piece of code: Public Sub test() Dim fs As New FileSystemObject Dim stream As TextStream Dim line As String Dim rowIndex As Integer Dim tabString() As String Set stream = fs.OpenTextFile("c:\Export.txt") rowIndex = 1 While Not stream.AtEndOfStream tabString = Split(txtstream.ReadLine, ";") Sheet1.Cells(rowIndex, 1) = tabString(0) ...Show All
Visual Studio Express Editions Export Datagrid
I want to export a datagrid to exel, any ideas how to do it, I get it to do it in aps.net, but don't know how to do it in vb.net Article: How to automate Excel from VB.net http://support.microsoft.com/kb/301982/ My thoughts would be to iterate through the rows and columns collection - either through the datasource or the datagridview. Using something like the following - there are numerous examples of iterating through grids and datatables to retrieve the values. All you would need to do is get the cell value and write it to a cell on the excel sheet using the Excel document model. For Each dr As DataGridViewRow In Me.DataGridView1.Rows For Each c As DataGridViewCell In dr.Cells Next ...Show All
Visual Studio Team System Is using workspace.Get() right?
I write a program to get the latest files from VSTS by Workspace.Get () In SDK, they tell me ' Workspace.Get () method can Requests that the server update the current workspace with the latest version of all mapped items. ' The code is: using System.Collections.Generic; using System.ServiceProcess; using System.Security.AccessControl; using System.Text; using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.VersionControl.Common; using Microsoft.TeamFoundation.VersionControl.Client; using System.Net; using System.Collections; namespace VCClient { class Program { static String tfsName = "csit-vstsserver"; &nb ...Show All
Visual FoxPro Debugging COM Server...
Hi, I have a problem triggering a breakpoint in my VFP9 generated COM Server. I have built a COM server class having several different public methods. And I have built a client app in C++ which over automation instantiate an object of my server class and calls one of the methods. I'm using the debugger in Visual Studio 2005 to debug my C++ client application to the point where my automation method is called over COM. What I like now, is the ability to debug the VFP com server method as well. I would like a breakpoint to trigger in the method, so that I can watch variables etc. and in general debug my VFP code. How can I start Visual Studio and/or VFP so that I can trigger breakpoints in my VFP code In general I had envisi ...Show All
SQL Server Excel pivot table
Hi, I have several pivot tables in Excel that access data to a SQL 2000. We install SQL 2005, we change the ODBC from the 2000 server to the 2005 server. Now when we try to run the pivot tables I've got the following message: "User 'public' does not have permission to run DBCC TRACEON" Any idea on how to fix this problem Thanks, Arty Could you also look in Profiler and see what are the differences between the contexts that are executing the DBCC TRACEON command on SQL Server 2000 and SQL Server 2005. Make sure to select 'Show all columns' for the trace, so that you can see all information available for the DBCC event. I'm interested in columns like NTUserName, LoginName, DBUserName, ...Show All
Smart Device Development Any parameters does quickapp.exe have?
Hey, I tried to get the quicklist in my program by quickapp.exe,and then select a certain option. When I execute quickapp.exe with the API of ShellExceuteEx, it only can got the quicklist. So is there any parameters exits to make it go further I mean I can select a certain option in quicklist If not, how can I do that Thanks! Alex Feinman wrote: You can try finding its window and then finding a listview control among its children and sending LVM_SETITEMSTATE message to select it That seems a good idea.I have tried to select that options by simulating keypressing with keybd_event(),though it seems work well,I think your is better! Thank you! ...Show All
Visual Studio Team System DeleteProject using CSS causing problem...
Hello all, I have noticed that the DeleteProject API in the CSS deletes only project name information from TFS, but does not delete the related artifacts from TFS such as WI, reports, sharePoint sites,.. Please suggest a way to delete the team project... (without using CLI / Web service) How can I delete the other artifacts (in the database) for the projects I have delted in this manner Thanks in advance One option is to use TeamProjectDeleter, this is available in Microsoft.TeamFoundation.Client namespace in Microsoft.TeamFoundation assembly TeamProjectDeleter deleter = new TeamProjectDeleter(teamFoundationServerInstance, projectName, /*bool*/ forceDelete); deleter.Delete(); ...Show All
Windows Forms Error when adding a user control to a form
I've created a user control that consists of a text box and a list box. The listbox is populated by a data table that's created in the MDI parent and copied to each form as needed. In the load event of the user control, I set the datasource of the listbox to the tables defaultview, then add the sort, display and value properties. When I try to add the control to a form, I get a 'Failed to create component' white screen of death, with the message that the column name for the sort property can't be found. If I comment out the load code, I can add the control to the form. I can then uncomment the code and run the app, and the user control does exactly what it's supposed to do. First, why is the designer finding what would be a runtime e ...Show All
Windows Forms SpellCheck in System.Windows.Controls.RichTextBox - Adding words or custom dictionaries
Where does this post go I don't know. It could probably go in PWF, .Net, or many other posts. I decided to put it here in hopes that there might be a way to solve the issue in a lower language and use the solution in my C# code. Issue: I need to have medical and/or legal words added to the spellchecker of the RichTextBox. I have read many posts and have not found a solution. I have found ways to get the errors (RichTextBox.getSpellingError()) and then check my words (medical/legal) to see if the word is actually an error. I also know how to add my words to the context menu. What I can’t do is have the correct words show up. When I type ‘ny’ in Word, the spellchecker gives me nay, my, knee, and others as options. I am g ...Show All
Visual C# How to extend existing enum (or what to do when I can't cast?)
Hi, I'm an experienced C/C++/Delphi programmer but new to C#. I'm building a panel control that supports gradient fill background color. I want to expose a property of type LinearGradientMode but additionally, I would like to include an additional "None" value. I created my own SKLinearGradientMode enum including the original values plus "None" but I obviously can't pass that to LinearGradientBrush and I can't typecast it a LinearGradientMode. Is there a way to achieve this in C# without resorting to a switch/if statement to map from one to the other Hi, Scott Yes, you can easily define a enumeration extending existing enum. When you extend the LinearGradientMode enum (which has ...Show All
Visual Studio Express Editions code not working for a negative number
hello i have a text boc were i can type in plus 5 to -5 in reality. when i type in anyting when it beigns with - so for NWgativ the app craps out; the codei have for postivie is as follows, and it works great. I want to toype in a number , eg 4.7 and the black box i talk to to see 47, so negative -3.2 the black box shouls see -32, many thanks in advance, ian Private Sub TextBox2_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged Try 'When ActEasyIF is selected by the radio button, 'the WriteDeviceRandom2 method is executed. iReturnCode = AxActEasyIF1.WriteDeviceRandom2( "d1" , 1, Convert.ToDecimal(Format( "{-#.F1}" , TextBox ...Show All
Software Development for Windows Vista The UAC Nightmare
I'm beginning to reach the conclusion that the current implementation of the UAC in Vista is, IMO, a nightmare that creates more problems than it solves. If Microsoft wants developers - and users - to embrace the UAC (instead of just turning it off altogether) then it better come forward with a LOT MORE information and support than it is currently providing! If it doesn't, I will begin to suspect Microsoft only added the UAC so it can tell Windows users 'well, we added the option to secure Windows - you're the ones turning it off' and therefore wash its corporate hands. I would really hate to see this happening. To name just a few of the problems the UAC brings to us developers: 1 - Applications that require Admin privileges are bloc ...Show All
SQL Server SSIS doesnt import the data as it is present in excel to sql server 2005
I need to read the data present in my excel workbook row by row from top to the bottom in the same order it arrives, but a problem arises when i run my package . The data is not imported in the same order present in the excel workbook.Things get further complex as a result of this because the rows are not unique . following is the sample of data which i need to import into sql server 2005 in the same order. But it doesnt happen all the time. Any suggestions as to what can be done. Thanks in advance Defect Injection Rates (Defects Injected Per Hour) Planning Requirements System Test Plan REQ Inspection High-Level Design Integration Test Plan HLD Inspection ...Show All
Visual C# How to check 2 reference objects for equality?
For examples sakes i got 2 Table instances, that are created by the same routine thus i know for a fact they are exactly the same. However when using equality checks they always return false indicating the table instances are not the same. I am using the following static methods 'object.equals' and 'object.referenceequals', i also tried the table instance's 'equals' method. How can i implement a conditional check to see if 2 instances of the same type are the same Thanks for the prompt replies. I may not have worded my question clearly so i will try again using my exact situation. I have a method that creates alot of controls (textboxes, checkboxes, radios, table cells, table rows, tables etc) that places ...Show All
