Results 1 to 2 of 2

Thread: accessing current directory

  1. #1
    Guest
    How does one tell VB to look in the current directory as a path?

    What I mean is that I want to use a DLL that resides in the same directory as the OCX file that is calling to it.

    I tried using ".\dllname.dll" but that doesn't work. I know in C++ you just use .\ or ..\ to access the current directory or the parent directory. How is htis done in VB?

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    There's a nice CurDir Function which returns the current Directory as a string.

    Try CurDir & "\dllname.dll"

    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