Results 1 to 4 of 4

Thread: DLL's and OCX's

  1. #1

    Thread Starter
    Hyperactive Member DaveR's Avatar
    Join Date
    Mar 2001
    Location
    Ireland
    Posts
    268

    Red face

    I know this has probably been asked a thousand times , but how do a register a dll from visual basic code.??

    thanks
    daveR
    DaveR

  2. #2
    New Member
    Join Date
    Apr 2001
    Posts
    3
    Dave,

    If you have the DLL project open you can select Make Project.dll from the File menu. This should automatically register your dll.

    If you have a DLL only (not source code) and you want to register it on your machine you can run regsvr32.exe:

    Put DLL wherever you want it then
    click on Run... from the start menu
    Enter: regsvr32.exe c:\pathname\MyVBClass.dll
    this should register your dll.

    To unregister use the same command but add the parameter <space>/u to the end.

    Hope this helps.

    Cheers Andy.
    Andy Murphy

  3. #3

    Thread Starter
    Hyperactive Member DaveR's Avatar
    Join Date
    Mar 2001
    Location
    Ireland
    Posts
    268
    cheers andy
    DaveR

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    To do this from code, look at my post on this thread :

    http://forums.vb-world.net/showthrea...light=register

    Look at this thread to see if the Dll register worked :
    http://forums.vb-world.net/showthrea...light=register

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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