473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

File not found

Hi,

I've got the following problem: I created a solution based on a .net exe
(vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:

public declare sub TestMe lib "mytest.dll" ()

But when I run the application, I receive an error that sais: 'File not
found. Dll could not be loaded'. The dll is placed in just the same directory
as the exe and does export the function TestMe (I've checked that with the
depends.exe utility).

Can anyone give me a hint on what's going on?

Thanks
Peter
Jul 21 '05 #1
3 1313
Peter Schmitz wrote:
Hi,

I've got the following problem: I created a solution based on a .net exe
(vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:

public declare sub TestMe lib "mytest.dll" ()

But when I run the application, I receive an error that sais: 'File not
found. Dll could not be loaded'. The dll is placed in just the same directory
as the exe and does export the function TestMe (I've checked that with the
depends.exe utility).

Can anyone give me a hint on what's going on?

Thanks
Peter


Perhaps the working directory of the exe has changed? Try referencing
the full path of the DLL.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Jul 21 '05 #2
I've tried to reference the complete path - now the error says: "Could not
load C:\Test\dtest.dll" (which is the dll). I've tried the same on different
platforms - just the same results....

Greetings,
Peter

"Mitchell Vincent" wrote:
Peter Schmitz wrote:
Hi,

I've got the following problem: I created a solution based on a .net exe
(vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:

public declare sub TestMe lib "mytest.dll" ()

But when I run the application, I receive an error that sais: 'File not
found. Dll could not be loaded'. The dll is placed in just the same directory
as the exe and does export the function TestMe (I've checked that with the
depends.exe utility).

Can anyone give me a hint on what's going on?

Thanks
Peter


Perhaps the working directory of the exe has changed? Try referencing
the full path of the DLL.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

Jul 21 '05 #3
On Thu, 17 Mar 2005 08:09:02 -0800, "Peter Schmitz"
<Pe**********@discussions.microsoft.com> wrote:
I've tried to reference the complete path - now the error says: "Could not
load C:\Test\dtest.dll" (which is the dll). I've tried the same on different
platforms - just the same results....

Greetings,
Peter

"Mitchell Vincent" wrote:
Peter Schmitz wrote:
> Hi,
>
> I've got the following problem: I created a solution based on a .net exe
> (vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:
>
> public declare sub TestMe lib "mytest.dll" ()
>
> But when I run the application, I receive an error that sais: 'File not
> found. Dll could not be loaded'. The dll is placed in just the same directory
> as the exe and does export the function TestMe (I've checked that with the
> depends.exe utility).
>
> Can anyone give me a hint on what's going on?
>
> Thanks
> Peter


Perhaps the working directory of the exe has changed? Try referencing
the full path of the DLL.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com


How are you describing the full path? You might need an '@' in front
of the string since otherwise the '\t' in "\Test" will be interpreted
as a tab. Alternatively double up the backslashes and omit the '@':

Either @"C:\Test\dtest.dll"

or "C:\\Test\\dtest.dll"

rossum


The ultimate truth is that there is no ultimate truth
Jul 21 '05 #4

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

Similar topics

5
by: Richard | last post by:
Hi, Can anyone tell me what the difference is between for line in file.readlines( ): and for line in file:
3
by: Abhas | last post by:
> > Hi, this is Abhas, > > I had made a video library program in C++, but was facing a problem. > > After entering 12 movies, i cannot enter any more movies. > > Something gibberish comes instead....
7
by: spike | last post by:
Im writing a program to search for a string in a binary file. And it works. The problem is: It is sooo slow! how can i make it faster? It takes 27 seconds just to search a 5 meg file. I guess it...
2
by: Profetas | last post by:
I have the following code that detects a <c> and </c> #include <stdio.h> main(int argc, char *argv) { FILE* fp; char data;
3
by: Michael Bøcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
24
by: Bill | last post by:
Hello, I'm trying to output buffer content to a file. I either get an access violation error, or crazy looking output in the file depending on which method I use to write the file. Can anyone...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.