Search Results

Search found 29 results on 2 pages for 'chloeradshaw'.

Page 1/2 | 1 2  | Next Page >

  • NotePad++ - Why Does Finding ^ Not Work

    - by ChloeRadshaw
    I am trying to move away from TextPad and I just cant get reg expressions like ^ and $ to be replaced. I have definitely ticked the regular expression box What am I doing wrong EDIT: I am trying to find the start of a new line - In textpad it is find '^' and ensure reg ex is enabled. With notepad++ it does not do that. It just says not found

    Read the article

  • Adding references from VBA Causing Password Prompt To Appear

    - by ChloeRadshaw
    EDIT: I WILL GIVE A 300 rep BOUNTY FOR THIS:-) I have run out of ideas. I have a very simple macro that adds references. It looks like I have the same problem as this http://www.eggheadcafe.com/software/aspnet/35651964/excel-prompts-for-vba-pas.aspx Sub testAddSolver() Call AddSolver() End Sub Sub AddSolver() Dim strSolverPath As String Dim wbSolver As Workbook Dim objRef As Object Dim oWB As Object ' NOT as workbook Dim ad As AddIn On Error GoTo errH Set oWB = ActiveWorkbook With Application.AddIns("Solver Add-In") strSolverPath = .FullName On Error Resume Next Set wbSolver = Workbooks(.name) On Error GoTo errH If wbSolver Is Nothing Then .Installed = True End If End With On Error Resume Next Set objRef = oWB.VBProject.References("SOLVER") On Error GoTo errH If objRef Is Nothing Then Call MsgBox(strSolverPath) oWB.VBProject.References.AddFromFile strSolverPath End If Call MsgBox("Compleetd") Exit Sub errH: MsgBox Err.Description, , "Error in AddSolver" End Sub This adding references works fine until I put a password around the VBA at which point it prompts me for a password. I have tried absolutely everything

    Read the article

  • Iterating Collection In Two Threads

    - by ChloeRadshaw
    This question relates both to C# and Java If you have a collection which is not modified and that collection reference is shared between two threads what happens when you iterate on each thread?? ThreadA: Collection.iterator ThreadA: Collection.moveNext ThreadB: Collection.iterator ThreadB: Collection.moveNext Will threadB see the first element? Is the iterator always reset when it is requested? What happens if this is interleaved so movenext and item is interleaved? Is there a danger that you dont process all elements??

    Read the article

  • Does anyone know what happens if you do not implement iequtalable when using generic collections?

    - by ChloeRadshaw
    I asked a question here : http://stackoverflow.com/questions/2476793/when-to-use-iequatable-and-why about using Iequatable. From the msdn: The IEquatable(T) interface is used by generic collection objects such as Dictionary(TKey, TValue), List(T), and LinkedList(T) when testing for equality in such methods as Contains, IndexOf, LastIndexOf, and Remove. If you dont implement that interface what exactly happens?? Exception / default object equals / ref equals?

    Read the article

  • Contravariant Delegates Value Types

    - by ChloeRadshaw
    Can anyone shed light on why contravariance does not work with C# value types? The below does not work private delegate Asset AssetDelegate(int m); internal string DoMe() { AssetDelegate aw = new AssetDelegate(DelegateMethod); aw(32); return "Class1"; } private static House DelegateMethod(object m) { return null; }

    Read the article

  • Noptepad++ Gripes Around File Reloading And Window Numbers

    - by ChloeRadshaw
    I ve started using Notepad++ moving over from TextPad I have two main gripes: 1) Can you actually see all the files open in your Notepad++ in a document explorer view like you could with TextPad? 2) Can you configure Notepad++ to only update files open if that file is the active document? Often I have ten log files open and I want to see when they get modified when I click on them 3) Can you control window numbers? Sometimes I look at two files and I always used to switch between them by doing Window - 1 and then Window - 2. With notepad++ a window number seems to assigned and never changes

    Read the article

  • Starting Off VBA Macro With C# - Password Grief

    - by ChloeRadshaw
    I am stuck - I have a macro in a workbook which I can call quite easily using the run method on MSDN The problem is that if the workbook has a password protecting the code then this becomes much more difficult and forces a dialog box to appear.. Does anyone know how to run a macro from C# which has a password on it??

    Read the article

  • Read and Step into .Net Framework Source Code

    - by ChloeRadshaw
    I did ask whether this was possible in 2008 which was answered in http://stackoverflow.com/questions/1296840/read-and-step-into-net-framework-source-code. However my problem is that I am using 2005 and not 2008. Does anyone know whether this is possible please?? The reason I want to do this is to better understand C# paradigms. With Java this is possible and I learnt a tremendous amount by being able to read code written by engineers

    Read the article

  • Protected Class In C#

    - by ChloeRadshaw
    This compiles well for me - However other people on a different thread are saying that protected classes cannot be declared in c# at top level Is that the case? using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { protected class CsvReader { } }

    Read the article

  • Why Is the sender type null when dealing with events

    - by ChloeRadshaw
    From C# Via CLR: Note A lot of people wonder why the event pattern requires the sender parameter to always be of type Object After all, since the MailManager will be the only type raising an event with a NewMail EventArgs object, it makes more sense for the callback method to be prototyped like this: void MethodName(Mai l Manager sender, NewMail EventArgs e); The pattern requires the sender parameter to be of type Object mostly because of inheritance What if Mai lManager were used as a base class for SmtpMailManager? In this case, the callback method should have the sender parameter prototyped as SmtpMailManager instead of Mail Manager, but this can’t happen because SmtpMai lManager just inherited the NewMai l event So the code that was expecting SmtpMail Manager to raise the event must still have to cast the sender argument to SmtpMailManager In other words, the cast is still required, so the sender parameter might as well be typed as Obj ect The next reason for typing the sender parameter as Obj ect is just fexibility It allows the delegate to be used by multiple types that offer an event that passes a NewMail EventArgs object For example, a PopMai lManager class could use the delegate even if this class were not derived from Mail Manager I just simply cannot understand why the sender is an object - Why can it not be generified? so most of the time we do not need to do generic casts

    Read the article

  • How To Read C# API From Java Background

    - by ChloeRadshaw
    I come from a Java background and have been using C# for the last year - So far the API docs I use are at MSDN (http://msdn.microsoft.com/en-us/library/ms132397.aspx). I tend to use the lightweight C# docs. What annoys me about that is that I don't see one page with details of the class, a list of members, a list of methods and properties like I would with a Java API definition. Is this possible?

    Read the article

  • Do I Need To Reference Indirect DLLs

    - by ChloeRadshaw
    Suppose I have DLLA which is a standalone library that contains classes I use I have DLLB that references DLLA I now have DLLC that references DLLB - Why is it that DLLC also needs a reference to DLLA? Can I not have VS2005 build a dll which contains all the assemblies it needs embedded inside it?

    Read the article

  • What Is The Callback Method When A Daemon Application Exists

    - by ChloeRadshaw
    I need to be able to create a little daemon application that will keep running until the machine is restarted or the process is forcefully killed. Is there a callback I can implement to get called when the application is exiting (either by force or at system shutdown) I am not creating a Windows form but a daemon application - I have serached google with no luck

    Read the article

  • When To Use IEquatable And Why

    - by ChloeRadshaw
    I just dont understand this - What does IEuqtable buy you exactly?? The only reason I can see it being useful is when creating a generic type and forcing users to implement and write a good equals method. What am I missing

    Read the article

  • Notepad++ XmlTools Not Installing

    - by ChloeRadshaw
    This is depressing - I have installed XMLTools and can see it in the menu - It has one sub menu which is "How To Use" If I select that it says something like no libxml / libxslt - Google returns nothing How can I install this plugin properly

    Read the article

  • Delegate Example From C# In Depth Confusion

    - by ChloeRadshaw
    I am looking at this example: List<Product> products = Product. GetSampleProducts() ; products.Sort( (first, second) => first.Name.CompareTo(second. Name) ) ; foreach (Product product in products) { Console. WriteLine(product) ; } What function is actually called in the API when you do that? Does the compiler create a class which implemnents the IComparer interface? I thought delegates were anonymous methods - Here it seems to be an anonymous interface implementation which is casuing confusion

    Read the article

  • Writing A Good C# Equals Method

    - by ChloeRadshaw
    Does anyone have a template for writing a decent equals method - I remember in Effective Java there was problems around handling equals when dealing with subclasses. I dont have the book with me and I cannot remember if it was practical advice - So how do you write a solid robust equals method implementation?

    Read the article

1 2  | Next Page >