declaring dll path without direct path

G

Guest

hi, my other post kinda died, so here it is again. i have a declare statement
to a COM object like so

Private Declare Sub AccCreateSession Lib "C:\Aim
Code\dist\release\acccore.dll" Alias "#111" _
(<MarshalAs(UnmanagedType.LPStruct)> ByVal Name As Guid,
<MarshalAs(UnmanagedType.IDispatch)> ByRef session As Object)

and that loads just fine...however when i change it to

Private Declare Sub AccCreateSession Lib "acccore.dll" Alias "#111" _
(<MarshalAs(UnmanagedType.LPStruct)> ByVal Name As Guid,
<MarshalAs(UnmanagedType.IDispatch)> ByRef session As Object)

and put the COM object in my applications startup directory, it says it cant
find the specified module. i thought the applications path was in the search
path to find the dll? how come it wont find the dll?
 
G

Guest

nevermind, got it working....the dll depended on other dlls i downloaded with
it....didnt copy those into the same directory
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top