Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2007

Tip: Looking for answers? Try searching our database.

DllImport issue!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chandan - 29 Sep 2007 08:01 GMT
Hi All,

I have a dll created using vc++(Unmanaged).So when we are using this
I have to give to full path of this dll as a parameter of DllImport
attribute. The parameter takes only const string value. It will work
fine by hard coding, but what will be case when I deploy this project?

Is there any way to pass the relative path of dll to the DllImport
attribute??

Let me know if more clarification is required about the problem.!!!

Thanks in advance!

Chandan Kumar
Mattias Sjögren - 29 Sep 2007 16:44 GMT
>Is there any way to pass the relative path of dll to the DllImport
>attribute??

Why don't you put the DLL in the application directory and reference
it by just specifying the file name?

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Michael C - 01 Oct 2007 04:35 GMT
> Hi All,
>
[quoted text clipped - 7 lines]
>
> Let me know if more clarification is required about the problem.!!!

You can call LoadLibrary yourself I believe. In DllImport just specify the
dll with it's name only. Then call LoadLibrary specifying the full path.
Just make sure you call FreeLibrary for each time you call LoadLibrary. This
works in other languages so I presume it will in dot net. Although I would
be suprised if there wasn't a built in method of doing this.

Michael
Pavani.Budumuru - 01 Oct 2007 06:58 GMT
Hi! All we have working with "Audio Restoration" application, in that
application we need to develop .avi files noise clarification using  "audio
restoration" software. First we need to download .avi files from cam to PC
drivers, then we apply "audio restoration" software and do the audio
process. After that we need to save the .avi files in same location in PC
hard drive and also copy the restored files back to the camera over-writing
the unprocessed file. So we need to develop the "Audio Restoration"
software. Is this requirement fullfiled  by using  ASP.Net  2.0  framework.
Please  tell  us any information about our application requirement.

Thanking you.

Regards,
Development team.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.