Results 1 to 3 of 3

Thread: Default Functions

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Is there any way that i can edit vb in such a way that it allows me to be able to add my functions say

    Public Sub GetCenter() etc to the standard list of functions that vb has ? Do i need to make a dll that loads each time vb does that has these functions in ?

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Location
    Gig Harbor, WA, USA
    Posts
    25
    As you thought, this is accomplished via a DLL. You can not, unfortunately, make it load on VB start up, you'll have to add it to the reference section of your project each time.

    Also, it still takes initialization code. But what you CAN do is alter your template Project1 to include the code (VB98\Templates). Not quite like VB, but it'll save you time.

    [Edited by Cromas on 11-23-2000 at 05:35 PM]
    (¯`·.¸¸.·´¯`·->Cromas<-·´¯`·.¸¸.·´¯)
    Teenage Programmer
    Formerly known as ShadowCrawler

    E-Mail: [email protected]
    ICQ: 9872708
    AIM: VotchOut

  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    What you can do is make a dll with a class marked as GlobalMultiuse. That way you dont have to dim up anything. Just include the reference in your project and you can call all the functions directly.

    You can also create a blank project and then put in the reference to this dll, and save that project to the vb\template\projects directory. So next time you say new project, it will show it in there. You can open the project and it will have the existing reference in there.

    Hope this helps.

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