473,499 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

declaring dll path without direct path

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?

--
-iwdu15
Aug 11 '06 #1
1 1390
nevermind, got it working....the dll depended on other dlls i downloaded with
it....didnt copy those into the same directory
--
-iwdu15
Aug 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1140
by: Shane | last post by:
I am working on an airline res system. The technologies I am using are a mysql backend with Java and JSP pages pulling information. It is quite straight forward on my system to for example book a...
14
18320
by: Job Lot | last post by:
How can I find path of windows folder using vb.net? It could be winnt or windows depending upon the os. System.Environment.SpecialFolder enumeration does not have a constant for windows folder.
11
15264
by: kk | last post by:
Can any function tell the compiled program executing path? after using the program to open a file from MFC dialog box, the path changes. thks in advance.
16
1961
by: G Patel | last post by:
Hi, If I want to call functions that don't return int without declaring them, will there be any harm? I only want to assign the function(return value) to the type that it returns, so I don't...
20
4222
by: Ole Hanson | last post by:
I am accessing my database through an interface, to allow future substitution of the physical datastore - hence I would like to declare in my Interface that my DAL-objects implementing the...
0
975
by: Rajat Tandon | last post by:
Hello , I want to use the path of the image that is shown in a Picture Box control on a windows form.How can we do that.. Can we do it without using Assembly and ResourceManager(As the image...
4
1896
by: Vikram | last post by:
How to hide aspx path from the address bar. One choice is to use frames. But i do not want to use it, is there any other way ?
8
3397
by: HMS Surprise | last post by:
I looked in the language but did not find a switch for requiring variables to be declared before use. Is such an option available? Thanks, jvh
4
6873
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.