A
A.User
I have a custom CE.NET device that I have built the OpenNETCF.dll into.
I have some CF/OpennetCF app that I also built into the image. These are all
place in the \windows directory and are hard coded right into the image.
They all work fine.
I am now building more CF/OpenNETCF apps that I am debugging and deploying
to my storage card.
I noticed another copy of the OpenNetcf.dll is also copied to the storage
card along with the
the .exe. when build with Visual studio. It works fine, but for reasons I
won't go into I would rather not have the extra dll on the storage card( the
dll in the windows directory and on the card are exactally the same
version).
I noticed if I delete the dll version on the Storage card the program
faults with a type load exception when
it first calls a function in opennetcf.
Apperently the apps I have built and deployed to the windows directory work
because there is a copy
of opennetcf.dll is in that directory.
The app I have deployed to the card does not work because the opennetcf dll
is not in the local directory
along with the app. If I copy the app from the card to the windows
directory it works.
I was under the impression that when an app searches for dll's it looks in
the current directory and
if not found it looks in the windows directory.
Is this not true?
Is there something unique about CF dll's?
Is there a way to force the app to look in a specific directory for needed
dll's?
I have some CF/OpennetCF app that I also built into the image. These are all
place in the \windows directory and are hard coded right into the image.
They all work fine.
I am now building more CF/OpenNETCF apps that I am debugging and deploying
to my storage card.
I noticed another copy of the OpenNetcf.dll is also copied to the storage
card along with the
the .exe. when build with Visual studio. It works fine, but for reasons I
won't go into I would rather not have the extra dll on the storage card( the
dll in the windows directory and on the card are exactally the same
version).
I noticed if I delete the dll version on the Storage card the program
faults with a type load exception when
it first calls a function in opennetcf.
Apperently the apps I have built and deployed to the windows directory work
because there is a copy
of opennetcf.dll is in that directory.
The app I have deployed to the card does not work because the opennetcf dll
is not in the local directory
along with the app. If I copy the app from the card to the windows
directory it works.
I was under the impression that when an app searches for dll's it looks in
the current directory and
if not found it looks in the windows directory.
Is this not true?
Is there something unique about CF dll's?
Is there a way to force the app to look in a specific directory for needed
dll's?