• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Visual Basic Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual Basic Developer Center > Visual Basic Forums > Visual Basic General > lost the import dll: error 126
Ask a questionAsk a question
Search Forums:
  • Search Visual Basic General Forum Search Visual Basic General Forum
  • Search All Visual Basic Forums Search All Visual Basic Forums
  • Search All MSDN Forums Search All MSDN Forums
 

Answerlost the import dll: error 126

  • Thursday, June 01, 2006 12:39 PMMr.D.J.Webber Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Please I need some help I keep getting a message, Import:dll missing or error ect.

    it says error 126, but I do not know how to re-install it if I can download it.

    • ReplyReply
    • QuoteQuote
     

Answers

  • Thursday, June 01, 2006 1:09 PMnobugzMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0
    Guessing here: do you have a Declare statement in your program that references "import.dll"?  If that is the case, you're working with a 3rd party DLL.  You need to put it in a folder so that .NET can find it.  Putting it in c:\windows\system32 would certainly work.  Putting it in the same folder as your program's .EXE is better...
    • ReplyReply
    • QuoteQuote
     

All Replies

  • Thursday, June 01, 2006 3:12 PMspotty Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    As you mention you are getting Error 126 This sounds like an error message that would be generated by a VB6 based application and not a .NET application.  

    Are you using VB.NET or and earlier version of VB.  

    If this question does relate to VB6 then the following applies if your using .NET then you need to provide more information.

    These forums are for VB.NET and there are better places to find answers for older versions of VB such as VB6.

    Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.vb.general.discussion&lang=en&cr=US

    or the VB6 resource center
    http://msdn.microsoft.com/vbrun/

    or web sites such as www.vbcity.com

    You could however download VB Express and start working with .NET technology - its free to download from microsoft web site.

    Hope these point you in the right direction.


     

    • ReplyReply
    • QuoteQuote
     
  • Thursday, June 01, 2006 3:34 PMnobugzMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    I dunno Stan, VB6 generates error 53 when it can't find the DLL.  .NET generates error 0x8007007E which (when properly masked) equals error 126.
    • ReplyReply
    • QuoteQuote
     
  • Thursday, June 01, 2006 3:50 PMspotty Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    As I said, if they arent using vb6 the disregard and preovide more info.

    most of .net will display an exception rather than an error code.  unless of course you using legacy code which was imported into vb.net or love the on error goto construct and the appropriate error object rather than exception handling.

     

    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement