Hi Guys,

I want to import some function implemented by C++;
I have built my those function under VC++ IDE,
I have created a DLL Folder on my DOTNET project,and added my DLL file
into this folder.

When I do deploy my Project on Simulator,I have found that
My main Entry file is deployed with different loction with my DLL location,

let's say:

Program Files --mysolution--Main Entry File
|
---DLL---mydll.dll File
So when Main Entry call some function implemented by dll files, it can not
find dll file.
Since my DLLImport["mydll.dll",EntryPoint="EntryPoint"],I know the reason
that is is
because I dont write the correct path.

Question:
Can I write relative path on DLLImport or is it to be absolute file path?
I prefer to relative path than absolute path, since it will make me feel
flexible!

If I can write relative path, how to write,I have googled it, I only find
some absolute path writing.:(

Sorry, I am totally new dotnet user.

Thanks

Re: DLLImport with relative Folder by ctacke/>

ctacke/>
Tue Feb 13 15:07:08 CST 2007

CE doesn't support relative paths, so what you're trying to do,
unfortunately, isn't possible.


--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--




"jeff" <jeff@discussions.microsoft.com> wrote in message
news:70A79440-3718-4AAC-AB9F-47AA8D945A03@microsoft.com...
> Hi Guys,
>
> I want to import some function implemented by C++;
> I have built my those function under VC++ IDE,
> I have created a DLL Folder on my DOTNET project,and added my DLL file
> into this folder.
>
> When I do deploy my Project on Simulator,I have found that
> My main Entry file is deployed with different loction with my DLL
> location,
>
> let's say:
>
> Program Files --mysolution--Main Entry File
> |
> ---DLL---mydll.dll File
> So when Main Entry call some function implemented by dll files, it can
> not
> find dll file.
> Since my DLLImport["mydll.dll",EntryPoint="EntryPoint"],I know the reason
> that is is
> because I dont write the correct path.
>
> Question:
> Can I write relative path on DLLImport or is it to be absolute file path?
> I prefer to relative path than absolute path, since it will make me feel
> flexible!
>
> If I can write relative path, how to write,I have googled it, I only find
> some absolute path writing.:(
>
> Sorry, I am totally new dotnet user.
>
> Thanks
>
>
>
>
>
>
>
>
>