By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,695 Members | 1,651 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,695 IT Pros & Developers. It's quick & easy.

system.dllnotfoundexception

P: n/a
I have an older program written in vb6. This program calls a dll
written in fortran. I have taken the time to re-write the program in
vb.net (1.1 framework), though i'm still calling the fortran dll.
Everything works fine when ran on a pc with XP. However, whenever I
try to run it on Vista I get an errormessage
"system.dllnotfoundexception" when it tries to call the dll.

I'm using

Public Declare Sub [SubName] Lib "myDLL.dll" ([Arguments])

to call the dll. There is a copy of the dll in the application
directory. If I try to run the vb6 version of this program, I do not
get this error on Vista (though I have other issues, which is why I am
re-writing it).

I'm not sure what to check next, or what I might be missing. Any
thoughts?

Jul 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Xycoth" <dr*********@yahoo.comwrote in message
news:11**********************@p39g2000hse.googlegr oups.com...
>I have an older program written in vb6. This program calls a dll
written in fortran. I have taken the time to re-write the program in
vb.net (1.1 framework), though i'm still calling the fortran dll.
Everything works fine when ran on a pc with XP. However, whenever I
try to run it on Vista I get an errormessage
"system.dllnotfoundexception" when it tries to call the dll.

I'm using

Public Declare Sub [SubName] Lib "myDLL.dll" ([Arguments])

to call the dll. There is a copy of the dll in the application
directory. If I try to run the vb6 version of this program, I do not
get this error on Vista (though I have other issues, which is why I am
re-writing it).

I'm not sure what to check next, or what I might be missing. Any
thoughts?
The Dll may be using a reference to a Dll that's there on XP but is not
there on Vista.

That's why you develop, build, deploy, and test a solution on the platform
it's intended to run on.

Develop, build, deploy and test the solution on XP to be targeted for XP.

Develop, build, deploy and test the solution on Vista to be targeted for
Vista.

Jul 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.