Results 1 to 9 of 9

Thread: [RESOLVED] [2005] Question about DLL and New

Threaded View

  1. #1

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Resolved [RESOLVED] [2005] Question about DLL and New

    Ok, I wrote a class that I use in many projects that is used to encrypt and decrypt strings. I ahve decided to just compile it into a dll and use it like that, but what I was wondering is how do I change the class so that I do not have to call the new function when I dim the object? First of all, is there a way to do this and second, how?

    for example right now I use it like so
    VB Code:
    1. Dim enc As New Encrypt.StringEncrypt
    2. enc.Encrypt("Hello World")

    What I would like to do is just write
    VB Code:
    1. Dim enc As Encrypt.StringEncrypt
    2. enc.Encrypt("Hello World")

    Thanks in advance
    Last edited by bmahler; Oct 12th, 2006 at 10:15 AM.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width