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 / .NET Framework / .NET SDK / December 2005

Tip: Looking for answers? Try searching our database.

Reg. [DllImport] using Vs2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
krishnan.prakash@gmail.com - 26 Dec 2005 09:58 GMT
Hi!

I was using VS2003 to develope a Web Application and i was using a
[DllImport] with my own custom unmanaged Code. It was working fine.

When I migrate from VS2003 to VS2005, It was not working and also i
read that i should change some registry value like below..

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"MDA"="0"

After changing when i use [DllImport] in VS2005 i get the following
error
-------------
An unhandled exception of type 'System.DllNotFoundException' occurred
in myTest.exe

Additional information: Unable to load DLL 'ABCD.dll': The specified
module could not be found. (Exception from HRESULT: 0x8007007E)
---------

I use the following code to import the Dll
[DllImport ("c://temp//ABCD.dll", CharSet=CharSet.Unicode)]

I have also pasted the ABCD.dll in the "c:/temp" location.

Please can some help  me to solve this issue.

Thanks in Advance.

- Prakash Krishnan
Willy Denoyette [MVP] - 26 Dec 2005 11:15 GMT
> Hi!
>
[quoted text clipped - 28 lines]
>
> - Prakash Krishnan

[DllImport ("c://temp//ABCD.dll", CharSet=CharSet.Unicode)]

should be:

[DllImport ("c:\\temp\\ABCD.dll", CharSet=CharSet.Unicode)]
Prakash - 26 Dec 2005 13:18 GMT
Hi!

Thanks for your response. I tried as you specified(c:\\temp\\)... but
still getting the same error...

Anything else i shud try?

Thanks,
Prakash

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Willy Denoyette [MVP] - 26 Dec 2005 14:47 GMT
> Hi!
>
[quoted text clipped - 9 lines]
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com

What other dll's is ABDC depending of? What tool is there used to build the
dll, what version?

Willy.
Prakash - 26 Dec 2005 15:13 GMT
ABCD.dll is an individual file and that is developed using Corland C++
builder ver5.0

pls. Let me know if you need any more info.

Thanks,
prakash

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Prakash - 27 Dec 2005 13:34 GMT
Hi!

Thanks for your effort & Response.

Sorry.. There was some Dependency Files missing in the ABCD.Dll..

Once again thanks for your info.

Thanks & Regds,
Prakash

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Rate this thread:







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.