Chas4's Q&A profile
Visual C# Array of Objects and delegates - Parameter count mismatch
Good evening guys, I am trying to loop through my array of delegates and invoke each delegate with it parameter grabbed from another object array. I get the erro "Parameter count mismatch" when i try to execute this. I have three functions, one which adds the delegate to the array and another than runs the invoking process. private void AddThisDelegate_Click( object sender, EventArgs e) { _addDelegateProcess(_stringsLibrary.s_DelegateExtractSegment, new object [] { DataExtractionSourceCodeViewRichText.Text, "<script" , "</script>" }); } public void _addDelegateProcess( Delegate _d, object [] _o) { try { _processArray.SetValue(_d, 0); _para ...Show All
Visual Studio Express Editions Respond (trap) Windows Pop-up messages
I have been trying to find an easy (if possible) way to get status on a Windows pop-up window. For example I am using .CopyFile to copy say 30 files (individually) from on directory to another. I run out of disk space after number 5 and I get a Windows Message "Destination Drive Full". I would like to trap that and jump out of the copying routine. Right now I would get another 25 messages of Disk Full. Any help would be apprciated. Hillimonster Thanks for your help I'll give it a try. I was looking at SystemsEvents and some code with WM_xxx deisgnators. Thanks for steering me in the right direction. H ...Show All
Visual Basic A Squigley
Why is there a squigley under the Ex It's only under the first the message reads Unused Local Variable:'ex' Catch ex As Exception 'handles any errors MessageBox.Show(ex.Message, "PGS", _ MessageBoxButtons.OK, MessageBoxIcon.Information) Thanks Mac, That's sorted it, I had exit sub when I was testing and I wanted the stop the program at that point, I have now removed them and all is well. Graham ...Show All
Visual Studio loading vsip package
Is there a way to force a vsip package to load when devenv /build is called (I don't have a special project type just vcproj, so the msbuild stuff won't work) My package is loaded properly when the ide starts, but when devenv is run in command line mode the package is never loaded. I also tried to get the package loaded by introducing a simple command line switch but this doesn't work either (i mean it works perfectly in ide mode, but not in command line mode). Is there anywhere a registry entry or something like that which loads the package in command line mode Thanks in advance, Thomas The command line switch is a good idea. I don't know why it didn't work for you the first time. Here's the comment ...Show All
Visual Basic Multiple projects in one solution
I haven't been able to figure out how to place several separate projects into one solution. I create a lot of small demo projects that are related to a topic and have been opening them one by one in separate solution files. Someone suggested I combine them into one solution but I don't know how to do it. There is no option in the menu bar for adding a new project. How can I place (or add) my finished projects into a single solution Also, I would need to be able to click on each one separately in the Solutions window and start it up independently of the others. In VS solution explorer you can rightclick and add different projects (new/existing) You should be able to debug by right ...Show All
Visual Studio Team System Data Source and Error handling during a Load Test
I have questions on 2 areas for load testing, data sources and error handling. 1. Data Sources. I have a load mix that consists of multiple web tests. I had to create a separate data source (e.g. user login credentials) per web test in the mix to prevent errors from occurring during the load test. I presume the errors occured because each user thread iterates down through the data source file and there is contention with different threads trying to use the same row data.. Creating separate data source files per web test is time-consuming, as I have to update multiple data source files if I change the mix distribution or if I want to add more users. Can someone explain how a load test processes data from a data source, e.g. doe ...Show All
Windows Forms Service Events Issue - Not Firing
Hi, I have a service that has a timer that will kick off every 5 minutes. The code withing the first try method works fine and executes correctly. The problem is that the code within the second try never fires. I do not understand why. The machine also has McAfee antivirus running on it. Below is the code: Imports System.Diagnostics Imports System.Timers Imports System.ServiceProcess Imports System.Net.Mail Public Class RebootMon_Service Inherits ServiceBase Private tmr_Check As Timer Private tmr_FileCreate As Timer Protected Overrides Sub OnStart(ByVal args() As String) Try tmr_FileCreate = New Timer(300000) AddHandler tmr_FileCreate.Elapsed, AddressOf FileCreate_Check With tmr_FileCreate .AutoReset = True .Enabled ...Show All
SQL Server Excel export problem
I have a report that the users want to export to Excel. One of the problems that I am having is that some of the cells in the excel export are renamed as _402, _404, etc. I want them to come in as B22, B24, etc. Any idea why this is happening and how I can stop it Joe The Excel renderer gives unique names to cells that are the operands of formulas. Then, the formulas reference those unique names instead of the cell addresses. This is by design and there is currently no way to export live Excel formulas without using those unique names. That feature is on our list of hopeful features for a future release. If you want to get rid of formula export entirely and just have the calculated values put into the ...Show All
Visual Studio Team System How to get test status of individual test in a Team Build.....
Hi all, I'm back to this forum with my previous question related to BVT . I'm knocking on heaven's door to get test status for each of the test in a team build. From Aaron Hallberg 's blog I got a suggestions to use the BuildStore.GetTestResultsForBuild method which returns an array TestResultData . TestResultBuild data object does not contain status an individual test. That's why i've been parsing the *.trx file to get status for an individual test. But can anyone suggests me how i can get them using TFS API However, I see database entries (in TestResult table) for each of the tests in a team build. Thanks in advance...... ------------------------ Manojit Paul Onirban Orion Technologies ...Show All
Visual C++ Can I read a .xml file using C++?
Hi Folks; I'd like to read a .xml file using C++ but all the examples I've seen thus far are for .NET. Can anyone tell me if C++ has a nice way of reading these files Take a look at TinyXML. It's a very nice -- light weight -- C++ library for xml operations. http://www.grinninglizard.com/tinyxml/ ...Show All
SQL Server View 2005 AS cube through the web
Is there a way to allow users to browse a cube through the web after deployment using AS Something in capability like the AS Cube Browser Or, is Reporting Services the only way to go There are a number of 3rd party tools available to do what you'd like: Panorama: http://www.panoramasoftware.com/ Analyzer 2005: http://www.strategycompanion.com/Main.aspx config=homepage ProClarity (which I guess is no longer 3rd party, but part of MS): http://www.proclarity.com/ You can also create your own web pages with ADOMD .NET. Documentation here: http://msdn2.microsoft.com/en-us/library/ms345078.aspx , Sample application available for download here: http://www.microsoft.com/downloads/details.aspx Fami ...Show All
Visual C++ CAtlHttpClient Navigate Failing in SOAP Call
Hello, I'm running VC 8 and building an MFC application that is statically linked to MFC. I've created a SOAP proxy class using DISCO.EXE and SPROXY.EXE. When using the generated class to access the remote Web Service functions, the function CAtlHttpClient::Navigate function is called. This function is failing repeatedly on the call to CAtlHttpClient::ParseStatusLine due to an erroneous report of ERANGE after calling the strtol() CRT function. I've examined the returned HTTP packet data and the HTTP status code is "200", which is small enough to fit into a long. When I actually step into the CRT library function for strtol, the error code is never being set (the conversion is successful). However, in the CA ...Show All
.NET Development How to prevent code refactoring?
Hi, I want to prevent code refactoring. To explain, I do not want to let any one to use tools like .NET Reflector and see the code inside my .NET dll. Is this possible If so , by what means we can achieve this. Thanks, Mani It's not called refactoring. Refactoring is done on the source code while you are working on it. It's reverse engineering you mean, and it's only possibly to avoid by obfuscation. Unfortunately that is not available to you if you only have the Express edition (a community edition of the Dofuscator is provided in all higher editions AFAIK), most obfuscation software is very expensive, unless you find something free. ...Show All
Architecture Storing Session State
We have been using SQL Server to store session state for a while. Now we are growing and looking for more scalable alternatives. It looks like there are three products on the market: ScaleOut, Ncache and StateMirror. Just wondering if anyone had any experience with any of these beasts. quite productive discussion .. guys pls continue... i will join you soon http://DotNetWithMe.blogspot.com Vikas ...Show All
Visual Studio 2008 (Pre-release) Using LINQ to SQL-enable legacy database
Hi, I am new to LINQ and I just wanted a quick check with you guys on a question that I have but couldn't find answer to it yet. I have a database and I want to make it support SQL. Currently, it has a query language which is SQL-like, but for the future I want to use LINQ or SQL to access it. Is this possible Regards At this point LINQ to SQL only works with SQL Server/SQL Express databases. There will be a provider model with LINQ to enable people to be able to create mapping structures to other data stores using the LINQ language features. Without knowing what flavor of database you are using it is impossible to know whether anyone is planning on implementing a provider for it at this point. Jim Wooley http://devauthority.com ...Show All
