Results 1 to 2 of 2

Thread: Custom DLL's

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Posts
    84

    Question

    I wrote some fast matrix handling functions in VC++ and built them as a *.DLL. When you delcare the function that links to the DLL in VB you have to specify a string constant indicating the DLL's path name.

    When I distribute this program I want the DLL file to be in the application directory. How do you declare a function to a DLL with a variable path name?

    I want something like this (note this does not work)

    Declare Sub MyFunction Lib App.Path & "\MyFunc.dll" alias...

  2. #2
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    I think that it might just be a problem with the DLL not being registered. I've never given the full path to a DLL file. It pulls that info from the registry once it is registered. Have the install auto-register the DLL. If you can't do that then you will have to register it using Regsvr32.exe.

    Hope this helps.
    JC

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